Results 1 to 3 of 3

Thread: LDAP not working, undefined vaiable: res

  1. #1
    dryang is offline Junior Member
    Join Date
    Feb 2009
    Posts
    3

    Default LDAP not working, undefined vaiable: res

    Hello. I'm trying to configure LDAP AD authentication on fresh sugarcrm installation (SugarCE-Full-6.2.0).

    After filling in server options and attempting to login to sugarcrm, I receive error:
    Invalid credentials.

    In domain controller's security event log I can see that user defined in LDAP settings is authenticating, getting privileges assigned and then getting logged off.

    In apache error log whenever I attempt to login I can see the following error:
    [Mon Jun 20 20:24:33 2011] [error] [client <IP>] PHP Notice: Undefined variable: res in /opt/SugarCE-Full-6.2.0/modules/Users/authentication/SugarAuthenticate/SugarAuthenticate.php on line 94, referer: https://my.domain.com/index.php?modu...s&action=Login
    Could anyone please recommend a way to trace out the problem.

    P.S. I have tested LDAP connection with adldap script. It's successful.
    Last edited by dryang; 2011-06-20 at 05:10 PM.

  2. #2
    dryang is offline Junior Member
    Join Date
    Feb 2009
    Posts
    3

    Default Re: LDAP not working, undefined vaiable: res

    Ok, I tried to set variable $res to either 1 or 0. The apache log error is gone, but still getting "Invalid credentials".

  3. #3
    dryang is offline Junior Member
    Join Date
    Feb 2009
    Posts
    3

    Default Re: LDAP not working, undefined vaiable: res

    Post can be closed. Finally made it working. The problem was in configuration settings. This is what made it work:

    Server: server.my.domain.com
    Port Number: 389
    User DN: dc=my,dc=domain,dc=com
    Bind Attribute: userprincipalname
    Login Attribute: samaccountname
    User Name: user@my.domain.com

    Thanks to this post.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 2011-05-24, 03:10 PM
  2. LDAP not working
    By gaofee in forum Help
    Replies: 0
    Last Post: 2010-03-16, 04:46 PM
  3. Replies: 1
    Last Post: 2009-08-26, 02:48 PM
  4. Replies: 0
    Last Post: 2008-05-21, 02:15 PM
  5. Replies: 6
    Last Post: 2007-10-30, 04:52 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •