Re: [openupload-devel] Groups in OpenLdap subtree
Status: Beta
Brought to you by:
tsdogs
|
From: kun a. <ham...@gm...> - 2013-07-16 03:25:05
|
Not working. here's the error report: PHP Warning: ldap_search(): Search: No such object in /var/www/openupload042/lib/modules/auth/ldap.inc.php on line 47 On 7/10/13, Alessandro Briosi <ts...@br...> wrote: > Il 05/07/2013 08:15, didi supriyadi ha scritto: >> I installed successfully openupload with openldap, except when i need >> other groups in other subtree i can't login. I found this thread >> https://sourceforge.net/mailarchive/message.php?msg_id=27459301 but i >> don't know where to put the script. Can anybody help me? > > I'd say it's to use in the ldap.inc.php where the user is used to > authenticate against openldap. > > line 45 in the file. (the code you found should substitute the actual > code that follows) > > $uid = $this->ufield.'='.$login.','.$this->config['userdn']; > > with > > // The following code looks for the user DN, in case our users are not > stored in a flat tree but in various subtrees. > // If all users are under config['userdn'], then the returned dn is the > same as the previously determined uid. > > $tmp_result=ldap_search($this->ds,$this->config['userdn'],"uid=$login"); > $infos=ldap_get_entries($this->ds,$tmp_result); > $dn=$infos[0]["dn"]; > $uid = $dn; > > But personally never tested this. > > Alessandro > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Openupload-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openupload-devel > |