OOPS! Re: [sork] Head version of passwd w/ldap

Edwin Culp eculp@encontacto.net
Wed, 17 Jul 2002 13:01:39 -0700


In my previous email I made a mistake when preparing the conf.php.dist
and erased the ldappassword line rather than the rootdn.  The following
is what I'm actually using with the lib/Driver/ldap.php diff that I sent
in the previous email.

Sorry,

ed

Index: conf.php.dist
===================================================================
RCS file: /repository/passwd/config/conf.php.dist,v
retrieving revision 1.8
diff -u -r1.8 conf.php.dist
--- conf.php.dist        16 Jul 2002 23:00:38 -0000        1.8
+++ conf.php.dist        17 Jul 2002 19:57:14 -0000
@@ -63,14 +63,19 @@
 
 // This is an example for a ldap server (uncomment and modify as needed)
 // Encryption can be on of the folowing: plain, SHA or crypt
+//
+// $usermail=Auth::getAuth();
+// $password=Auth::getCredential('password');
+//
 // $conf['server']['params']['default'] = array(
 //   'host' => 'localhost',
 //   'port' => 389,
-//   'rootdn' => 'cn=root,o=example.com',
+//   'rootdn' => 'mail=' . $usermail . ',o=example.com',
+//   'basedn' => 'o=example.com',
+//   'ldappassword' => $password,
 //   'uid' => 'mail',
 //   'encryption' => 'crypt'
 // );
-
 
 // Define apps to put in the menu bar.  To include IMP in the menu bar, you
 // would add: $conf['menu']['apps'] = array('imp');