Picon

Re: LDAP and Windows Server 2003

Cooper, Mike wrote:
> I know this has been asked before but I found a great article about how
> to configure LDAP on OSX but I am trying to get it to work with Windows
> 2003R2.  Everything is configured and MRBS works fine but I get this
> error message.  Warning: ldap_bind() [function.ldap-bind
> <http://10.17.0.3/mrbs/web/function.ldap-bind> ]: Unable to bind to
> server: Invalid credentials in C:\Inetpub\wwwroot\mrbs\web\auth_ldap.inc
> on line 109

You need the modified auth_ldap.inc that I posted on this list a month
ago*, I'll repost it here, as the mailing list archives don't manage to
store attachments (amazingly!).

Copy it over the old one, and put the following in your config.inc.php:

$ldap_dn_search_attrib = 'sAMAccountName';

You will also need to allow anonymous searching of your LDAP directory.
(A further addition could be to allow a search DN and password to be
specified, that, for the moment, is left as an exercise for the reader)

John.

* -
http://sourceforge.net/mailarchive/forum.php?thread_name=1A6132F4824FB94887B0F5F58FA1AF4F0E9ADD29%40spsmail.r12mail.sps.org&forum_name=mrbs-general
http://news.gmane.org/find-root.php?group=gmane.comp.calendars.meeting-room-booking-system.general&article=4210

--

-- 
John Beranek                         To generalise is to be an idiot.
http://redux.org.uk/                                 -- William Blake
(Continue reading)

Cooper, Mike | 8 Nov 2007 15:06

LDAP and Windows Server 2003

I know this has been asked before but I found a great article about how to configure LDAP on OSX but I am trying to get it to work with Windows 2003R2.  Everything is configured and MRBS works fine but I get this error message.  Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Invalid credentials in C:\Inetpub\wwwroot\mrbs\web\auth_ldap.inc on line 109

 

This is that line:  if (ldap_bind($ldap, $dn, $pass))

 

Here is a snip of my config.inc file for the ldap setup:

 

###############################################

# Authentication settings - read AUTHENTICATION

###############################################

$auth["session"] = "php"; # How to get and keep the user ID. One of

                    # "http" "php" "cookie" "ip" "host" "nt" "omni"

                    # "remote_user"

$auth["type"] = "ldap"; # How to validate the user/password. One of "none"

                          # "config" "db" "db_ext" "pop3" "imap" "ldap"                         "nis" # "nw" "ext".

 

# 'auth_ldap' configuration settings

# Where is the LDAP server

$ldap_host = "10.17.0.15";

$ldap_port = 389;

$ldap_v3 = false;

$ldap_tls = false;

# LDAP base distinguish name

$ldap_base_dn = "cn=users,DC=ohlsd,DC=priv";

$ldap_user_attrib = "uid";

 

 

I have also tried changing the $ldap_user_attrib = "sAMAccountName" and that didn't work.

 

Any help would be appreciated.

 

This e-mail message has been scanned by MailMarshal from Marshal Software, an email content filter.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
mrbs-general mailing list
mrbs-general <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mrbs-general

Gmane