-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLDIF-statements.txt
More file actions
68 lines (56 loc) · 1.57 KB
/
Copy pathLDIF-statements.txt
File metadata and controls
68 lines (56 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
*********LDIF statements to create a country object class***********
dn: c=uk,dc=yourhostname,dc=com
c: uk
objectclass: country
*********LDIF statements to add a child entry***********
dn: o=xxx,c=uk,dc=yourhostname,dc=com
o: xxx
objectclass: organization
*********LDIF statements to add users entry***********
dn: uid=jhon,o=xxx,c=uk,dc=yourhostname,dc=com
objectClass: inetOrgPerson
objectClass: posixAccount
uid: john
sn: Doe
givenName: John
cn: John Doe
displayName: John Doe
uidNumber: 10000
gidNumber: 5000
userPassword: johnldap
gecos: John Doe
loginShell: /bin/bash
homeDirectory: /home/john
dn: uid=davis,o=xxx,c=uk,dc=yourhostname,dc=com
objectClass: inetOrgPerson
objectClass: posixAccount
uid: davis
sn: Doe
givenName: Davis
cn: Davis Doe
displayName: Davis Doe
uidNumber: 10001
gidNumber: 5001
userPassword: Davisldap
gecos: DavisDoe
loginShell: /bin/bash
homeDirectory: /home/davis
*********LDIF statements to modify an attribute***********
dn: uid=davis,o=xxx,c=uk,dc=yourhostname,dc=com
changetype: modify
replace: displayName
displayName: Davis modified
*********LDIF statements to delete an attribute***********
dn: uid=davis,o=xxx,c=uk,dc=yourhostname,dc=com
changetype: modify
delete: gecos
*********LDIF statements to add an attribute***********
dn: uid=davis,o=xxx,c=uk,dc=yourhostname,dc=com
changetype: modify
add: gecos
gecos: John Doe
*********LDIF statements to change the RDN***********
dn: uid=davis,o=xxx,c=uk,dc=yourhostname,dc=com
changetype: modrdn
newrdn: uid=johnRDNmod
deleteoldrdn: 0