WalletServer class added

This commit is contained in:
Andre Jochems
2016-02-13 17:53:18 +01:00
parent 093b9ec1ff
commit b0c11f8974
37 changed files with 166347 additions and 20151 deletions

View File

@@ -0,0 +1,4 @@
dn: cn=module{0},cn=config
changetype: modify
add: olcModuleLoad
olcModuleLoad: ppolicy.la

View File

@@ -0,0 +1,5 @@
dn: ou=Policies,dc=casinocoin,dc=org
objectClass: top
objectClass: organizationalUnit
ou: Policies
description: Default password policies container

View File

@@ -0,0 +1,6 @@
dn: olcOverlay={0}ppolicy,olcDatabase={1}hdb,cn=config
objectClass: olcOverlayConfig
objectClass: olcPPolicyConfig
olcOverlay: {0}ppolicy
olcPPolicyDefault: cn=DefaultPPolicy,ou=Policies,dc=casinocoin,dc=org
olcPPolicyHashCleartext: TRUE

View File

@@ -0,0 +1,19 @@
dn: cn=DefaultPPolicy,ou=Policies,dc=casinocoin,dc=org
cn: DefaultPPolicy
objectClass: pwdPolicy
objectClass: device
objectClass: top
pwdAttribute: userPassword
pwdMaxAge: 2419200
pwdExpireWarning: 1814400
pwdInHistory: 3
pwdCheckQuality: 1
pwdMinLength: 8
pwdMaxFailure: 3
pwdLockout: TRUE
pwdLockoutDuration: 600
pwdGraceAuthNLimit: 0
pwdFailureCountInterval: 0
pwdMustChange: TRUE
pwdAllowUserChange: TRUE
pwdSafeModify: FALSE

View File

@@ -0,0 +1,4 @@
dn: olcDatabase={1}hdb,cn=config
changetype: modify
add: olcDbIndex
olcDbIndex: uid eq,pres,sub

View File

@@ -0,0 +1,4 @@
dn: olcDatabase={1}hdb,cn=config
changetype: modify
add: olcDbIndex
olcDbIndex: mail eq,pres,sub

View File

@@ -0,0 +1,8 @@
include /etc/ldap/schema/core.schema
include /etc/ldap/schema/cosine.schema
include /etc/ldap/schema/inetorgperson.schema
include /etc/ldap/schema/misc.schema
include /etc/ldap/schema/nis.schema
include /etc/ldap/schema/openldap.schema
include /etc/ldap/schema/ppolicy.schema
include /etc/ldap/schema/casinocoinUser.schema

View File

@@ -0,0 +1,4 @@
dn: cn=config
changetype: modify
replace: olcLogLevel
olcLogLevel: stats

View File

@@ -0,0 +1,15 @@
dn: ou=Users,dc=casinocoin,dc=org
objectClass: organizationalUnit
ou: Users
dn: ou=Groups,dc=casinocoin,dc=org
objectClass: organizationalUnit
ou: Groups
dn: ou=WalletUsers,ou=Groups,dc=casinocoin,dc=org
objectClass: organizationalUnit
ou: WalletUsers
dn: ou=WalletApplications,ou=Groups,dc=casinocoin,dc=org
objectClass: organizationalUnit
ou: WalletApplications

View File

@@ -0,0 +1,71 @@
attributetype ( 1.1.1.301.1
NAME 'country'
DESC 'Country of a user'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.1.1.301.2
NAME 'role'
DESC 'Role of a user'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.1.1.301.3
NAME 'im'
DESC 'IM of a user'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.1.1.301.4
NAME 'profileConfiguration'
DESC 'Profile Configuration of a user'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.1.1.301.5
NAME 'url'
DESC 'URL Configuration of a user'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.1.1.301.7
NAME 'accountLocked'
DESC 'Stores the status if a user account is locked'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.1.1.301.8
NAME 'passwordTimestamp'
DESC 'Timestamp of last password change'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.1.1.301.9
NAME 'scimId'
DESC 'scimId'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.1.1.301.10
NAME 'lastModifiedDate'
DESC 'User last modifation date'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.1.1.301.11
NAME 'createdDate'
DESC 'User creaetion date'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.1.1.301.12
NAME 'location'
DESC 'User location'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.1.1.301.13
NAME 'unlockTime'
DESC 'User Unlock Time'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.1.1.301.14
NAME 'failedLoginAttempts'
DESC 'User Failed Login Attempts'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
objectclass ( 1.1.1.302.1
NAME 'casinocoinUser'
DESC 'Casinocoin user'
SUP inetOrgPerson
STRUCTURAL
MAY ( country $ role $ im $ profileConfiguration $ url $ accountLocked $ passwordTimestamp $ scimId $ lastModifiedDate $ createdDate $ location $ unlockTime $ failedLoginAttempts ) )

View File

@@ -0,0 +1,15 @@
dn: ou=Users,dc=casinocoin,dc=org
objectClass: organizationalUnit
ou: Users
dn: ou=Groups,dc=casinocoin,dc=org
objectClass: organizationalUnit
ou: Groups
dn: ou=WalletUsers,ou=Groups,dc=casinocoin,dc=org
objectClass: organizationalUnit
ou: WalletUsers
dn: ou=WalletApplications,ou=Groups,dc=casinocoin,dc=org
objectClass: organizationalUnit
ou: WalletApplications

View File

@@ -0,0 +1,35 @@
dn: cn=casinocoinuser,cn=schema,cn=config
objectClass: olcSchemaConfig
cn: casinocoinuser
olcAttributeTypes: {0}( 1.1.1.301.1 NAME 'country' DESC 'Country of a user' SY
NTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
olcAttributeTypes: {1}( 1.1.1.301.2 NAME 'role' DESC 'Role of a user' SYNTAX 1
.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
olcAttributeTypes: {2}( 1.1.1.301.3 NAME 'im' DESC 'IM of a user' SYNTAX 1.3.6
.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
olcAttributeTypes: {3}( 1.1.1.301.4 NAME 'profileConfiguration' DESC 'Profile
Configuration of a user' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
olcAttributeTypes: {4}( 1.1.1.301.5 NAME 'url' DESC 'URL Configuration of a us
er' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
olcAttributeTypes: {5}( 1.1.1.301.7 NAME 'accountLocked' DESC 'Stores the stat
us if a user account is locked' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-V
ALUE )
olcAttributeTypes: {6}( 1.1.1.301.8 NAME 'passwordTimestamp' DESC 'Timestamp o
f last password change' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
olcAttributeTypes: {7}( 1.1.1.301.9 NAME 'scimId' DESC 'scimId' SYNTAX 1.3.6.1
.4.1.1466.115.121.1.15 SINGLE-VALUE )
olcAttributeTypes: {8}( 1.1.1.301.10 NAME 'lastModifiedDate' DESC 'User last m
odifation date' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
olcAttributeTypes: {9}( 1.1.1.301.11 NAME 'createdDate' DESC 'User creaetion d
ate' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
olcAttributeTypes: {10}( 1.1.1.301.12 NAME 'location' DESC 'User location' SYN
TAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
olcAttributeTypes: {11}( 1.1.1.301.13 NAME 'unlockTime' DESC 'User Unlock Time
' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
olcAttributeTypes: {12}( 1.1.1.301.14 NAME 'failedLoginAttempts' DESC 'User Fa
iled Login Attempts' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
olcObjectClasses: {0}( 1.1.1.302.1 NAME 'casinocoinUser' DESC 'Casinocoin user
' SUP inetOrgPerson STRUCTURAL MAY ( country $ role $ im $ profileConfigurati
on $ url $ accountLocked $ passwordTimestamp $ scimId $ lastModifiedDate $ cr
eatedDate $ location $ unlockTime $ failedLoginAttempts ) )