Using OpenLDAP with account Strategy II.C. Derive drupal roles from LDAP Group entries
User gets added and logged in and roles are added to the user, however i get the following warnings and notices

Notice: Undefined property: LdapAuthenticationConf::$acctCreation in LdapAuthenticationConf->allowUser() (line 127 of /ldap/ldap_authentication/LdapAuthenticationConf.class.php).
Notice: Undefined property: LdapAuthenticationConf::$acctCreation in _ldap_authentication_user_login_authenticate_validate() (line 500 of /ldap/ldap_authentication/ldap_authentication.inc).
Warning: set_error_handler() expects the argument (LDAPInterface::void_error_handler) to be a valid callback in LdapServer->createLdapEntry() (line 338 of /ldap/ldap_servers/LdapServer.class.php).

Files: 
CommentFileSizeAuthor
#4 ldap_config.zip3.52 KBjagermonster

Comments

johnbarclay’s picture

Title:ldap_authentication - Undefined property: LdapAuthenticationConf::$acctCreation in LdapAuthenticationConf->allowUser()» ldap authentication: Undefined property: LdapAuthenticationConf::$acctCreation in LdapAuthenticationConf->allowUser()

Thanks. Appreciate the report. Avoid 7.x-2.x until it has an alpha or beta status.

johnbarclay’s picture

Status:Needs work» Postponed (maintainer needs more info)

this should be fixed in 7.x-2.x-dev. Can you confirm? If you are still getting the errors, are you using features or not?

jagermonster’s picture

Yes i am using features. Will give it a quick test with new dev version

jagermonster’s picture

StatusFileSize
new3.52 KB

Tested again, but now i am receiving other errors.
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Notice: Undefined index: contexts in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).
Warning: in_array() expects parameter 2 to be array, null given in LdapUserConf->getSynchMappings() (line 182 of /var/www/bloodhound/www/sites/all/modules/vendor/ldap/ldap_user/LdapUserConf.class.php).

johnbarclay’s picture

Priority:Normal» Major
Status:Postponed (maintainer needs more info)» Active
johnbarclay’s picture

Does rebuilding the features solve the issue?

johnbarclay’s picture

Status:Active» Closed (cannot reproduce)

I don't see a contexts index at all in ldapUserConf.class.php in 7.x-2.x-dev. Perhaps this was resolved along the way or is for 7.x-1.x-dev?