I've worked up a small patch that works with OpenLDAP features to support the use of LDAP URIs for referring to LDAP servers instead of specifying by host/port. This will work easily for ldap://, ldaps:// and ldapi:// (LDAP over IPC) URIs. I've plugged this in and tested the module (with CVS code from ~7 days ago), and it's working well.
I'm checking out the Netscape/iPlanet LDAP C API documentation, but it doesn't appear to provide the ldap_initialize() call that the OpenLDAP libraries do. To use this module, just patch it in. No makefile changes are necessary. To use an LDAP URI, just add a line like: server_uri = ldap://localhost/ or server_uri = ldapi:/// to the ldap config section in your radiusd.conf. By default, its value will be NULL, so the server and port options will take effect instead. If you specify anything for server_uri, however, it will take precedence. Also, if you wish to use an ldapi:// URI, check to see that your slapd has been started with the -h "URI list" option. If one of the URIs specified points to a particular path for the LDAP socket file, specify it like this: ldapi://%2fvar%2frun%2fldapi/ See the OpenLDAP docs for additional info. -- Derrik Pates [EMAIL PROTECTED] [EMAIL PROTECTED] - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
