Results 1 to 1 of 1
  1. #1
    Join Date
    Jun 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Question LDAP Application Authentication

    First time posting on this forum, so feel free to nudge me in the right direction if I'm posting this in the wrong area.

    I've been attempting to deploy openldap (cn=config) across our cloud environment.

    The version is openldap 2.4.2 and I'll paste the contents of the exported ldif at the end of this.

    I'm attempting to configure openldap so that applications can connect and authorize users. Some examples, I've got Atlassian products, zabbix, Nexus, and a few other items that are all ldap friendly.

    I've configured ldap and configured just enough accounts to attempt some tests. Everything seems to test ok with ldapsearch, and using nexus (for example) I can test authentication via the admin account and the application finds and lists users properly from the ldap application.

    This is great, but after configuring the various applications with ldap and the users, I am unable to log in as any of the users. In nexus, I used the application to add the user (after it found the user via ldap) and added a local permission set that allowed log on, but no go. No errors in the logs either. A kneejerk reaction on my part has been to assume the password was not configured correctly, but I've fiddled with the password and have not been able to resolve the problem.

    I have done some research, but most documentation is for older pre cn=config (not that I'm sure that matters with regards to my issue) and looking up authentication issues with ldap almost always either results in information advanced authentication or local system account authentication (which I am not using).

    By default I am using a plaintext password (userPassword)

    Some raw info (passwords and names have been modified)

    Here is the result of an ldap search:

    root:/etc/ldap/slapd.d/cn=config# ldapsearch -D cn=admin,dc=inside,dc=com -w naughy -b ou=users,dc=inside,dc=com uid=john
    # extended LDIF
    #
    # LDAPv3
    # base <ou=users,dc=inside,dc=com> with scope subtree
    # filter: uid=john
    # requesting: ALL
    #

    # John Paul, users, inside.com
    dn: cn=John Paul,ou=users,dc=inside,dc=com
    objectClass: inetOrgPerson
    objectClass: organizationalPerson
    objectClass: person
    objectClass: top
    uid: john
    sn: Paul
    cn: John Paul
    userPassword:: ZXpwymVlczA=
    mail: removed

    # search result
    search: 2
    result: 0 Success

    # numResponses: 2
    # numEntries: 1

    ------------------------

    Contents of LDIF
    version: 1

    dn: dc=inside,dc=com
    objectClass: domain
    dc: inside

    dn: ou=users,dc=inside,dc=com
    objectClass: top
    objectClass: organizationalUnit
    ou: users

    dn: ou=groups,dc=inside,dc=com
    objectClass: top
    objectClass: organizationalUnit
    ou: groups

    dn: cn=John Paul,ou=users,dc=inside,dc=com
    objectClass: top
    objectClass: person
    objectClass: organizationalPerson
    objectClass: inetOrgPerson
    cn: John Paul
    sn: Paul
    mail: removed
    uid: john
    userPassword:: ZXpwymVlczA=

    dn: cn=admin,ou=groups,dc=inside,dc=com
    objectClass: top
    objectClass: groupOfUniqueNames
    cn: admin
    uniqueMember: uid=john,ou=users,dc=inside,dc=com

    dn: cn=Developer,ou=users,dc=inside,dc=com
    objectClass: top
    objectClass: person
    objectClass: organizationalPerson
    objectClass: inetOrgPerson
    cn: Developer
    sn: Developer
    mail: removed
    uid: dev
    userPassword:: MXZfMGQsfTBafeN5

    dn: cn=developers,ou=groups,dc=inside,dc=com
    objectClass: top
    objectClass: groupOfUniqueNames
    cn: developers
    uniqueMember: uid=erik,ou=users,dc=inside,dc=com
    uniqueMember: uid=john,ou=users,dc=inside,dc=com
    uniqueMember: uid=dev,ou=users,dc=inside,dc=com

    dn: cn=Erik Aryan,ou=users,dc=inside,dc=com
    objectClass: top
    objectClass: person
    objectClass: organizationalPerson
    objectClass: inetOrgPerson
    cn: Erik Aryan
    sn: Aryan
    mail: removed
    uid: eric
    userPassword:: ZW5sfWtvMafdMiE=

    Thanks for any advice on this...

    Joel
    Last edited by freshgrilled; 06-28-2012 at 04:32 PM. Reason: Corrected typo




 

 

Similar Threads

  1. Apache Module For OpenID Authentication
    By News in forum Linux News
    Replies: 0
    Last Post: 03-08-2012, 01:54 PM
  2. How to start application quickly?
    By carbon333 in forum General Linux
    Replies: 0
    Last Post: 02-16-2012, 02:35 PM
  3. Replies: 0
    Last Post: 01-03-2012, 04:12 PM
  4. Replies: 0
    Last Post: 12-16-2011, 11:37 PM
  5. Squid and Basic Authentication
    By Fred in forum Linux News
    Replies: 0
    Last Post: 12-02-2011, 08:58 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
  •  
           








Check out Linux Central for Linux software and other goodies!





» Stats

Members: 3,585
Threads: 3,921
Posts: 9,448
Top Poster: Fred (1,486)
Welcome to our newest member, Nick Vinson

» Links



Powered by vBadvanced CMPS