Browse Source

Update sample examples

Laurent Destailleur 10 years ago
parent
commit
5c007e53be

+ 1 - 0
dev/ldap/ldapadd_sample1.txt

@@ -1,4 +1,5 @@
 # ldapadd_sample1.txt
+# ldapadd is into package ldap-utils on debian.
 #
 # Use this sample to add a dc "my-domain".
 # This is the first thing to create

+ 1 - 0
dev/ldap/ldapadd_sample2.txt

@@ -1,4 +1,5 @@
 # ldapadd_sample2.txt
+# ldapadd is into package ldap-utils on debian.
 #
 # Use this sample to add a ou "contacts"
 # This is the second thing to create after creating the root my-domain

+ 1 - 0
dev/ldap/ldapadd_sample3.txt

@@ -1,4 +1,5 @@
 # ldapadd_sample3.txt
+# ldapadd is into package ldap-utils on debian.
 #
 # Use this sample to add cn records
 # This is the step to create records inside tree ou=contacts,dc=my-domain,dc=com

+ 1 - 0
dev/ldap/ldapdelete_sample1.txt

@@ -1,4 +1,5 @@
 # ldapdelete_sample1.txt
+# ldapdelete is into package ldap-utils on debian.
 #
 # Use this sample to delete a dc "my-domain"
 # This delete the first level of LDAP tree.

+ 1 - 0
dev/ldap/ldapdelete_sample3.txt

@@ -1,4 +1,5 @@
 # ldapdelete_sample3.txt
+# ldapdelete is into package ldap-utils on debian.
 #
 # Use this sample to delete cn records
 # This is the step to delete a cn record stored inside tree ou=contacts,dc=my-domain,dc=com

+ 1 - 0
dev/ldap/ldapmodify_sample1.txt

@@ -1,4 +1,5 @@
 # ldapmodify_sample1.txt
+# ldapmodify is into package ldap-utils on debian.
 #
 # Use this sample to modify a dc "my-domain"
 #

+ 9 - 0
dev/ldap/ldapsearch_sample1.txt

@@ -0,0 +1,9 @@
+# ldapsearch_sample1.txt
+# ldapsearch is into package ldap-utils on debian.
+#
+# Use this sample to search into a ldap
+#
+# ldapsearch -h hostname -x
+# ldapsearch -h hostname -x -b "ou=people,dc=teclib,dc=infra"
+# ldapsearch -h hostname -x -z 0 -b "o=somecompany.com" -D "cn=manager,o=somecompany.com" -W "(objectclass=*)"
+# ldapsearch -h hostname -x -b "o=somecompany.com" -D "cn=manager,o=somecompany.com" -W "(objectclass=*)"