Skip to content

Commit 63c3884

Browse files
author
Amen Ayadi
committed
delete ldap sync sample file header text - add sample ldif file
1 parent 2445ef5 commit 63c3884

File tree

3 files changed

+100
-7
lines changed

3 files changed

+100
-7
lines changed

USERGUIDE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ The first entry that will be created is for the administrator user ; to initiall
212212
* Password: `password1`
213213

214214

215-
Once created we either add the users/groups manually through phpLDAPadmin, or you can pass a [LDIF file](https://en.wikipedia.org/wiki/LDAP_Data_Interchange_Format).
215+
Once created we either add the users/groups manually through phpLDAPadmin, or you can pass a [LDIF file](https://en.wikipedia.org/wiki/LDAP_Data_Interchange_Format), here you can find a [sample ldif file](https://github.com/cetic/fadi/blob/develop/examples/basic/example.ldif).
216216

217217
### 7. Manage your LDAP server
218218

examples/basic/example.ldif

+99
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# Server: fadi-openldap (fadi-openldap)
2+
# Total Entries: 10
3+
4+
version: 1
5+
6+
# Entry 1: dc=ldap,dc=cetic,dc=be
7+
dn: dc=ldap,dc=cetic,dc=be
8+
dc: ldap
9+
o: Cetic
10+
objectclass: top
11+
objectclass: dcObject
12+
objectclass: organization
13+
14+
# Entry 2: c=be,dc=ldap,dc=cetic,dc=be
15+
dn: c=be,dc=ldap,dc=cetic,dc=be
16+
c: be
17+
objectclass: country
18+
objectclass: top
19+
20+
# Entry 3: o=cetic,c=be,dc=ldap,dc=cetic,dc=be
21+
dn: o=cetic,c=be,dc=ldap,dc=cetic,dc=be
22+
o: cetic
23+
objectclass: organization
24+
objectclass: top
25+
26+
# Entry 4: cn=admin,dc=ldap,dc=cetic,dc=be
27+
dn: cn=admin,dc=ldap,dc=cetic,dc=be
28+
cn: admin
29+
description: LDAP administrator
30+
objectclass: simpleSecurityObject
31+
objectclass: organizationalRole
32+
userpassword: password1
33+
34+
# Entry 5: cn=John,cn=admin,dc=ldap,dc=cetic,dc=be
35+
dn: cn=John,cn=admin,dc=ldap,dc=cetic,dc=be
36+
cn: John
37+
givenname: John
38+
39+
objectclass: inetOrgPerson
40+
objectclass: top
41+
sn: Doe
42+
uid: John Doe
43+
userpassword: Johnldap
44+
45+
# Entry 6: cn=walid walid,cn=admin,dc=ldap,dc=cetic,dc=be
46+
dn: cn=walid walid,cn=admin,dc=ldap,dc=cetic,dc=be
47+
cn: walid walid
48+
givenname: walid
49+
50+
objectclass: inetOrgPerson
51+
objectclass: top
52+
sn: walid
53+
uid: walid
54+
userpassword: Walidldap
55+
56+
# Entry 7: uid=david,cn=admin,dc=ldap,dc=cetic,dc=be
57+
dn: uid=david,cn=admin,dc=ldap,dc=cetic,dc=be
58+
cn: David Doe
59+
displayname: David Doe
60+
gecos: DavidDoe
61+
gidnumber: 50012
62+
givenname: David
63+
homedirectory: /home/
64+
loginshell: /bin/bash
65+
objectclass: inetOrgPerson
66+
objectclass: posixAccount
67+
objectclass: top
68+
sn: Doe
69+
uid: david
70+
uidnumber: 100012
71+
userpassword: Davidldap
72+
73+
# Entry 8: ou=Groups,dc=ldap,dc=cetic,dc=be
74+
dn: ou=Groups,dc=ldap,dc=cetic,dc=be
75+
objectclass: organizationalUnit
76+
objectclass: top
77+
ou: Groups
78+
79+
# Entry 9: cn=aria stark,ou=Groups,dc=ldap,dc=cetic,dc=be
80+
dn: cn=aria stark,ou=Groups,dc=ldap,dc=cetic,dc=be
81+
cn: aria stark
82+
givenname: aria
83+
84+
objectclass: inetOrgPerson
85+
objectclass: top
86+
sn: stark
87+
uid: Aria
88+
userpassword: Arialdap
89+
90+
# Entry 10: cn=Sansa Stark,ou=Groups,dc=ldap,dc=cetic,dc=be
91+
dn: cn=Sansa Stark,ou=Groups,dc=ldap,dc=cetic,dc=be
92+
cn: Sansa Stark
93+
givenname: Sansa
94+
95+
objectclass: inetOrgPerson
96+
objectclass: top
97+
sn: Stark
98+
uid: Sansa Stark
99+
userpassword: {MD5}gZsGQ9a4ncm1ef38kJTyjg==

examples/basic/pg_ldap_sync_sample_config.yaml

-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
# With this sample config the distinction between LDAP-synchronized
2-
# # groups/users from is done by the membership to ldap_user and
3-
# # ldap_group. These two roles has to be defined manually before
4-
# # pg_ldap_sync can run.
5-
#
6-
71
# Reference: https://github.com/larskanis/pg-ldap-sync/blob/master/config/sample-config.yaml
82

93
# Connection parameters to LDAP server

0 commit comments

Comments
 (0)