Line 435: |
Line 435: |
| you can display LDAP parameters, either by the [[SME_Server:Documentation:Administration_Manual:Chapter13#Directory|server-manager]] or by the command line : | | you can display LDAP parameters, either by the [[SME_Server:Documentation:Administration_Manual:Chapter13#Directory|server-manager]] or by the command line : |
| ldapsearch -x -h localhost -s base |grep 'dn' | | ldapsearch -x -h localhost -s base |grep 'dn' |
| + | |
| + | * for example |
| + | |
| + | [root@sme9 ~]# ldapsearch -x -h localhost -s base |grep 'dn' |
| + | # base <dc=stephane,dc=dtdns,dc=net> (default) with scope baseObject |
| + | # stephane.dtdns.net |
| + | dn: dc=stephane,dc=dtdns,dc=net |
| + | |
| + | ===Bind with the user2 on LDAP=== |
| + | Try to connect to ldap with credentials of user2 and you will see all the catalogue of LDAP. |
| + | |
| + | ldapsearch -x -D uid=user2,ou=Users,dc=server1,dc=pt -W |
| + | |
| + | * for example |
| + | [root@sme9 ~]# ldapsearch -x -D uid=stephane,ou=Users,dc=stephane,dc=dtdns,dc=net -W |
| + | |
| + | ===Check an user in LDAP catalogue=== |
| + | display informations on the user requested |
| + | |
| + | '''for sme9''' |
| + | ldapsearch -x -D cn=root,dc=server1,dc=pt -w $(cat /etc/pam_ldap.secret) -b ou=Users,dc=domain,dc=tld "uid=test2" |
| + | '''for sme8''' |
| + | ldapsearch -x -D cn=root,dc=server1,dc=pt -w $(cat /etc/ldap.secret) -b ou=Users,dc=domain,dc=tld "uid=test2" |
| + | |
| + | * for example |
| + | '''for sme9''' |
| + | ldapsearch -x -D cn=root,dc=stephane,dc=dtdns,dc=net -w $(cat /etc/ldap.secret) -b ou=Users,dc=stephane,dc=dtdns,dc=net "uid=stephane" |
| + | '''for sme8''' |
| + | ldapsearch -x -D cn=root,dc=stephane,dc=dtdns,dc=net -w $(cat /etc/ldap.secret) -b ou=Users,dc=stephane,dc=dtdns,dc=net "uid=stephane" |
| | | |
| ==Log== | | ==Log== |