Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
7 - 0 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
   

Re: CONNECT WITH TWO ACTIVE DIRECTORY SERVERS
by ghia on 2009/6/12 15:36:38

Put your two servernames in the preference as servername1|servername2 and try with this replacement function for authenticate in /class/auth/auth_ldap.php
le="color: #000000"><?php function authenticate($uname, $pwd = null) { $authenticated = false; if (!extension_loaded('ldap')) { $this->setErrors(0, _AUTH_LDAP_EXTENSION_NOT_LOAD); return $authenticated; } $ldapservers = explode('|', $this->ldap_server); foreach ($ldapservers as $ldapserver) { $this->_ds = ldap_connect($ldapserver, $this->ldap_port); if ($this->_ds) { ldap_set_option($this->_ds, LDAP_OPT_PROTOCOL_VERSION, $this->ldap_version); if ($this->ldap_use_TLS) { // We use TLS secure connection if (!ldap_start_tls($this->_ds)) $this->setErrors(0, _AUTH_LDAP_START_TLS_FAILED); } // If the uid is not in the DN we proceed to a search // The uid is not always in the dn $userDN = $this->getUserDN($uname); if ($userDN) { // We bind as user to test the credentials $authenticated = ldap_bind($this->_ds, $userDN, stripslashes($pwd)); if ($authenticated) { // We load the XOOPS User database return $this->loadXoopsUser($userDN, $uname, $pwd); } else $this->setErrors(ldap_errno($this->_ds), ldap_err2str(ldap_errno($this->_ds)) . '(' . $userDN . ')'); } } else { $this->setErrors(0, _AUTH_LDAP_SERVER_NOT_FOUND); } @ldap_close($this->_ds); } return $authenticated; }
Re: CONNECT WITH TWO ACTIVE DIRECTORY SERVERS
by tcendros on 2009/6/12 14:30:51

Ye I'v a config XOOPS with a one DC and that work fine, the problem is because wy have a two domains in diferents forests, and of the moment only can validate with a only DC. I dont know if is posible make config XOOPS for validate with two domains of DC or ldap I supouse are the same problem.

PD. jorbars please dont reply jeje
Re: CONNECT WITH TWO ACTIVE DIRECTORY SERVERS
by Xend on 2009/6/12 13:40:45

Ldap is neaded to get it to work. havent done it myself, but i now thay used this. http://sourceforge.net/projects/adldap/
Re: CONNECT WITH TWO ACTIVE DIRECTORY SERVERS
by tcendros on 2009/6/12 7:48:08

Someone know how save the active directory configuration, may be in the sql tables or in a archive? By the way, it possible have two XOOPS installation sharing the same data base.
Re: CONNECT WITH TWO ACTIVE DIRECTORY SERVERS
by ghia on 2009/6/12 7:47:07

I have no experience at all with this, but:
Is the active domain controller not responsible to resolve that?
Did you try to add the domain as prefix to the username as in eg dom1\user1 dom2\user2 ?

Who's Online

98 user(s) are online (74 user(s) are browsing Support Forums)


Members: 0


Guests: 98


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits