Error using ldap auth on web auction 0.3.5

A place to discuss and receive support for the Web Auction application.

Error using ldap auth on web auction 0.3.5

Postby ikramahamed82 » Tue Mar 03, 2009 9:49 pm

Hi Steve,

I need users to bid using there AD id.

When I try to enable ldap I get this error

Fatal error: Cannot use object of type PEAR_Error as array in /var/www/html/webauction/dataface/Dataface/Serializer.php on line 75

my conf.ini

[_auth]
auth_type=ldap
;url="https://my.sfu.ca/cgi-bin/WebObjects/cas.woa/wa"
users_table = "users"
username_column = "username"
;password_column = "password"
;allow_register=1
ldap_host = "192.168.1.88"
ldap_port = "3268"
ldap_base = "ou=users,dc=mysales,dc=com"

my ldap module is in /var/www/html/webauction/dataface/modules/ldap.php. using

http://weblite.ca/svn/dataface/modules/Auth/ldap/trunk/


am I doing something wrong?



this is the error_log from apache

[Wed Mar 04 12:47:54 2009] [error] [client 192.168.1.12] PHP Fatal error: Cannot use object of type PEAR_Error as array in /var/www/html/webauction/dataface/Dataface/Serializer.php on line 75, referer: http://sinsxvlab110.mysales.com/webauct ... gories+asc



Thank you,
/Ikram
ikramahamed82
 
Posts: 3
Joined: Tue Mar 03, 2009 9:37 pm

Postby shannah » Thu Mar 05, 2009 9:37 am

See this post: http://xataface.com/forum/viewtopic.php?t=4475 and see if some of the modifications made by Jean or fantomasdm will help for your ldap setup.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

RE:Error using ldap auth on web auction 0.3.5

Postby ikramahamed82 » Fri Mar 06, 2009 4:56 am

Hi Steve,

My ldap server needs authentication to retrieve ldap info. how do i pass that info in conf.ini.
Also is there away how i can auto insert ldap user details in to the database.

example.: When a user uses hes AD id to login, webauction authentication tool will retrieve "title,mail address,department" and insert it to relavent DB tables


Thank You,

/Ikram
ikramahamed82
 
Posts: 3
Joined: Tue Mar 03, 2009 9:37 pm

Postby shannah » Mon Mar 09, 2009 9:13 am

If you check out Jean's version of the LDAP module you'll see that passes the user's name/password to the ldap_bind function to make the connection to the AD server. You may want to do something similar to this.
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 28 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved