From: Franky V. L. <lie...@te...> - 2008-03-28 16:25:06
|
I will add a config option that lets you define a search user and password, so those can then be used to bind to do the user DN-search. Many LDAP configs have DN's for users where the username is not even mentioned, eg for me this could be: DN=cn=franky van liedekerke,o=edynamics,c=be while my username is totally different than "franky van liedekerke" :-) So you can't asume the DN just by having part of it in a config, you need to search for it. Franky On 3/28/08, Matthew Gregg <mat...@gm...> wrote: > > Looking at the code yeah we search then bind, which is valid. I wonder > if we should have a default distinguished name(DN) in the config and if > that is set, skip the search and bind directly as that DN substituting > the filter attribute and the username used? > > > On Fri, 2008-03-28 at 15:40 +0100, Franky Van Liedekerke wrote: > > Yes, to know the DN of the user, you need to search ldap first > > (because the user enters his username, not his DN) > > > > Franky > > > > > > On 3/28/08, Matthew Gregg <mat...@gm...> wrote: > > Do we browse before we bind in the ldap auth code? > > > > On Fri, 2008-03-28 at 14:27 +0100, Franky Van Liedekerke > > wrote: > > > For the moment, this is indeed an issue. I'll fix this and > > add this > > > possibility in the next version. > > > For now: go to admin/include/lib/espauth-ldap.inc, search > > for the line > > > that mentions "ldap_connect" and add the following lines: > > > > > > if ($ds) { > > > $ldapbind=ldap_bind($ds, "YOUR DN","YOUR PASS"); > > > if (!$ldapbin) { > > > return false; > > > } > > > } > > > > > > Franky > > > > > > > > > On 3/28/08, Mihails Agafonovs <_m...@in...> wrote: > > > Hi! > > > Has someone configured phpESP authentication to work > > with > > > Active Directory? I've tried that, but there is a > > problem, > > > that Active Directory doesn't allow anonymous > > browsing, so I > > > can't even perform a successful bind. > > > Ar cieņu, Mihails > > > > > > > > > ------------------------------------------------------------------------- > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > _______________________________________________ > > > phpESP-general mailing list > > > php...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/phpesp-general > > > > > > > > > > > > ------------------------------------------------------------------------- > > > Check out the new SourceForge.net Marketplace. > > > It's the best place to buy or sell services for > > > just about anything Open Source. > > > > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > > _______________________________________________ > > phpESP-general mailing list > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/phpesp-general > > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ > > phpESP-general mailing list > > php...@li... > > https://lists.sourceforge.net/lists/listinfo/phpesp-general > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > > _______________________________________________ phpESP-general mailing > list php...@li... > https://lists.sourceforge.net/lists/listinfo/phpesp-general > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > > http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace > _______________________________________________ > phpESP-general mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpesp-general > |