31
rogerwu
Re: Xoops Authentication Service hack for Xoops 2.0.7.3
  • 2005/2/3 11:11

  • rogerwu

  • Just popping in

  • Posts: 1

  • Since: 2003/3/12


Dear All:

Thanks for your hard work.
I follow these discussion , and try to modify my XOOPS site in my company to integrate the authencation of XOOPS(2.0.9.2) and AD (windows 2000).

I download your latest file, and modify code step by step follow your manual.

I can't success, so I turn the XOOPS's debug mode, see the error message below, please give me your help. Thank you very much.

--------------------
This page cannot be displayed due to an internal error.

If you are the administrator of this site, please visit the XOOPS Troubleshooting Page for assistance.

Warning [PHP]: ldap_bind(): Unable to bind to server: Can't contact LDAP server in file C:\web\include\authenticationservices\ad.php line 266
Warning [PHP]: ldap_search(): Search: Can't contact LDAP server in file C:\web\include\authenticationservices\ad.php line 267
Error [Xoops]: Can't contact LDAP server in file C:\web\include\authenticationservices\ad.php line 285
-----------------------

and I check the ad.php, I found the line 266 include those code, would you please tell me how do I modify it? and what is the meaning of it?

----------------
$ldapbind = ldap_bind($ds,"MERCIER Benoit(DIGIT)","nicNAC22");
-----------------

32
M4d3L
Re: Xoops Authentication Service hack for Xoops 2.0.7.3
  • 2005/2/11 19:23

  • M4d3L

  • Just popping in

  • Posts: 60

  • Since: 2002/11/18


Where can I find documentation to config that :

var $uid_attr "uid";
    var 
$mail_attr "mail";
    var 
$name_attr "cn";
    var 
$surname_attr "sn";
    var 
$givenname_attr "givenname";
    var 
$location_attr "l";
    var 
$office_attr "physicaldeliveryofficename";
    var 
$sernum_attr"gestelnumber";
    var 
$ldap_server "ldap.cc.cec.eu.int";
    var 
$ldap_port 10389;
    var 
$base_dn "ou=People,o=cec.eu.int";

33
pemen
Re: Xoops Authentication Service hack for Xoops 2.0.7.3
  • 2005/2/11 20:07

  • pemen

  • Not too shy to talk

  • Posts: 186

  • Since: 2002/7/8 7


Quote:
$ldapbind = ldap_bind($ds,"MERCIER Benoit(DIGIT)","nicNAC22");


The ldap_bind function is the authentication to the LDAP SERVEUR.

ldap_bind(link, rdn, password);

link : is the resource return by ldap_connect
rdn : DN of the user to connect. For example your AD Administrator : cn=Administrator, cn=users, dc=, dc=org (for example)

password : password associated to user.

34
M4d3L
Re: Xoops Authentication Service hack for Xoops 2.0.7.3
  • 2005/2/14 14:36

  • M4d3L

  • Just popping in

  • Posts: 60

  • Since: 2002/11/18


I have this error

Quote:
Fatal error: Call to undefined function: ldap_connect() in /home/odesia/public_html/v3ldap/include/authenticationservices/ldap.php on line 261


Where this function is supose to be define?

35
Mithrandir
Re: Xoops Authentication Service hack for Xoops 2.0.7.3

PHP Manual page

Quote:
You will need to get and compile LDAP client libraries from either the University of Michigan ldap-3.3 package, Netscape Directory SDK 3.0 or OpenLDAP to compile PHP with LDAP support.

36
ackbarr
Re: Xoops Authentication Service hack for Xoops 2.0.7.3

Quote:
Fatal error: Call to undefined function: ldap_connect() in /home/odesia/public_html/v3ldap/include/authenticationservices/ldap.php on line 261


This means that your PHP installation is missing LDAP support.

Taken from the PHP LDAP page:
Quote:
LDAP support in PHP is not enabled by default. You will need to use the --with-ldap[=DIR] configuration option when compiling PHP to enable LDAP support. DIR is the LDAP base install directory. To enable SASL support, be sure --with-ldap-sasl[=DIR] is used, and that sasl.h exists on the system.

Note to Win32 Users: In order to enable this module on a Windows environment, you must copy several files from the DLL folder of the PHP/Win32 binary package to the SYSTEM folder of your windows machine. (Ex: C:\WINNT\SYSTEM32, or C:\WINDOWS\SYSTEM). For PHP <= 4.2.0 copy libsasl.dll, for PHP >= 4.3.0 copy libeay32.dll and ssleay32.dll to your SYSTEM folder.

37
M4d3L
Re: Xoops Authentication Service hack for Xoops 2.0.7.3
  • 2005/2/15 21:43

  • M4d3L

  • Just popping in

  • Posts: 60

  • Since: 2002/11/18


Does exist a easy way to recompile php with ldap flag without loose my last config

38
ackbarr
Re: Xoops Authentication Service hack for Xoops 2.0.7.3

yup - in your source directory, there should be a file config.status which contains your previous ./configure settings.

39
Yapco
Re: Xoops Authentication Service hack for Xoops 2.0.7.3
  • 2005/2/16 13:56

  • Yapco

  • Just popping in

  • Posts: 1

  • Since: 2005/2/16


Hi,

I'm using XOOPS 2.0.9.2, and I applied patch to it.

After logout I have blank page, so I guess redirection is not working properly.

Have someone same ideas about that problem??

40
mercibe
Re: Xoops Authentication Service hack for Xoops 2.0.7.3
  • 2005/2/16 14:23

  • mercibe

  • Just popping in

  • Posts: 55

  • Since: 2003/6/12


I have applied the hack on a 2.0.9.2 and it works (LDAP, AD and CAS - did not test other modules). I planned to release a new version of this hack soon. And better in fact: I want to make it part of one of the next official XOOPS kernel. I will come to this forum later to discuss about the issues raised by some of you.

Sorry I am very busy right now but stay tuned.

Benoit

Login

Who's Online

145 user(s) are online (125 user(s) are browsing Support Forums)


Members: 0


Guests: 145


more...

Donat-O-Meter

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

Latest GitHub Commits