diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-05-08 00:02:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:51:48 -0500 |
commit | 0ed08d9398d0ee8d9fdbc0f387415adc32ba675e (patch) | |
tree | 6a1dde58667248156c7fd47fb9e3f5aaa2466dec /source4/provision.ldif | |
parent | a848b0e3e26a3c572bb32475352d460d247d85ee (diff) | |
download | samba-0ed08d9398d0ee8d9fdbc0f387415adc32ba675e.tar.gz samba-0ed08d9398d0ee8d9fdbc0f387415adc32ba675e.tar.bz2 samba-0ed08d9398d0ee8d9fdbc0f387415adc32ba675e.zip |
r578: initial server side implementation of samr_CreateUser(),
samr_CreateUser2(), samr_LookupNames(), samr_OpenUser(),
and samr_DeleteUser()
this uses a user template in the SAM db, of objectclass "userTemplate"
and dn CN=TemplateUser,CN=Templates,$BASEDN. Using a template allows
an admin to add any default user attributes that they might want to
the user template and all new users will receive those attributes.
(This used to be commit 10b6e0011b5952c98432dc2d4b2058ac89a9cc2d)
Diffstat (limited to 'source4/provision.ldif')
-rw-r--r-- | source4/provision.ldif | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/source4/provision.ldif b/source4/provision.ldif index ebd7b78d62..0e30667bc3 100644 --- a/source4/provision.ldif +++ b/source4/provision.ldif @@ -7,6 +7,7 @@ dn: @INDEXLIST dn: @ATTRIBUTES name: CASE_INSENSITIVE WILDCARD sAMAccountName: CASE_INSENSITIVE WILDCARD +objectClass: CASE_INSENSITIVE dn: @SUBCLASSES top: domain @@ -38,7 +39,7 @@ maxPwdAge: -37108517437440 minPwdAge: 0 minPwdLength: 7 modifiedCountAtLastProm: 0 -nextRid: 1000 +nextRid: 1001 pwdProperties: 1 pwdHistoryLength: 24 objectSid: ${DOMAINSID} @@ -732,3 +733,41 @@ systemFlags: 0x8c000000 groupType: 0x80000005 objectCategory: CN=Group,CN=Schema,CN=Configuration,${BASEDN} isCriticalSystemObject: TRUE + +dn: CN=Templates,${BASEDN} +objectClass: top +objectClass: container +cn: Templates +description: Container for SAM account templates +instanceType: 4 +whenCreated: ${LDAPTIME} +whenChanged: ${LDAPTIME} +uSNCreated: 1 +uSNChanged: 1 +showInAdvancedViewOnly: FALSE +name: Templates +objectGUID: ${NEWGUID} +systemFlags: 0x8c000000 +objectCategory: CN=Container,CN=Schema,CN=Configuration,${BASEDN} +isCriticalSystemObject: TRUE + +dn: CN=TemplateUser,CN=Templates,${BASEDN} +objectClass: top +objectClass: person +objectClass: organizationalPerson +objectClass: userTemplate +cn: TemplateUser +name: TemplateUser +instanceType: 4 +userAccountControl: 0x222 +badPwdCount: 0 +codePage: 0 +countryCode: 0 +badPasswordTime: 0 +lastLogoff: 0 +lastLogon: 0 +pwdLastSet: 0 +primaryGroupID: 513 +accountExpires: -1 +logonCount: 0 +sAMAccountType: 0x30000000 |