forked from extern/egroupware
fix for accounts in LDAP, but no passwords (auth against something else), in that case we need to search with the root_dn and not the user himself
This commit is contained in:
parent
46788e009b
commit
4e64f9d62e
@ -224,12 +224,16 @@ class so_ldap
|
|||||||
{
|
{
|
||||||
$GLOBALS['egw_info']['server']['ldap_contact_host'] = $GLOBALS['egw_info']['server']['ldap_host'];
|
$GLOBALS['egw_info']['server']['ldap_contact_host'] = $GLOBALS['egw_info']['server']['ldap_host'];
|
||||||
$GLOBALS['egw_info']['server']['ldap_contact_context'] = $GLOBALS['egw_info']['server']['ldap_context'];
|
$GLOBALS['egw_info']['server']['ldap_contact_context'] = $GLOBALS['egw_info']['server']['ldap_context'];
|
||||||
|
$this->ds = $GLOBALS['egw']->ldap->ldapConnect();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->ds = $GLOBALS['egw']->ldap->ldapConnect(
|
||||||
|
$GLOBALS['egw_info']['server']['ldap_contact_host'],
|
||||||
|
$GLOBALS['egw_info']['user']['account_dn'],
|
||||||
|
$GLOBALS['egw_info']['user']['passwd']
|
||||||
|
);
|
||||||
}
|
}
|
||||||
$this->ds = $GLOBALS['egw']->ldap->ldapConnect(
|
|
||||||
$GLOBALS['egw_info']['server']['ldap_contact_host'],
|
|
||||||
$GLOBALS['egw_info']['user']['account_dn'],
|
|
||||||
$GLOBALS['egw_info']['user']['passwd']
|
|
||||||
);
|
|
||||||
$this->ldapServerInfo = $GLOBALS['egw']->ldap->getLDAPServerInfo($GLOBALS['egw_info']['server']['ldap_contact_host']);
|
$this->ldapServerInfo = $GLOBALS['egw']->ldap->getLDAPServerInfo($GLOBALS['egw_info']['server']['ldap_contact_host']);
|
||||||
|
|
||||||
foreach($this->schema2egw as $schema => $attributes)
|
foreach($this->schema2egw as $schema => $attributes)
|
||||||
|
Loading…
Reference in New Issue
Block a user