Re: [PHP] php-ldap works in commandline but not through browser

2009-10-15 Thread xfedex
Did you check both php.ini files? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php-ldap works in commandline but not through browser

2009-10-15 Thread chima s
Hi, ldap extension was loaded in the php.ini file. php -i |grep ldap /etc/php.d/ldap.ini, ldap RCS Version = $Id: ldap.c,v 1.161.2.3.2.14 2008/12/31 11:17:39 sebastian Exp $ Regards Chima.s On Thu, Oct 15, 2009 at 7:17 PM, xfe...@gmail.com wrote: Did you check both php.ini files? -- PHP

[PHP] php-ldap works in commandline but not through browser

2009-10-14 Thread chima s
Hi All, I am using tring with sample program to connect the ldap using php. Below is the sample code: == ?php echo $test=ldapAuthenticate('username','password','domainname'); function ldapAuthenticate($username,$password,

Re: [PHP] PHP LDAP over SSL problems (SOLVED)

2009-04-08 Thread Keith Lawson
On Fri, Apr 3, 2009 at 10:16 AM, in message 49d5e20c.8302.00a...@sjhc.london.on.ca, Keith Lawson keith.law...@sjhc.london.on.ca wrote: On Thu, Apr 2, 2009 at 5:51 PM, in message 49d53344.7040...@gmail.com, Chris dmag...@gmail.com wrote: Keith Lawson wrote: Hello, I have been

Re: [PHP] PHP LDAP over SSL problems

2009-04-03 Thread Keith Lawson
On Thu, Apr 2, 2009 at 5:51 PM, in message 49d53344.7040...@gmail.com, Chris dmag...@gmail.com wrote: Keith Lawson wrote: Hello, I have been working on this problem for some time now and I can't seem to resolve it. Everything I have found on google and php.net says I can connect

[PHP] PHP LDAP over SSL problems

2009-04-02 Thread Keith Lawson
Hello, I have been working on this problem for some time now and I can't seem to resolve it. Everything I have found on google and php.net says I can connect to an LDAP server with SSL by setting TLS_REQCERT never in ldap.conf. I want to eliminate certs from the picture for now just to

Re: [PHP] PHP LDAP over SSL problems

2009-04-02 Thread Chris
Keith Lawson wrote: Hello, I have been working on this problem for some time now and I can't seem to resolve it. Everything I have found on google and php.net says I can connect to an LDAP server with SSL by setting TLS_REQCERT never in ldap.conf. I want to eliminate certs from the picture for

Re: [PHP] PHP LDAP - Single Sign On

2006-06-28 Thread Adrian Bruce
thanks for the response, i can see how this works (i think) for basic authentication with user input,but what i really need is to actually retrieve the logged on user name after a user has logged into windows. i.e. the user name that the http client passes to the apache mod has been captured

RE: [PHP] PHP LDAP - Single Sign On

2006-06-28 Thread Jay Blanchard
[snip] thanks for the response, i can see how this works (i think) for basic authentication with user input,but what i really need is to actually retrieve the logged on user name after a user has logged into windows. i.e. the user name that the http client passes to the apache mod has been

Re: [PHP] PHP LDAP - Single Sign On

2006-06-28 Thread Joe Wollard
well, I'm sure that if you really wanted to try to write your own auth module in PHP you could theoretically do so - but in lieu of that there is an open source apache module that you might want to look into called mod_ntlm http://modntlm.sourceforge.net/ keep in mind that all this does is

Re: [PHP] PHP LDAP - Single Sign On

2006-06-28 Thread Richard Lynch
On Wed, June 28, 2006 3:37 am, Adrian Bruce wrote: thanks for the response, i can see how this works (i think) for basic authentication with user input,but what i really need is to actually retrieve the logged on user name after a user has logged into windows. So, basically, you think Windows

[PHP] PHP LDAP - Single Sign On

2006-06-27 Thread Adrian Bruce
Hi all Sorry if this has been asked before but i am currently drawing a blank STW etc.. is there any way of retrieving the user name of a user (through the browser) that has logged on to a network (windows OS). I have used php with LDAP before and made the user log into the website, however

RE: [PHP] PHP LDAP - Single Sign On

2006-06-27 Thread Jay Blanchard
[snip] Sorry if this has been asked before but i am currently drawing a blank STW etc.. is there any way of retrieving the user name of a user (through the browser) that has logged on to a network (windows OS). I have used php with LDAP before and made the user log into the website, however i

Re: [PHP] PHP/LDAP Setup Problem

2006-04-26 Thread Richard Lynch
On Tue, April 25, 2006 9:43 pm, Crone, James wrote: I need to add LDAP support to my install of PHP. I had my sysadmin download OpenLDAP and install the libraries. Our current build of PHP is complex and I'd prefer not to have to rebuild just to add LDAP. I've been told to use the dl()

Re: [PHP] PHP/LDAP Setup Problem

2006-04-26 Thread Sameer N Ingole
Crone, James wrote: I need to add LDAP support to my install of PHP. I had my sysadmin download OpenLDAP and install the libraries. This isn't correct way. You need these libraries but they are not enough. [snip] I've been told to use the dl() function Read carefully. http://php.net/dl says

[PHP] PHP/LDAP Setup Problem

2006-04-25 Thread Crone, James
I need to add LDAP support to my install of PHP. I had my sysadmin download OpenLDAP and install the libraries. Our current build of PHP is complex and I'd prefer not to have to rebuild just to add LDAP. I've been told to use the dl() function to load the LDAP library when needed in PHP.

Re: [PHP] PHP/LDAP Authentication

2006-02-19 Thread Kim Christensen
On 2/19/06, Golden Butler [EMAIL PROTECTED] wrote: I'm currently running OpenLDAP with some users populated in the database. I would like to use PHP to create a web page where my ldap users can enter their username and password credentials to log into our intranet. Can someone point me to

RE: [PHP] PHP/LDAP Authentication

2006-02-19 Thread Weber Sites LTD
://toolbar.weberdev.com Free Uptime Monitor : http://uptime.weberdev.com SEO Data Monitor http://seo.weberdev.com -Original Message- From: Golden Butler [mailto:[EMAIL PROTECTED] Sent: Sunday, February 19, 2006 8:40 AM To: PHP Mailing List Subject: [PHP] PHP/LDAP Authentication I'm currently

Re: [PHP] PHP/LDAP Authentication

2006-02-19 Thread Delamatrix
:40 AM To: PHP Mailing List Subject: [PHP] PHP/LDAP Authentication I'm currently running OpenLDAP with some users populated in the database. I would like to use PHP to create a web page where my ldap users can enter their username and password credentials to log into our intranet. Can someone

[PHP] PHP/LDAP Authentication

2006-02-18 Thread Golden Butler
I'm currently running OpenLDAP with some users populated in the database. I would like to use PHP to create a web page where my ldap users can enter their username and password credentials to log into our intranet. Can someone point me to some expample scripts, articles, or sites. Thanks.

[PHP] php ldap

2005-08-26 Thread Santosh Jambhlikar
Hi , I have a ldap server the user password are stored in that. my php ldasearch result says that the result is ldap user password : {SMD5}eRuT8dttD6M6N6tgMJF33/TNAvc= i want to compare this password with the user given password in other application (obviously php) but when i

[PHP] PHP LDAP search parent group

2004-12-03 Thread Vincent DUPONT
Hi, I need to get the LDAP groups a user is member of (memberof). The problem is that there are multiple levels of groups, and I need to get all levels. example userA is member of group A B and C group A is member of (included in) group D If I make a simple query on the LDAP server to fetch

Re: [PHP] PHP LDAP search parent group

2004-12-03 Thread Richard Lynch
Vincent DUPONT wrote: I need to get the LDAP groups a user is member of (memberof). The problem is that there are multiple levels of groups, and I need to get all levels. example userA is member of group A B and C group A is member of (included in) group D If I make a simple query on the

[PHP] PHP / LDAP with Windows logon

2004-11-12 Thread Christopher . Wood
Hello, I have an issue with a PHP interface. We have many engineering users who will be using a request ticket system developed in PHP here. We don't know in advance who will be using the system and there may be new people in all the time. Currently I have to create a login for each person who

Re: [PHP] PHP / LDAP with Windows logon

2004-11-12 Thread Michael Gallant
I am interested if anyone has ever determined a way to do this or if it is technically impossible. To my knowledge, I don't know of any way to do that from a non-windows server. On Fri, 12 Nov 2004 08:40:03 -0500, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, I have an issue with a PHP

RE: [PHP] PHP / LDAP with Windows logon

2004-11-12 Thread Christopher . Wood
PROTECTED] Subject: Re: [PHP] PHP / LDAP with Windows logon I am interested if anyone has ever determined a way to do this or if it is technically impossible. To my knowledge, I don't know of any way to do that from a non-windows server. On Fri, 12 Nov 2004 08:40:03 -0500, [EMAIL PROTECTED

Re: [PHP] PHP LDAP query - need to add Exchange fields

2003-12-18 Thread Stuart
Ben Crothers wrote: At the moment it works fine and extracts fields like first- and surname, title, department, etc. I need to add the 'office' field, and added it at the end of this filter line: --- $filter =

[PHP] PHP LDAP query - need to add Exchange fields

2003-12-17 Thread Ben Crothers
Hoping this is an easy question to answer, apologise upfront if this is so basic, but just been put in charge of a PHP app with LDAP interface to M$ Exchange, and trying to figure out how it works. At the moment it works fine and extracts fields like first- and surname, title, department, etc. I

[PHP] PHP LDAP query - need to add Exchange fields

2003-12-17 Thread Ben Crothers
Hoping this is an easy question to answer, apologise upfront if this is so basic, but just been put in charge of a PHP app with LDAP interface to M$ Exchange, and trying to figure out how it works. At the moment it works fine and extracts fields like first- and surname, title, department, etc. I

[PHP] PHP LDAP attributes question

2003-11-20 Thread Cory Hicks
Hello, I am having trouble returning attributes from an LDAP dir and was curious if anyone had experienced similar issues. I am able to retrieve the attributes in the $nds_stuff fine. However, once I add an attribute to the array, I can get the last attribute in the array, but not the one that

[PHP] PHP, LDAP - Can't delete from more than 1 group

2003-02-19 Thread Greg
I'm using PHP to add users to my ldap directory. When I create a user they can be added to 1 or more groups. When that user is deleted, I want to remove them from all groups. The code I wrote only removes them from the first group, then gives an error for any other group. Here is the code,

[PHP] php-ldap - multiple modify actions within a single request

2003-01-07 Thread Karim Jafarmadar
hi! is it possible to make different modify actions (add, delete, etc.) during a single request? for changing a password in the NDS i would have to first delete the 'userPassword' and right after that add the new 'userPassword' i know that it is possible in C, perl, etc. but it seems that

Re: [PHP] php-ldap - multiple modify actions within a single request

2003-01-07 Thread Michael Sims
On Tue, 07 Jan 2003 22:49:45 +0100, you wrote: hi! is it possible to make different modify actions (add, delete, etc.) during a single request? for changing a password in the NDS i would have to first delete the 'userPassword' and right after that add the new 'userPassword' AFAIK it is not

[PHP] PHP/ldap - atomic attribute modification

2002-12-14 Thread Carl J Meyer
Hi all, Anyone out there have significant experience using the PHP/ldap interface? It appears to me that it's missing some important functionality, but I might just not be seeing how to do it. I have a user-management application which needs to manage an openLDAP user base of several thousand

[PHP] php, ldap, and ssl

2002-12-11 Thread dweise
hi, i sent this to the php install list but nobody was able to help me. thus i'm giving this list a crack at it. When i installed php v4.2.1 on my Solaris 8 (x86) using this install command: ./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs --with-gd=/usr/local

Re: [PHP] php / ldap

2002-11-04 Thread Stig Venaas
On Wed, Oct 30, 2002 at 09:28:00AM -0500, GC wrote: Hi, using php_ldapadd, I get this error in ldap.log: Oct 30 09:23:43 Lunar slapd[10714]: conn=202 op=1 RESULT tag=105 err=65 text=object class 'posixAccount' requires attribute 'uidNumber' How do I get the next available uid number from

[PHP] php / ldap

2002-10-30 Thread GC
Hi, using php_ldapadd, I get this error in ldap.log: Oct 30 09:23:43 Lunar slapd[10714]: conn=202 op=1 RESULT tag=105 err=65 text=object class 'posixAccount' requires attribute 'uidNumber' How do I get the next available uid number from my ldap database and then use that number for uidnumber?

[PHP] PHP, LDAP and SASL

2002-04-13 Thread Quinn Perkins
I have an OS X box that has been running PHP 4.1.2 and OpenLDAP 2.0.23 without any problems. I can bind to the LDAP database from PHP and everyone is happy. I wanted to build a new box with Cyrus-IMAP, Cyrus-SASL and OpenLDAP, moving my mail and authentication to it and leave the first box to

[PHP] PHP, LDAP and OS X

2002-01-15 Thread Quinn Perkins
The frustrating part is, I had this working on OS X 10.0.4. I am now running 10.1.2 Server. I successfully build OpenLDAP and it is working fine. I successfully built a version of PHP 4.0.6 for OS 10.1 with the instructions found at http://developer.apple.com/internet/macosx/php.html. It

Re: [PHP] PHP LDAP

2001-12-04 Thread Stig Venaas
On Tue, Dec 04, 2001 at 07:41:14AM +0800, Hafiz Malik wrote: hi there.. i'm succesfully add ldap entry(jpegphoto) using PHP via below codes.. but failed to modify it.. any ideas? Not really. Could you check what ldap_modify() returns, did you get any warnings from PHP? Turn on more debugging

[PHP] PHP LDAP

2001-12-03 Thread Hafiz Malik
hi there.. i'm succesfully add ldap entry(jpegphoto) using PHP via below codes.. but failed to modify it.. any ideas? ADD LDAP ENTRY VIA PHP $userfile = addpicture.jpg; $fd = fopen ($userfile, r); $fsize = filesize ($userfile); $jpegStr = fread ($fd, $fsize); fclose ($fd); $ds =

[PHP] PHP, LDAP ldap_set_option

2001-04-11 Thread Holger Flocken
Hi, I want to use the LDAP functions of PHP to process every entry in an LDAP directory. Unfortunately the directory contains more than 2 entries and the PHP LDAP functions (ldap_search/ldap_list) report that the timelimit (30 seconds) has been exceed. I tried to use ldap_set_option($ds,

Re: [PHP] PHP, LDAP ldap_set_option

2001-04-11 Thread Stig Venaas
On Wed, Apr 11, 2001 at 02:07:04PM +0200, Holger Flocken wrote: Hi, I want to use the LDAP functions of PHP to process every entry in an LDAP directory. Unfortunately the directory contains more than 2 entries and the PHP LDAP functions (ldap_search/ldap_list) report that the timelimit

[PHP] PHP LDAP SSL

2001-03-06 Thread Matthieu Le Corre
I try to have the php ldap functions working with SSL , but when the code is executed the apache child die !!! is there anyone with that working regards -- __ Matthieu LE CORRE SERVICE

Re: [PHP] PHP LDAP SSL

2001-03-06 Thread Stig Venaas
On Tue, Mar 06, 2001 at 09:27:55AM +0100, Matthieu Le Corre wrote: I try to have the php ldap functions working with SSL , but when the code is executed the apache child die !!! is there anyone with that working Works fine for me. I know one other person with the same problem as you. He also

Re: [PHP] PHP LDAP SSL

2001-03-06 Thread Matthieu Le Corre
Hum the ldapsearch work fine !!! with the command : ldapsearch -x -H "ldaps://x..xx:636" I have got a possitive response from server ! and I don't use SASL ... really don't know why is don't work with php !!! my box : RH7 KDE2 Apache 1.3.17 php 4.04 pl1

Re: [PHP] PHP LDAP SSL

2001-03-06 Thread Stig Venaas
On Tue, Mar 06, 2001 at 10:54:24AM +0100, Matthieu Le Corre wrote: Hum the ldapsearch work fine !!! with the command : ldapsearch -x -H "ldaps://x..xx:636" I have got a possitive response from server ! and I don't use SASL ... I got some info from the other guy. He also used RH7

Re: [PHP] PHP LDAP SSL

2001-03-06 Thread Matthieu Le Corre
i don't use SASL so when i use ldapsearch without -x I get "ldap_sasl_interactive_bind_s: Unknown authentication method" but it doesnt crash ! when i use php ldap functions with ssl php doesn't crash but juste an Apache child crash ! so you think that if i compile openldap without SASL i will

Re: [PHP] PHP LDAP SSL

2001-03-06 Thread Stig Venaas
On Tue, Mar 06, 2001 at 11:22:55AM +0100, Matthieu Le Corre wrote: i don't use SASL so when i use ldapsearch without -x I get "ldap_sasl_interactive_bind_s: Unknown authentication method" but it doesnt crash ! Okay, the other guy had a crash there. For me it works without -x and I don't use

Re: [PHP] PHP LDAP SSL

2001-03-06 Thread Matthieu Le Corre
Le Mardi 6 Mars 2001 11:35, vous avez crit : I'm not sure of anything, but what I would have done to debug it, is to use gdb either on the Apache process or on a stand-alone PHP. I prefer debugging with a stand-alon binary myself. Then run PHP with your script and see what happens. If you

Re: [PHP] PHP LDAP SSL

2001-03-06 Thread Stig Venaas
There's been some discussion on the OpenLDAP lists as well, and there seems to be a fix around. See http://www.openldap.org/its/index.cgi/Software%20Bugs?id=889 Stig -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [PHP] PHP LDAP SSL

2001-03-06 Thread Matthieu Le Corre
COOLL it work oki guys to work : apply the patch openldap source recompil openldap don't forget to copy librairie from /usr/local/lib to /usr/lib ! recompil php recompil apache and it works !!! it's beeen hard but it works !!! thank for all Le Mardi 6 Mars 2001 12:51, vous