X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=html%2Fdoc-direct.wml;h=57308b0deaa5a42e3e9499391ba706becdc6f30f;hb=c4f7f37b019553aabda9ae50d88c71d7ac7cf5e5;hp=7f0dcbe69bf66451646a581a52b09ca23e26ab30;hpb=67b97e55d95a26cfbc551c7f87fc233fb00bb7e2;p=mirror%2Fuserdir-ldap-cgi.git
diff --git a/html/doc-direct.wml b/html/doc-direct.wml
index 7f0dcbe..57308b0 100644
--- a/html/doc-direct.wml
+++ b/html/doc-direct.wml
@@ -1,16 +1,19 @@
#use wml::db.d.o title="Direct LDAP Access"
+#use wml::vbar
+
+
Since the -compromise, +compromise, the information available to non-developers via the LDAP interface has been limited a great deal. However, as always, the full database is accessible from any .debian.org machine. If you wish relatively unfettered access to the LDAP -database, connect to it from a .debian.org machine, such as gluck.debian.org +database, connect to it from a .debian.org machine, such as ravel.debian.org (which is recommended for general shell usage anyhow).
-The LDAP utilities package (\ +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 @@ -18,7 +21,7 @@ ldap://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@gluck: ~/ ]$ cat ~/.ldaprc +[ dbharris@ravel: ~/ ]$ cat ~/.ldaprc HOST db.debian.org BASE dc=debian,dc=org@@ -29,7 +32,7 @@ authentication. There appears to be no ~/.ldaprc option which does the same as -x. With these parameters specified, we're ready to begin searching. Here's an example:
-[ dbharris@gluck: ~/ ]$ ldapsearch -x uid=dbharris keyfingerprint +[ dbharris@ravel: ~/ ]$ ldapsearch -x uid=dbharris keyfingerprint <snip> # dbharris, users, debian, org dn: uid=dbharris,ou=users,dc=debian,dc=org @@ -44,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@gluck: ~/ ]$ ldapsearch -x -H ldap://db.debian.org -b dc=debian,dc=org '(&(!(loginshell=/bin/bash))(uid=*))' loginshell +[ dbharris@ravel: ~/ ]$ ldapsearch -x -H ldap://db.debian.org -b dc=debian,dc=org '(&(!(loginshell=/bin/bash))(uid=*))' loginshell