User login

Using LDAP Serverside

Most LDAP functions used at Agaric will be controlled through the Drupal interface.

When for some reason you need to use LDAP straight, here is how.

Type ldap and press TAB to see the available ldap commands. You can then use "man ldapetcetc" to look up that particular command (there is no "ldap" command).

Common commands you may need:
ldapsearch -x cn=Username

ldapsearch, ldapmodify, ldapadd, ldapdelete

To delete a user you need to connect as admin:

ldapdelete -x -D "cn=admin,dc=grassrootsconnection,dc=org" -W "cn=Danielle,ou=Web,ou=People,dc=grassrootsconnection,dc=org"

it wants a "dn." The dn is the complete string cn=...,ou=..,dc=....

It's like a path on a filesystem, Stefan added.

You can search with ldapsearch -x and use any filter, eg cn=danielle
or ou=Web

The parameters are strange:
-D is the bind address (i.e. login as admin)
-W is password prompt.

if you use asterisks in the search make sure to quote the search filter
e.g. ldapsearch -x "(cn=*)"

Show all users on the branch given by -b (base dn) ou=Web:

ldapsearch -x -b "ou=Web,ou=People,dc=grassrootsconnection,dc=org" "cn=*"