• Resolved heathece

    (@heathece)


    Hello, your plugin in awesome!! Connected right up to our LDAP server. I use this for authentication and then have all employees setup using a plugin called Employee Directory Professional WordPress Plugin. Is there a way to tie the two together based off of authenticated username? The reason I ask is because after using your plugin to authenticate, it uses my username and no picture when I’m posting or doing anything on the site. Please let me know your thoughts. Thanks!

    https://www.ads-software.com/plugins/wpdirauth/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Paul Gilzow

    (@gilzow)

    Maybe? I’m not familiar with that plugin. Is this it? https://emdplugins.com/plugins/employee-directory-professional/?

    Thread Starter heathece

    (@heathece)

    Yes!

    Plugin Author Paul Gilzow

    (@gilzow)

    That’s a paid plugin that I dont have access to. In looking at the free version, it appears that they create a custom post type for each employee. I’m not seeing anything in the free version where they create new user accounts in wordpress based on AD accounts. My guess is that they store some post meta data on the employee that connects the two. Do you know how this plugin uniquely identifies an employee? Is it with your SSOID?

    Of course, without access to the paid version, I’m not completely sure how the two plugins differ.

    Thread Starter heathece

    (@heathece)

    I don’t but I’ll see if I can find out how its being stored.

    One other question, once authenticated with your plugin, how can I access the username and password? I need to pass them into a couple of old apps until they are replaced and don’t want to make the user login twice. I was hoping I could grab them from the session on the welcome page and pass them into another tab for our old Intranet. I have it mostly working, just don’t know how to get the u/p from your plugin.

    Thanks,

    Heather

    Plugin Author Paul Gilzow

    (@gilzow)

    wpDirAuth doesn’t store an AD-authenticated user’s password. It only passes it on to the LDAP instance during authentication. The password stored in wordpress for the user is a random value since the password will never be used.

    You can retrieve the current user by using wordpress’ wp_get_current_user() function. The user name is also stored in the cookies that wordpress sets upon successful login. Depending on your set up, you might be able to adjust your old site to recognize those cookies as “authorized”

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Tie to employee directory’ is closed to new replies.