WordPress.org

Ready to get started?Download WordPress

Forums

Active Directory Employee Listing
Active Directory Settings can't be stored? (32 posts)

  1. maim44
    Member
    Posted 3 years ago #

    Hello,
    first of all, awesome plugin! I have only one problem: On the settings page the Active Directory Settings can't be stored and I don't know why.

    Would it be possible to enter these AD setting directly in the DB or whereever they are stored?

    Hopefully, someone could help me!

    Thanks Michael

    http://wordpress.org/extend/plugins/active-directory-employee-list/

  2. Curtiss Grymala
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry I took so long to get back to you. I forgot that I didn't yet have notifications set up for topics posted about this plugin.

    I assume you are running version 0.2.1a of the plugin, right? I will try to look into this, but I have not yet been able to reproduce the issue.

    Just to be sure; if you happen to be running this on a multisite setup, but you only have it activated on a single site, please make sure the "Ignore this group of options" checkbox is not checked in each group of options. That checkbox is not supposed to show up unless the plugin is network active, but there's a bug in the current version that causes it to show anyway.

    EDIT - Actually, I just tested on a different server and I think I've been able to reproduce the issue. I'll try to find a solution over the next day or two. Thanks for reporting it.

  3. berlina
    Member
    Posted 2 years ago #

    I'm also having the same issue. Any word yet? I really enjoy the features of this plug-in. Where is the shortcode listed?

  4. Curtiss Grymala
    Member
    Plugin Author

    Posted 2 years ago #

    Sorry for taking so long to get back to you guys.

    There is a new Development Version available that should fix this issue; and also adds a lot of new functionality. If you wouldn't mind testing it out to let me know if you're still seeing bugs/issues in the plugin, that would be awesome. Thanks.

    Edit - Also, the shortcode is [ad-employee-list]. I'm a little embarrassed that I forgot to document that anywhere. I'll add that to the readme in the next version; and will also add some documentation to the options page(s). I'm also hoping to get a Visual Editor button set up for the plugin (so you don't have to manually type in the shortcode and set its options). Thanks.

  5. berlina
    Member
    Posted 2 years ago #

    Right away after copying and activating the plugin I get a 500 server error:

    HTTP Error 500.0 - Internal Server Error
    The page cannot be displayed because an internal server error has occurred. Detailed Error InformationModule FastCgiModule
    Notification ExecuteRequestHandler
    Handler PHP_via_FastCGI
    Error Code 0x00000000
    Requested URL http://mysite.local:80/wp-admin/options-general.php?page=ad_employee_list_options_pg
    Physical Path D:\Intranet\wordpress\wp-admin\options-general.php
    Logon Method Anonymous
    Logon User Anonymous

    I haven't done any troubleshooting yet. But this is what I ended up with out of the box. If it's helpful, I'm running IIS7 on Windows Server 2008R2, MySQL5.5, PHP 5.3.8, and WordPress v3.2.1.

  6. waynegibbings
    Member
    Posted 2 years ago #

    Michael: I had the same problem. If you fill in all the fields in the AD section, I believe it will save. If you only fill a few in, it wont.

  7. Curtiss Grymala
    Member
    Plugin Author

    Posted 2 years ago #

    Thanks for the report, berlina. I don't have any Windows servers on which I can test the plugin, so I'll have to do some digging to see if I can figure out what might be happening.

    Are you using this on a normal WordPress installation, or in a multisite install? Thanks.

  8. berlina
    Member
    Posted 2 years ago #

    It's just the normal install. I'll let you know if I figure out anything. It's possible it could be something with my IIS configuration, but I'm not sure.

  9. Curtiss Grymala
    Member
    Plugin Author

    Posted 2 years ago #

    Berlina - I have just uploaded a new development version of the plugin. Do you mind downloading it in an hour or so (it sometimes takes a while for the development version to get updated) and giving it a try to see if it makes any difference at all? Thanks.

  10. berlina
    Member
    Posted 2 years ago #

    Curtiss,

    We've gotten a little further!! I can get all of my setting to save and the page shows up. Here are the warnings php shows. Could it possibly be my configuration?

    Warning: in_array() expects parameter 2 to be array, string given in D:\Intranet\wordpress\wp-content\plugins\active-directory-employee-list\classes\class-active-directory-employee-list-output.php on line 69

    Warning: in_array() expects parameter 2 to be array, string given in D:\Intranet\wordpress\wp-content\plugins\active-directory-employee-list\classes\class-active-directory-employee-list-output.php on line 358

    Warning: array_unshift() expects parameter 1 to be array, string given in D:\Intranet\wordpress\wp-content\plugins\active-directory-employee-list\classes\class-active-directory-employee-list-output.php on line 359

    Warning: in_array() expects parameter 2 to be array, string given in D:\Intranet\wordpress\wp-content\plugins\active-directory-employee-list\classes\class-active-directory-employee-list-output.php on line 360

    Warning: array_push() expects parameter 1 to be array, string given in D:\Intranet\wordpress\wp-content\plugins\active-directory-employee-list\classes\class-active-directory-employee-list-output.php on line 361

    Warning: ldap_search() expects parameter 4 to be array, string given in D:\Intranet\wordpress\wp-content\plugins\active-directory-employee-list\inc\adLDAP-extended.php on line 191

    Warning: ldap_get_entries() expects parameter 2 to be resource, null given in D:\Intranet\wordpress\wp-content\plugins\active-directory-employee-list\inc\adLDAP-extended.php on line 195

    Warning: array_merge() [function.array-merge]: Argument #2 is not an array in D:\Intranet\wordpress\wp-content\plugins\active-directory-employee-list\classes\class-active-directory-employee-list-output.php on line 377

    Warning: Invalid argument supplied for foreach() in D:\Intranet\wordpress\wp-content\plugins\active-directory-employee-list\classes\class-active-directory-employee-list-output.php on line 467
    Search employees:

    No employees could be found matching the criteria specified

  11. Curtiss Grymala
    Member
    Plugin Author

    Posted 2 years ago #

    Now we're getting somewhere.

    It looks like the fields_to_show parameter is being interpreted as a string instead of an array, for some reason. I'll have to run some tests and see if I can figure out why it's doing that in your install.

  12. Curtiss Grymala
    Member
    Plugin Author

    Posted 2 years ago #

    I've just uploaded a new development version. In an hour or two, can you please try downloading it (it sometimes takes a little while for the repository to update the development version) and see if that makes any difference?

    Thanks again.

  13. berlina
    Member
    Posted 2 years ago #

    Well, no error messages now. When I search for anything it just takes me back to my home page in WP after I hit the search button. I've been using Chrome, but also tried in IE and Firefox without luck.

  14. Curtiss Grymala
    Member
    Plugin Author

    Posted 2 years ago #

    Are you using the shortcode or the widget? In the current version (and the current development version), the search results will only display on the page that has the shortcode in it (unless you're using the widget, in which case it should display the results in the widget area).

  15. berlina
    Member
    Posted 2 years ago #

    Just the [ad-employee-list] shortcode in a blank page

  16. berlina
    Member
    Posted 2 years ago #

    If it helps I ran a packet capture with Wireshark and didn't see any LDAP traffic generated on the box. Let me know if there is anything you want me to try!! :)

  17. Curtiss Grymala
    Member
    Plugin Author

    Posted 2 years ago #

    I'll try to add some extra debug information into the development version over the weekend so we can try to diagnose what's going on. Thanks for sticking with it.

  18. KevEd
    Member
    Posted 2 years ago #

    Hi,
    I'm having the problem with settings not being stored in the admin page. The plug-in sounds like it will be ideal for our intranet use... if I could get it working.

    I'm using version 0.2.1a in WP 3.2.1.
    I've used the shortcode on a blank page but only get the search box showing on the front-end.
    The widget option also just shows the search box.

    Do I need to set up the HTML fields before anything will display? Are there any checks I can run to see if the AD information is being read?

    Thanks :-)

  19. bloodyindian
    Member
    Posted 2 years ago #

    Hi,
    I have also the problem with settings not being stored in the plugin page.
    I have 0.2.1a plugin version and WP 3.2.1

    Is development version fixing this issue ??

    Could anybody (Curtiss) help, please ??

    Cheers

  20. berlina
    Member
    Posted 2 years ago #

    bloodyindian,

    The development version fixed saving the fields for me. I also switched to running XAMP, so I'm not on IIS anymore, but Apache. I still end up getting errors when I go to the page with the shortcode on it.

  21. Trivium1200
    Member
    Posted 2 years ago #

    Hello,

    I'm having some problems with the developement version
    First of all, the settings still don't store for me, but this can be avoided by putting everything in the class-active-directory-employee-list.php file.

    After i do that, im getting 2 errors after trying to search on a page with the shortcode, the widget doesn't show anything.

    Warning: ldap_search()[function.ldap-search]: Search: Bad search filter in: adLDAP-extended.php on line 255

    Warning: ldap_get_entries() expects parameter 2 to be resource, boolean given in adLDAP-extended.php on line 259

    Some help would be appreciated.

  22. Curtiss Grymala
    Member
    Plugin Author

    Posted 2 years ago #

    That's weird. That warning should have been fixed by the dev version of adLDAP-extended.php.

    Are you using the Active Directory Authentication Integration plugin, too? If so, can you update that to the dev version, too?

  23. Trivium1200
    Member
    Posted 2 years ago #

    Hello again,

    I wasn't using the Active Directory Authentication Integration plugin, but to be sure i downloaded the dev version of that and tried using the adLDAP-extended.php of that, but no luck, i still get the same errors.

  24. lukkas35
    Member
    Posted 2 years ago #

    Hello,
    I have the same problem. It seems that parameters are not stored and there is no results when I use the plugin as well as a widget or as a shortcode.
    Conf: WordPress 3.2.1 and ADEL 0.2.1.a

  25. lukkas35
    Member
    Posted 2 years ago #

    After writting the configuration directly in class-active-directory-employee-list.php, others problems comes.
    It seems that a connexion error occurs:
    ad-LDAP-extended.php line 101: "Cannot connect LDAP server"
    The ramdon_controler function seems to be the problem (for us)(ad-LDAP.php line 2294).
    The function is waiting for dc1.something and dc2.something. We are putting here just one element which look like "mls-something", provided by the sys-admin.

  26. srgill
    Member
    Posted 2 years ago #

    Hello, using the dev build to resolve the parameters not stored problem.
    Both the widget and shortcode return no results found and entering a search term results in an error message.

    [30-Jul-2012 01:54:47 UTC] [AD LDAP Debug]: Search Filter: (&(objectClass=user)(samaccounttype=805306368)(objectCategory=person)(|(samaccountname=*scott*)(=*scott*))(memberof=cn=All ATP Employees,OU=Users,OU=Philippines,OU=Asia,OU=Site OU,DC=atg,DC=lc)(cn=*))
    [30-Jul-2012 01:59:59 UTC] PHP Fatal error:  Call to undefined function apply_filter() in /volume1/web/wordpress/wp-content/plugins/active-directory-employee-list/classes/class-active-directory-employee-list-output.php on line 57

    Is there any suggestion or advise you can offer for this.

  27. Curtiss Grymala
    Member
    Plugin Author

    Posted 2 years ago #

    @lukkas35 - When you wrote the configuration options directly, did you make sure to set the domain_controllers option to an array? The random_controllers() method will work just fine with 1 controller, but it expects the list to be an array (even if it only has 1 item).

    @srgill - I just uploaded a new dev version that should fix the fatal error you were getting. I'm not sure yet what might have been causing the empty results, but let's at least make sure the fatal error is fixed before I try to diagnose the next issue. Thanks.

  28. srgill
    Member
    Posted 2 years ago #

    Thanks. New dev version fixed the fatal error.
    Now I'm unsure why no results are returned.

    I can connect and return results via ldapsearch.
    e.g.

    ldapsearch -h hostname -x -b "OU=Users,OU=Philippines,OU=Asia,OU=Sit
    e OU,DC=atg,DC=lc" -D "user@atg.lc" -w "password" "objectClass=*" displayn
    ame department

    Woud you be able to offer any suggestion to troubleshoot.
    is the The Active Directory group(s) setting mandatory or can this be left blank?
    Currently its set to to retrieve a group in the format "All SubCompany Employees"

  29. harry216921
    Member
    Posted 2 years ago #

    I'm also having some problems (using the dev version).

    Can't get settings to store, unless all fields are filled in. I want to use anonymous lookups, but can't delete the username/admin fields (or should this stay populated with "admin")?

    Also when using the shortcode, i just get "[ad] Empty ad slot (#1)!" displayed on the page.

    The widget also returns no results.

  30. multimule
    Member
    Posted 2 years ago #

    Este plugin no funciona

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic