Hi!
First of all I must say that this module is life saving and IMHO it is crucial in helping Drupal moving toward enterprise users. One huge thanks for all who are working on this cool module. And now the problem. :)
I suppose it is nothing big, but when I go to user page (e.g. www.example.com/user/9) I got this message:
- warning: in_array() [function.in-array]: Wrong datatype for second argument in /www/sites/www.example.com/sites/all/modules/ldap_integration/ldapdata.module on line 355.
- warning: in_array() [function.in-array]: Wrong datatype for second argument in /www/sites/www.example.com/sites/all/modules/ldap_integration/ldapdata.module on line 355.
- warning: in_array() [function.in-array]: Wrong datatype for second argument in /www/sites/www.example.com/sites/all/modules/ldap_integration/ldapdata.module on line 355.
- warning: in_array() [function.in-array]: Wrong datatype for second argument in /www/sites/www.example.com/sites/all/modules/ldap_integration/ldapdata.module on line 355.
Beside this little warning everything is (almost) working like a charm.
I don't know what (extra) information could help in troubleshooting this issue, so any kind of feedback will be appreciated.
Tnx again, cheers.
Comments
Comment #1
miglius commentedTry navigating to 'admin/settings/ldapdata', then choose your ldap server and just save the settings. Does this solve the issue?
Comment #2
roberto.ch commentedme to...
but save the ldap server in 'admin/settings/ldapdata' solve the issue.
Comment #3
izkreny commentedTnx Miglius for quick reply.
It is not quite correct that just saving/updating settings in 'admin/settings/ldapdata' makes warning message go away, at least in my case.
Details: I have situation where I just want to allocate Common Name value from active directory to profile_full_name field, and I can only read from LDAP server (so I choose Same, but read-only mode. in 'Should Drupal account fields be mapped to LDAP Attributes?').
Also I would like to make all LDAP attributes' values not readable/editable by User, so according to that fact I left all checkboxes in "Attribute visibility & access control" section unchecked.
With settings like I mentioned above you got the warning message, but when I just check 'Readable by User?' Email attribute, then warning message disappear.
It looks like that workaround for not showing the warning message is making at least one LDAP attribute value readable by user.
Hope this info will help in solving issue.
Comment #4
miglius commentedI have committed the fix to the cvs.
Comment #5
izkreny commentedI applied patch and there is no warning message and everything is working like it should. :)
Tnx again.
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #7
sunescan commentedHello,
I'm having the same warning, what must I do to apply the patch?
Thanks!!!!
Comment #8
izkreny commented@sunescan: try with the latest dev version: http://ftp.drupal.org/files/projects/ldap_integration-6.x-1.x-dev.tar.gz (2008-Aug-22).
Comment #9
sunescan commentedHello,
I need a version ready for a production use, I think the dev version isn't it.
Any idea?
Thanks a lot!
Comment #10
jerome72 commentedHello,
I had the same problem and solved it in admin/settings/ldapdata/edit/1
I checked the options Readable by User? in the section "Attribute visibility & access control", and the the error messages disappeared.
Hope this can help
Regards
Comment #11
izkreny commented@sunescan: I agree with you, it would be great (and recommended) to use stable versions of modules for production sites. But, I can testify that with
LDAP integration version 6.x-1.x-dev (2008-Aug-14)I don't have any problems, everything works just fine although I'm using dev version of module which is almost two months old.@jerome72: Version of LDAP integration module that I'm using doesn't have that issue (and as you can read it should be solved). So, just to repeat: I have chosen "Same, but read-only mode." in "Should Drupal account fields be mapped to LDAP Attributes?:" section, and I don't have checked any Readable by User? option in the section "Attribute visibility & access control". The result is that I don't have any error messages, and with same options you have...hm...this is really strange! :)
Comment #12
keenlio commentedI do like this then the error message gone provided you all don't want to map:
Go to LDAP DATA -> Edit -> Advance Configuration -> DN for reading/editing attributes:
then put in the attributes and passwords which you use to setup the LDAP Server under Login Procedure->Base DNs. Passwords I use password supplied to the field 'DN for non-anonymous search:'.
Hope this help you all.