From 5c007e53beb66d6fd4ef1285810d8f25ee488991 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 22 Jan 2015 18:35:02 +0100 Subject: [PATCH] Update sample examples --- dev/ldap/ldapadd_sample1.txt | 1 + dev/ldap/ldapadd_sample2.txt | 1 + dev/ldap/ldapadd_sample3.txt | 1 + dev/ldap/ldapdelete_sample1.txt | 1 + dev/ldap/ldapdelete_sample3.txt | 1 + dev/ldap/ldapmodify_sample1.txt | 1 + dev/ldap/ldapsearch_sample1.txt | 9 +++++++++ 7 files changed, 15 insertions(+) create mode 100644 dev/ldap/ldapsearch_sample1.txt diff --git a/dev/ldap/ldapadd_sample1.txt b/dev/ldap/ldapadd_sample1.txt index 2a9738381a7..8a28529acb8 100644 --- a/dev/ldap/ldapadd_sample1.txt +++ b/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 diff --git a/dev/ldap/ldapadd_sample2.txt b/dev/ldap/ldapadd_sample2.txt index 356481fe247..8b4f2469899 100644 --- a/dev/ldap/ldapadd_sample2.txt +++ b/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 diff --git a/dev/ldap/ldapadd_sample3.txt b/dev/ldap/ldapadd_sample3.txt index 65576a79090..531d0d00017 100644 --- a/dev/ldap/ldapadd_sample3.txt +++ b/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 diff --git a/dev/ldap/ldapdelete_sample1.txt b/dev/ldap/ldapdelete_sample1.txt index cc2db307eeb..3198ffd276d 100644 --- a/dev/ldap/ldapdelete_sample1.txt +++ b/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. diff --git a/dev/ldap/ldapdelete_sample3.txt b/dev/ldap/ldapdelete_sample3.txt index 3d2d357d876..737b6818ffb 100644 --- a/dev/ldap/ldapdelete_sample3.txt +++ b/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 diff --git a/dev/ldap/ldapmodify_sample1.txt b/dev/ldap/ldapmodify_sample1.txt index f80c6ac25b9..e3a8361ca31 100644 --- a/dev/ldap/ldapmodify_sample1.txt +++ b/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" # diff --git a/dev/ldap/ldapsearch_sample1.txt b/dev/ldap/ldapsearch_sample1.txt new file mode 100644 index 00000000000..fb7c4f85543 --- /dev/null +++ b/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=*)"