• Morning,

    I’m trying to connect to a localhost ldap and using AuthLDAP for that connection and maintain the same group name that it is in LDAP.

    I have selected Suscriber from Default Role combobox.
    And LDAP Group override role of existing users is enabled.

    When log on with a ldap user, the role is Suscriber.

    Is there any way to create the user with the same group that has in LDAP?

    Thank you,

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Robert Ehrenleitner

    (@robertehrenleitnerplus)

    Good morning,

    first of all make sure you are using the right connection string:

    ldap://cn=admin,dc=webd,dc=lan:password@localhost:389/dc=webd,dc=lan

    Note that if you are using TLS-secured LDAP, i.e. LDAPS, you need to change the scheme to ldaps://, and you may adapt the port.

    Also, make sure that the password is URI encoded, so e.g. my?password should be rendered as my%3Fpassword.

    The checkbox “Search LDAP for user’s groups and map to WordPress roles” can be checked to make the plugin map LDAP groups to WordPress roles if they exist. WordPress groups will not be created automatically.

    Kind regards,
    REH

    Thread Starter joserodriguezan

    (@joserodriguezan)

    Hi Robert,

    Thanks for the quick reply. In my case MAP LDAP Group to wordpress Roles and LDAP Groups override role of existing users are enabled and StartTLS is disabled.

    Enable Authentication via LDAP? : enable
    Debug AuthLDAP? : enable
    Do not authenticate existing WordPress-Users : disable
    Map LDAP Groups to wordpress Roles? : enable
    LDAP URI: ldap://cn=admin,dc=webd,dc=lan:ldap4ssword@localhost/dc=webd,dc=lan
    Filter : uid=%s
    User-Read : enable
    Name-Attribute : cn
    Second Name Attribute : sn
    User-ID Attribute : uid
    Mail Attribute : mail
    Default Role : Contributor
    LDAP Groups override role of existing users? : enable
    Group-Base : ou=grupos,dc=webd,dc=lan
    Group-Attribute : gidNumber
    Group-Filter : (&(objectclass=posixAccount)((!(uid=%s)(mail=%s)))

    This is all the information I added to the plugin. I can connect but Role for the new user created is comes from Default Role instead from LDAP.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to create a user with the LDAP group’ is closed to new replies.