Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Paul Distel

    (@pauldistel)

    Even with the setting ‘LDAP Groups override role of existing users?’ disabled, roles assigned to an AD user are removed and only contributer is assigned. No clue yet why…

    Thread Starter Paul Distel

    (@pauldistel)

    Name-Attribute: givenName
    Second Name Attribute: sn
    User-ID Attribute: samAccountname
    Mail Attribute: mail

    Hi Adam,

    Busy with the same. I got it working with the below LDAP URI:

    ldap://<username>:<password>@active.directory.domain:3268/dc=accounts,dc=active,dc=directory,dc=domain

    Where username and password is an account with read permissions in the domain active.directory.com and the domain to be queried (accounts.active.directory.domain) is specified in distinguished form. I have a child domain in which the normal user accounts exists and I use an account of the parent domain to query it.

    Other settings used:

    Filter: (samAccountname=%s)
    Name-Attribute: firstname
    Second Name Attribute: surname
    User-ID Attribute: samAccountname
    Mail Attribute: mail

    I myself have another issue!

    I want to use WordPress role to group mapping. So I configured some roles with groups existing in my Active Directory. The problem now is that in the beginning I did not have the role administrator mapped to an AD group but only 2 other custom roles were configured. When I logged on using administrator, the administrator role was removed from the user and I locked myself out. I did manage to restore the account and created an additional administrator account (which does not exist in the AD!). I also created a group in AD for WP administrators and specified that for the administrator role. Still the role is deleted when I login as administrator and it is assigned the contributer role. Not a clue right now how to solve this and I wanted to post this issue when I saw yours…

    • This reply was modified 5 years, 1 month ago by Paul Distel.
    Thread Starter Paul Distel

    (@pauldistel)

    Thanks! I found the add_action function so you helped me out with this custom hook!

    Is there a list of hooks related to the plugin?

    • This reply was modified 5 years, 1 month ago by Paul Distel.
    • This reply was modified 5 years, 1 month ago by Paul Distel.
    Thread Starter Paul Distel

    (@pauldistel)

    I am not experienced enough with WordPress but I asume the plugin uses WordPress functions to create a new user but I don’t know if some function is called after a user is created?

    I am able to code some stuff myself but do not know where to insert a function. I can of course check with each page load if the current user exists in the backend active directory but that will cause a lot of unnecessary code to be executed every time again. Any suggestions where to start for me?

    • This reply was modified 5 years, 1 month ago by Paul Distel.
Viewing 5 replies - 1 through 5 (of 5 total)