X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=html%2Fdoc-direct.wml;h=d8fa0395f36f3bd480330dfaa7ddf7d29c4d3d98;hb=d7549c547cb431e08ba11810fe9e8b68d132bc4e;hp=422ae9d6bc1f7c1c2f1413ddd8bad380c069736a;hpb=1fb7dd390df9a2059ef5c366d058f3975cf14383;p=mirror%2Fuserdir-ldap-cgi.git diff --git a/html/doc-direct.wml b/html/doc-direct.wml index 422ae9d..d8fa039 100644 --- a/html/doc-direct.wml +++ b/html/doc-direct.wml @@ -17,12 +17,12 @@ The LDAP utilities package (\ ldap-utils) provides an utility called ldapsearch that can be used to execute direct queries to the database. This is done by supplying the following arguments to ldapsearch: -x -H -ldap://db.debian.org -b dc=debian,dc=org. Alternatively, the +ldaps://db.debian.org -b dc=debian,dc=org. Alternatively, the -H and -b options can be put in one's ~/.ldaprc, in the following form:

 [ dbharris@people: ~/ ]$ cat ~/.ldaprc
-HOST db.debian.org
+URI ldaps://db.debian.org
 BASE dc=debian,dc=org
 
@@ -47,7 +47,7 @@ return. If you only specify the query, but don't provide any attributes to return, all readable attributes are returned. While the example was quite simple, complex queries can be performed as well:

-[ dbharris@people: ~/ ]$ ldapsearch -x -H ldap://db.debian.org -b dc=debian,dc=org '(&(!(loginshell=/bin/bash))(uid=*))' loginshell
+[ dbharris@people: ~/ ]$ ldapsearch -x -H ldaps://db.debian.org -b dc=debian,dc=org '(&(!(loginshell=/bin/bash))(uid=*))' loginshell
 

@@ -55,10 +55,10 @@ That query shows users that do not use bash as their shell. Some other interesting queries are: