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).
Comment | File | Size | Author |
---|---|---|---|
#4 | ldap_config.zip | 3.52 KB | jagermonster |
Comments
Comment #1
johnbarclay CreditAttribution: johnbarclay commentedThanks. Appreciate the report. Avoid 7.x-2.x until it has an alpha or beta status.
Comment #2
johnbarclay CreditAttribution: johnbarclay commentedthis 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?
Comment #3
jagermonster CreditAttribution: jagermonster commentedYes i am using features. Will give it a quick test with new dev version
Comment #4
jagermonster CreditAttribution: jagermonster commentedTested 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).
Comment #5
johnbarclay CreditAttribution: johnbarclay commentedComment #6
johnbarclay CreditAttribution: johnbarclay commentedDoes rebuilding the features solve the issue?
Comment #7
johnbarclay CreditAttribution: johnbarclay commentedI 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?