Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Random helpful commands:
- ldapmodify -D "cn=Directory Manager" -w secret
- ldapsearch -D "cn=Directory Manager" -w secret 'uid=*'
- ldapsearch -D "cn=Directory Manager" -w secret 'objectClass=group*'
- ldapsearch -D "cn=Directory Manager" -w secret' (&(|(objectClass=groupOfUniqueNames)(objectClass=groupOfNames))(cn=Dragon\'s Nest))'
- Place updates in mod.ldif:
- ldapmodify -D "cn=Directory Manager" -w secret -f mod.ldif
- LDIFS - put into mod.ldif
- Create Groups:
- dn: cn=Dragon Nest,ou=Groups,dc=seaofcarag,dc=com
- changetype: add
- objectClass: top
- objectClass: groupOfUniqueNames
- objectClass: nsMemberOf
- cn: Dragon Nest
- dn: cn=Caragian Caves,ou=Groups,dc=seaofcarag,dc=com
- changetype: add
- objectClass: top
- objectClass: groupOfNames
- objectClass: nsMemberOf
- cn: Caragian Caves
- Create Users
- # rdragon, People, seaofcarag.com
- dn: uid=rdragon,ou=People,dc=seaofcarag,dc=com
- changetype: add
- objectClass: top
- objectClass: nsPerson
- objectClass: nsAccount
- objectClass: nsOrgPerson
- objectClass: posixAccount
- objectClass: nsMemberOf
- objectClass: inetOrgPerson
- objectClass: organizationalPerson
- objectClass: person
- objectClass: eduPerson
- uid: rdragon
- cn: Red Dragon
- displayName: Red Dragon
- uidNumber: 8511291
- gidNumber: 8512196
- homeDirectory: /home/rdragon
- memberOf:
- mail: rdragon@389.seaofcarag.com
- givenName: Red
- sn: Dragon
- eduPersonAffiliation: FACEMP
- eduPersonAffiliation: EMERET
- # bdragon, People, seaofcarag.com
- dn: uid=bdragon,ou=People,dc=seaofcarag,dc=com
- changetype: add
- objectClass: top
- objectClass: nsPerson
- objectClass: nsAccount
- objectClass: nsOrgPerson
- objectClass: posixAccount
- objectClass: nsMemberOf
- objectClass: inetOrgPerson
- objectClass: organizationalPerson
- objectClass: person
- objectClass: eduPerson
- uid: bdragon
- cn: Black Dragon
- displayName: Black Dragon
- uidNumber: 85111123
- gidNumber: 85123123
- homeDirectory: /home/bdragon
- memberOf:
- mail: bdragon@389.seaofcarag.com
- givenName: Black
- sn: Dragon
- eduPersonAffiliation: FACEMP
- # pdragon, People, seaofcarag.com
- dn: uid=pdragon,ou=People,dc=seaofcarag,dc=com
- changetype: add
- objectClass: top
- objectClass: nsPerson
- objectClass: nsAccount
- objectClass: nsOrgPerson
- objectClass: posixAccount
- objectClass: nsMemberOf
- objectClass: inetOrgPerson
- objectClass: organizationalPerson
- objectClass: person
- objectClass: eduPerson
- mail: pdragon@389.seaofcarag.com
- givenName: Purple
- sn: Dragon
- eduPersonAffiliation: FACEMP
- eduPersonAffiliation: EMERET
- uid: pdragon
- cn: Purple Dragon
- displayName: Purple Dragon
- uidNumber: 1243654
- gidNumber: 8255233
- homeDirectory: /home/pdragon
- Add to group:
- dn: cn=Dragon's Nest,ou=Groups,dc=seaofcarag,dc=com
- changetype: modify
- add: uniqueMember
- uniqueMember: uid=gdragon,ou=People,dc=seaofcarag,dc=com
- Remove from group:
- dn: cn=Dragon's Nest,ou=Groups,dc=seaofcarag,dc=com
- changetype: modify
- delete: uniqueMember
- uniqueMember: uid=gdragon,ou=People,dc=seaofcarag,dc=com
- Add multiples to group:
- dn: cn=Dragon's Nest,ou=Groups,dc=seaofcarag,dc=com
- changetype: modify
- add: uniqueMember
- uniqueMember: uid=bdragon,ou=People,dc=seaofcarag,dc=com
- dn: cn=Caragian Caves,ou=Groups,dc=seaofcarag,dc=com
- changetype: modify
- add: member
- member: uid=bdragon,ou=People,dc=seaofcarag,dc=com
- dn: cn=Caragian Caves,ou=Groups,dc=seaofcarag,dc=com
- changetype: modify
- delete: member
- member: uid=g=bdragon,ou=People,dc=seaofcarag,dc=com
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement