Results 1 to 4 of 4

Thread: Ldap User&Group membership

  1. #1
    mmarc is offline Junior Member
    Join Date
    Dec 2010
    Posts
    1

    Default Ldap User&Group membership

    Hi guys,

    I try to work with Openldap authentification on a SugarCrm version 5.5.4 Community Edition.

    First thing is the user membership, and this feature works great on my lab :

    ###############################################
    Activate Ldap : check
    Server : 192.168.1.10
    DN user : ou=people,dc=domain,dc=com
    User filter : blank
    Connection Att: uid
    Login Att : uid
    Group member : uncheck
    Auth : check
    Auth bind user: uid=bind,dc=domain,dc=com
    Auth bin pwd : **************
    Autocreate user: check
    Crypto key : blank
    ###############################################

    The user is created succesfully. Now i would like to permit only user from a particular ldap group :

    The group is like this :

    dn: cn=GLPI,ou=groups,dc=domain,dc=com
    gidNumber: 10002
    cn: GLPI
    description: Glpi
    memberUid: user1
    memberUid: user2
    objectClass: posixGroup
    objectClass: sambaGroupMapping

    And here is my SugarCrm config :

    ###############################################
    Activate Ldap : check
    Server : 192.168.1.10
    DN user : ou=people,dc=domain,dc=com
    User filter : blank
    Connection Att: uid
    Login Att : uid
    Group member : check
    Group Dn : ou=groups,dc=domain,dc=com
    Group Name : cn=GLPI
    User Att : uid
    Group Att : memberUid
    Auth : check
    Auth bind user: uid=bind,dc=domain,dc=com
    Auth bin pwd : **************
    Autocreate user: check
    Crypto key : blank
    ###############################################

    And the result failed (Invalid DN syntax) with this trace :

    Mon Dec 6 17:22:05 2010 [7506][-none-][INFO] Query Execution Time:0.00029397010803223
    Mon Dec 6 17:22:05 2010 [7506][-none-][DEBUG] Starting user load for user1
    Mon Dec 6 17:22:05 2010 [7506][-none-][DEBUG] ldapauth: Connecting to LDAP server: 192.168.1.10
    Mon Dec 6 17:22:05 2010 [7506][-none-][INFO] ldapauth.ldap_rdn_lookup: Bind succeeded, searching for uid=user1
    Mon Dec 6 17:22:05 2010 [7506][-none-][DEBUG] ldapauth.ldap_rdn_lookup: base_dnu=people,dc=domain,dc=com , search_filteruid=user1)
    Mon Dec 6 17:22:05 2010 [7506][-none-][INFO] ldapauth.ldap_rdn_lookup: Search result:
    ldapauth.ldap_rdn_lookup: 2
    Mon Dec 6 17:22:05 2010 [7506][-none-][INFO] ldapauth.ldap_rdn_lookup: found_bind_user=user1
    Mon Dec 6 17:22:05 2010 [7506][-none-][DEBUG] ldapauth.ldap_authenticate_user: ldap_rdn_lookup returned bind_user=user1
    Mon Dec 6 17:22:05 2010 [7506][-none-][INFO] ldapauth: Binding user user1
    Mon Dec 6 17:22:05 2010 [7506][-none-][FATAL] [LDAP ERROR][34]Invalid DN syntax
    Mon Dec 6 17:22:05 2010 [7506][-none-][FATAL] [LDAP] ATTEMPTING BIND USING BASE DN PARAMS
    Mon Dec 6 17:22:05 2010 [7506][-none-][INFO] ldapauth: Bind attempt complete.
    Mon Dec 6 17:22:05 2010 [7506][-none-][DEBUG] ldapauth: Fetching user info from Directory.
    Mon Dec 6 17:22:05 2010 [7506][-none-][DEBUG] ldapauth: ldap_search complete.
    Mon Dec 6 17:22:05 2010 [7506][-none-][DEBUG] ldapauth: User info from Directory fetched.
    Mon Dec 6 17:22:05 2010 [7506][-none-][DEBUG] LDAPAuth: scanning group for user membership
    Mon Dec 6 17:22:05 2010 [7506][-none-][FATAL] ldapauth: uid not found for user msaettel cannot authenticate against an LDAP group
    Mon Dec 6 17:22:05 2010 [7506][-none-][FATAL] SECURITY: User authentication for user1 failed

    It seems that the group membership is not recognize.
    I try to mix between default values and common sense on the form (uid,memberUid,cn,..), but each try failed with an invalid DN syntax.


    Thx in advance for the community answers.

  2. #2
    tau_space is offline Junior Member
    Join Date
    May 2007
    Posts
    1

    Default Re: Ldap User&Group membership

    Hi,

    I am having exactly the same problem.
    Did you manage to solve your problem?

    I would really appreciate a pointer or two


    Thanks

  3. #3
    item is offline Sugar Community Member
    Join Date
    Oct 2010
    Location
    BELGIUM
    Posts
    193

    Default Re: Ldap User&Group membership

    Hi,
    i think the operating system is important.
    Maybe look this soft can be interessant : http://directory.apache.org/studio/

    I am too searching more information about this
    I receive this : (dn=uid=abcd,cn=users,dc=www,dc=rxxx,dc=be,cn=users,dc =www,dc=xxxx,dc=be) on openldap log file : bind : invalide dn.
    in bold, i do not know where this data come...but authentification works

    I know, some person have pointed transalte (swap beteween atribute en bind parametre) error on Sugar Admin Page for Ldap configuration.
    Regards
    Last edited by item; 2011-03-24 at 04:55 PM.
    CE 6.2.4
    Osx Server 10.5.8
    Apache - MySql - Php built-in
    sorry for my good english

  4. #4
    Axiom is offline Junior Member
    Join Date
    Apr 2011
    Posts
    1

    Default Re: Ldap User&Group membership

    Here's what I had to enter to get this working with an OS X 10.6.6 server:

    Server: localhost
    Port Number: [blank]
    Base DN: dc=example,dc=domain,dc=com
    Bind Attribute: dn
    Login Attribute: uid
    Group Membership: yes
    Group DN: cn=groups,dc=example,dc=domain,dc=com
    Group Name: cn=sugar
    User Attribute: uid
    Group Attribute: memberUid
    Authenticated User: (blank)
    Authenticated Password: (blank)
    Auto Create Users: yes

    This includes the modifications just to get LDAP working on OS X Server: switching Bind Attribute & Login Attribute opposite of what was provided in the mouseover examples.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. LDAP group authorisation
    By bdiddy in forum Help
    Replies: 0
    Last Post: 2010-10-14, 09:40 AM
  2. LDAP group authorisation
    By bdiddy in forum Developer Help
    Replies: 0
    Last Post: 2010-10-14, 09:25 AM
  3. OpenLDAP and Sugarcrm in group membership
    By statiic in forum General Discussion
    Replies: 0
    Last Post: 2010-08-17, 05:43 PM
  4. Replies: 2
    Last Post: 2010-07-20, 10:09 PM
  5. Replies: 3
    Last Post: 2010-03-05, 03:05 PM

Tags for this Thread

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
  •