[PHP] ldap connect issues

2013-04-16 Thread Dead Letter.Office
I'm a little hesitant to log a bug for this as it may be the way I'm doing things, but here's the "issue": Summary: Secondary requests to AJAX PHP Script that performs ldap_connect/ldap_bind requests to 1+ directories often results in "LDAP Can't contact LDAP server". It appears PHP doesn't e

RE: [PHP] LDAP, Active Directory, and permissions

2010-12-01 Thread Tommy Pham
> -Original Message- > From: Bob McConnell [mailto:r...@cbord.com] > Sent: Wednesday, December 01, 2010 5:23 AM > To: Chris Knipe; php-general@lists.php.net > Subject: RE: [PHP] LDAP, Active Directory, and permissions > > From: Chris Knipe > > > I&#x

RE: [PHP] LDAP, Active Directory, and permissions

2010-12-01 Thread Bob McConnell
From: Chris Knipe > I've found various sources and are successfully manipulating Active > Directory from PHP on our Domain Controller - frankly, things works much > better than I expected :) > > I have now reached the point where I need to set permissions on objects in > Active Directory, i.e. to

RE: [PHP] LDAP, Active Directory, and permissions

2010-11-30 Thread Tommy Pham
> -Original Message- > From: Chris Knipe [mailto:ckn...@savage.za.org] On Behalf Of Chris Knipe > Sent: Tuesday, November 30, 2010 10:52 PM > To: php-general@lists.php.net > Subject: RE: [PHP] LDAP, Active Directory, and permissions > > Hi, > > > Chri

RE: [PHP] LDAP, Active Directory, and permissions

2010-11-30 Thread Chris Knipe
Hi, > Chris, > > 1) Shouldn't the OU security permissions be set within the AD itself? > 2) If the above is done, then the user account that's being authenticated > shouldn't be able to access privileged information. 1) Not sure. The permissions I'm after is similar to that of NTFS permissions

RE: [PHP] LDAP, Active Directory, and permissions

2010-11-30 Thread Tommy Pham
> -Original Message- > From: ckn...@savage.za.org [mailto:ckn...@savage.za.org] On Behalf Of > Chris Knipe > Sent: Tuesday, November 30, 2010 4:47 AM > To: php-general@lists.php.net > Subject: [PHP] LDAP, Active Directory, and permissions > > Hi, > > I&#x

[PHP] LDAP, Active Directory, and permissions

2010-11-30 Thread Chris Knipe
Hi, I've found various sources and are successfully manipulating Active Directory from PHP on our Domain Controller - frankly, things works much better than I expected :) I have now reached the point where I need to set permissions on objects in Active Directory, i.e. to restrict read permissions

Re: [PHP] ldap add Invalid DN syntax

2010-05-04 Thread Manolis Vlachakis
solved as simple as i couldn't imagine... for a reason was not accepting the iconv anywhere else but... [CODE]$info["cn"] =iconv("Windows-1253","UTF-8",$data[$c]); //echo "|onoma-->"; //echo $info["cn"] ; $c++; $info["sn"] = iconv("Windows-1253","UTF-8",$data[$c]);[/CODE] so for all the greek

Re: [PHP] ldap add Invalid DN syntax

2010-05-03 Thread Manolis Vlachakis
the thing i just tried is with // Open a memory "file" for read/write... $fp = fopen('php://temp', 'r+'); // ... write the $input array to the "file" using fputcsv()... fputcsv($fp, $input, $delimiter, $enclosure); // ... rewind the "file" so we can read what we just wrote... rewind($f

Re: [PHP] ldap add Invalid DN syntax

2010-05-03 Thread Manolis Vlachakis
and my code begins like this... $uploaddir = $_SERVER['DOCUMENT_ROOT'].'/webteam/voiko/public_html/uploads/'; $file = $uploaddir . basename($_FILES['uploadfile']['name']); $data = file_get_contents($uploaddir . $_FILES["uploadfile"]["name"]); $data=split("[;\r]",$data); ; $num = count($data);

Re: [PHP] ldap add Invalid DN syntax

2010-04-30 Thread Manolis Vlachakis
on the array and on the server side i can see the names are added normally and with the correct encode(despite what i show you ) and the only thing is tha i get that DN not valid... i used the \r cause i use it on my csv file at least one... but i am sure (i used a counter for the letters + i compe

Re: [PHP] ldap add Invalid DN syntax

2010-04-30 Thread Ashley Sheridan
On Fri, 2010-04-30 at 14:34 +0300, Manolis Vlachakis wrote: > Hallo there everyone > although i have built my code correctly according to the examples i found on > the net.. > i get Invalid DN syntax error when i try to insert some attributes with ldap > add.. > > i get and read a csv file where

[PHP] ldap add Invalid DN syntax

2010-04-30 Thread Manolis Vlachakis
Hallo there everyone although i have built my code correctly according to the examples i found on the net.. i get Invalid DN syntax error when i try to insert some attributes with ldap add.. i get and read a csv file where i get the data correctly as i can see on the echos that follow:

Re: [PHP] LDAP import a csv file from php

2010-04-27 Thread Jim Lucas
Manolis Vlachakis wrote: Hallo there everyone.. first thing first i would like to thank everyone for the help that this mailing list has provided me throughout my project.. i have found many answers and got me out of black point many times!!! now i am on my last step on my project and i would li

[PHP] LDAP import a csv file from php

2010-04-26 Thread Manolis Vlachakis
Hallo there everyone.. first thing first i would like to thank everyone for the help that this mailing list has provided me throughout my project.. i have found many answers and got me out of black point many times!!! now i am on my last step on my project and i would like to see if there are any

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, wrote: > Did you check both php.ini files? > > -- > PHP General Mai

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

[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: == === When i execute this program with command line

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

2009-04-08 Thread Keith Lawson
($ldapconn, "cn=Keithl, ou=Users, o=LH")); >> >> It's hard to know - you're suppressing errors. >> >> Add these 2 lines to your script: >> error_reporting(E_ALL); >> ini_set('display_errors', true); > > I've done that

Re: [PHP] PHP LDAP over SSL problems

2009-04-03 Thread Keith Lawson
done that and I get the following when I load the page in a browser: Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't contact LDAP server in /www/doc/INTRA/ktlwiki/ldap-test.php on line 19 bool(false) Can't contact LDAP server >From the command line still

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

[PHP] PHP LDAP over SSL problems

2009-04-02 Thread Keith Lawson
m the command line: [www]/www/doc/ktlwiki > php ldap-test.php bool(true) But when I load the same code through a browser it fails. I'm using php 5.2.6, openldap 2.4.11 and openssl 0.9.8i on Solaris 10. I built everything from source, PHP has LDAP and SSL support compiled in. My openldap

Re: [PHP] LDAP in php

2008-04-04 Thread Nathan Nobbe
es, that's why I decided to try a php LDAP read-only (for Thunderbird) > "implementation" - I could not see how I can map the LDAP to our SQL (which > implements object-relational mapping defined in XML text files and could not > be done without the php logic). unfortun

Re: [PHP] LDAP in php

2008-04-03 Thread [EMAIL PROTECTED]
as read-optimized. > and its a little more > complicated to map to sql than one might initially suspect > http://www.openldap.org/doc/admin24/intro.html#LDAP%20vs%20RDBMS Yes, that's why I decided to try a php LDAP read-only (for Thunderbird) "implementation" - I could not see ho

Re: [PHP] LDAP in php

2008-04-03 Thread Nathan Nobbe
On Thu, Apr 3, 2008 at 2:22 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I am 100% aware of the fact that LDAP is a read optimized database (though > I am not sure where this optimization goes when back end is PostgreSQL, for > example - the LDAP "commands" seem simple and re-writing them in

Re: [PHP] LDAP in php

2008-04-03 Thread [EMAIL PROTECTED]
Richard Lynch schrieb: You probably wouldn't run it through Apache, but you probably COULD run an LDAP server of sorts using http://php.net/sockets Yes... this starts to sound as a solution... Sorry, I hope I do not sound lazy, I just need a bit of a help to locate the starting point. I tho

Re: [PHP] LDAP in php

2008-04-01 Thread Richard Lynch
On Sun, March 30, 2008 8:15 pm, [EMAIL PROTECTED] wrote: > As LDAP can have SQL back-end (I saw an example with PostgreSQL) - is > it > a very wild idea to implement (a simple) LDAP server in php? > > We have all the address data already in PostgreSQL and a php > application > managing all of it. >

Re: [PHP] LDAP in php

2008-03-31 Thread [EMAIL PROTECTED]
Chris schrieb: If ldap can already use a database backend, just use the normal ldap_* functions to do all of the work, don't re-invent it all. http://www.php.net/ldap Just wanted to avoid installing and maintaining a LDAP server and mapping all the data. Perhaps I am underestimating it, bu

Re: [PHP] LDAP in php

2008-03-30 Thread Chris
[EMAIL PROTECTED] wrote: As LDAP can have SQL back-end (I saw an example with PostgreSQL) - is it a very wild idea to implement (a simple) LDAP server in php? We have all the address data already in PostgreSQL and a php application managing all of it. I am thinking of simple uses, such as pr

[PHP] LDAP in php

2008-03-30 Thread [EMAIL PROTECTED]
As LDAP can have SQL back-end (I saw an example with PostgreSQL) - is it a very wild idea to implement (a simple) LDAP server in php? We have all the address data already in PostgreSQL and a php application managing all of it. I am thinking of simple uses, such as providing LDAP address books

Re: [PHP] LDAP

2007-08-22 Thread Alain Roger
Hi, Have you tried in the php.ini to setup error_reporting to E_ALL and display error messages (display_errors = On) ? I had a similar problem 2 days ago and it was due to another mistake in my PHP code. But i did not get any error message or more precisely, i did not get any WARNING message. sin

[PHP] LDAP ***RESOLVED***

2007-08-21 Thread Dan Shirah
Apparently even though our Domain Administrator said anonymous access is enabled for the server, it still did not like me trying to query AD anonymously. I created a username/password with limited priviledges to AD and now it works like a charm. Below you will find my finished code: >Could not c

Re: [PHP] LDAP

2007-08-21 Thread Dan Shirah
Nothing is being blocked since both servers are inside the DMZ. On 8/21/07, Daniel Brown <[EMAIL PROTECTED]> wrote: > > On 8/21/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > > Okay, hopefully someone can help me out here. I've gone over ldap at > > php.net and multiple other sites but can't get it

Re: [PHP] LDAP

2007-08-21 Thread Daniel Brown
On 8/21/07, Dan Shirah <[EMAIL PROTECTED]> wrote: > Okay, hopefully someone can help me out here. I've gone over ldap at > php.net and multiple other sites but can't get it to work. Everytime I run > the query my results are "0 entries returned". > > My AD tree is: CN=Users,DC=domain,DC=us. I hav

[PHP] LDAP

2007-08-21 Thread Dan Shirah
Okay, hopefully someone can help me out here. I've gone over ldap at php.net and multiple other sites but can't get it to work. Everytime I run the query my results are "0 entries returned". My AD tree is: CN=Users,DC=domain,DC=us. I have the AD Server set so that anonymous access to retrieve in

[PHP] LDAP

2007-08-21 Thread Alain Roger
Hi, I have a stupid issue with ldap_connect. i've reinstalled PHP, postgreSQL and restore my data (web files) after reinstalling my PC. now, when i try : $ds = ldap_connect($ldaphost, $ldapport) or die("Could not connect to $ldaphost"); nothing works. i wrote before error_reporting(E_ALL); in or

Re: [PHP] ldap change password

2007-03-07 Thread Holger Blasum
Hi Fabio, On 03-07, Fabio Silva wrote: > Hi all, i would like to know if anybody has a script in php that > change the password of the users in ldap??? > That the user can do it by yourself http://logout.sh/computers/ldap/ looks like a starting point. In that example, however the connection f

[PHP] ldap change password

2007-03-07 Thread Fabio Silva
Hi all, i would like to know if anybody has a script in php that change the password of the users in ldap??? That the user can do it by yourself the user put your "username" "old pass" "new pass" "confirm new pass" Somebody can help me? Regards, -- Fabio S. Silva -- PHP General Mailing L

Re: [PHP] LDAP constants GSLC_SSL_...

2007-02-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-05 23:03:41 +0100: > On Monday 05 February 2007 17:12, Roman Neuhauser wrote: > > > actually i am workinh with the ldap functions of php5. > > > Reading the docs i found the constants > > > > > > GSLC_SSL_NO_AUTH > > > GSLC_SSL_ONEWAY_AUTH > > > GSLC_SSL_TWOWAY_A

Re: [PHP] LDAP constants GSLC_SSL_...

2007-02-05 Thread Petric Frank
Hello Roman, On Monday 05 February 2007 17:12, Roman Neuhauser wrote: > > actually i am workinh with the ldap functions of php5. > > Reading the docs i found the constants > > > > GSLC_SSL_NO_AUTH > > GSLC_SSL_ONEWAY_AUTH > > GSLC_SSL_TWOWAY_AUTH > > > > They are simply documented, but i can

Re: [PHP] LDAP constants GSLC_SSL_...

2007-02-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-04 13:26:39 +0100: > Hello, > > actually i am workinh with the ldap functions of php5. > Reading the docs i found the constants > > GSLC_SSL_NO_AUTH > GSLC_SSL_ONEWAY_AUTH > GSLC_SSL_TWOWAY_AUTH > > They are simply documented, but i can't find any docs about t

[PHP] LDAP constants GSLC_SSL_...

2007-02-04 Thread Petric Frank
Hello, actually i am workinh with the ldap functions of php5. Reading the docs i found the constants GSLC_SSL_NO_AUTH GSLC_SSL_ONEWAY_AUTH GSLC_SSL_TWOWAY_AUTH They are simply documented, but i can't find any docs about them. Neither at php.net not via google. So - what they are for and

[PHP] LDAP and character encoding

2006-12-14 Thread Andreas Dahlen
Hej! I'm running PHP 5.1.2 on Suse 10. The LDAP server is openldap 2.3.19 I've problem with swedish characters and DN. DN: cn=åäö,dc=example,dc=com $res = ldap_search($ds, 'dc=example,dc=com', '(objectClass=*)'); $dn = ldap_get_dn($ds,$res); ==> $dn is cn=\C3\85\C3\84\C3\96,dc=example,dc=com

RE: [PHP] LDAP & Active Directory Authentication

2006-12-05 Thread Jay Blanchard
[snip] I am going to need to build LDAP and AD modules for a project that I'm working on. Could any of you who have delt with PHP/LDAP/AD point me in the direction of some decent resources/papers/books? [/snip] http://www.php.net/ldap -- PHP General Mailing List (http://www.php.net

[PHP] LDAP & Active Directory Authentication

2006-12-04 Thread [EMAIL PROTECTED]
Hello list, I am going to need to build LDAP and AD modules for a project that I'm working on. Could any of you who have delt with PHP/LDAP/AD point me in the direction of some decent resources/papers/books? Thanks.

RE: [PHP] LDAP password question

2006-11-30 Thread Ray Hauge
SSL when using ldap_bind(). Thanks, -- Ray Hauge Application Development Lead American Student Loan Services www.americanstudentloan.com From: Alain Roger [mailto:[EMAIL PROTECTED] Sent: Thursday, November 30, 2006 6:15 AM To: Ray Hauge; PHP General List Su

Re: [PHP] LDAP password question

2006-11-30 Thread Alain Roger
Hi Ray, the question is for which reason you need to know something about the pwd ? to log on ? if yes, it's not needed. I personally did like that : 1. with login + pwd given by user, i try to bind. 2. if bind works, it means that user login+pwd are equal to AD login+pwd. 3. if error during bin

[PHP] LDAP password question

2006-11-29 Thread Ray Hauge
I'm working on integrating an application with an AD server, and I was wondering if the password is encrypted at all, or if I need to go through the troubles of setting up ldaps:// I checked the documentation, but I couldn't find any information about plain-text vs. encrypted. Thanks! -

Re: [PHP] LDAP: Write to boolean attribute

2006-11-29 Thread Jochem Maas
Carsten Gehling wrote: > Sorry for that - I couldn't see the previous post. > > I've tried true/false, but I think PHP might be converting this to > string values (eg. "" and "1") before sending to AD any reason to think this? have you tried passing the strings 'false', 'true' or 'FALSE', 'TRUE'?

Re: [PHP] LDAP: Write to boolean attribute

2006-11-28 Thread Carsten Gehling
Sorry for that - I couldn't see the previous post. I've tried true/false, but I think PHP might be converting this to string values (eg. "" and "1") before sending to AD - Carsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] LDAP: Write to boolean attribute

2006-11-28 Thread Chris
Carsten Gehling wrote: Hi, I am using PHP's LDAP to read and write information fron user-objects in Active Directory (Windows Server 2003). The AD has been extended with 2 attributes (call them "xx" and "yy") with the field type BOOLEAN How do i write to these fields? If I use ldap_mod_replac

[PHP] LDAP: Write to boolean attribute

2006-11-28 Thread Carsten Gehling
Hi, I am using PHP's LDAP to read and write information fron user-objects in Active Directory (Windows Server 2003). The AD has been extended with 2 attributes (call them "xx" and "yy") with the field type BOOLEAN How do i write to these fields? If I use ldap_mod_replace, and set the values fo

[PHP] LDAP: Write boolean attribute in Active Directory

2006-11-28 Thread Carsten Gehling
Hi, I am using PHP's LDAP to read and write information fron user-objects in Active Directory (Windows Server 2003). The AD has been extended with 2 attributes (call them "xx" and "yy") with the field type BOOLEAN How do i write to these fields? If I use ldap_mod_replace, and set the values fo

[PHP] LDAP: Write boolean attribute in Active Directory

2006-11-28 Thread Carsten Gehling
Hi, I am using PHP's LDAP to read and write information fron user-objects in Active Directory (Windows Server 2003). The AD has been extended with 2 attributes (call them "xx" and "yy") with the field type BOOLEAN How do i write to these fields? If I use ldap_mod_replace, and set the values fo

Re: [PHP] LDAP function to add objectClass

2006-07-31 Thread Sameer N Ingole
Roger Thomas wrote: I have an already working LDAP server. One of my user's ldif looks like: ... ... sn: Roger Thomas givenName: Roger Thomas objectClass: top objectClass: person objectClass: inetOrgPerson objectClass: organizationalPerson objectClass: qmailUser objectClass: hordePerson o: examp

[PHP] LDAP function to add objectClass

2006-07-31 Thread Roger Thomas
I have an already working LDAP server. One of my user's ldif looks like: ... ... sn: Roger Thomas givenName: Roger Thomas objectClass: top objectClass: person objectClass: inetOrgPerson objectClass: organizationalPerson objectClass: qmailUser objectClass: hordePerson o: example.com ou: people ...

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 Windo

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 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 ca

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-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

[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] LDAP Query

2006-05-18 Thread php
For anyone interested: after some furhter troubleshooting, I found the error. The password I was passing was incorrect. What I found interesting is that even though the password was incorrect, the bind function still worked. I'm thinking that it logged me in as anonymous at that stage. >Our

[PHP] LDAP Query

2006-05-18 Thread php
Our organization is migrating away from Novell E-directory to MS Active Directory. I have a php class that allows me to run various queries on our e-directory ldap server which I am working to convert to AD. However, I'm running into an error that i cannot figure out. I have updated the base_

Re: [PHP] LDAP Authentication

2006-05-13 Thread Sameer N Ingole
Sameer N Ingole wrote: Thomas Bonham wrote: Hello, I'm trying to do a ldap authentication page. I can get there username and I don't know how to get the password from ldap. It didn't show up in the the search for the command line. So how do I get the password of the users? Hope you are doing

Re: [PHP] LDAP Authentication

2006-05-13 Thread Sameer N Ingole
Thomas Bonham wrote: Hello, I'm trying to do a ldap authentication page. I can get there username and I don't know how to get the password from ldap. It didn't show up in the the search for the command line. So how do I get the password of the users? Hope you are doing this using PHP and your

Re: [PHP] LDAP Authentication

2006-05-12 Thread Rory Browne
you're approaching this wrong - google for LDAP Authentication php, and see how they do it On 5/13/06, Thomas Bonham <[EMAIL PROTECTED]> wrote: Hello, I'm trying to do a ldap authentication page. I can get there username and I don't know how to get the password from ldap. It didn't show up in

[PHP] LDAP Authentication

2006-05-12 Thread Thomas Bonham
Hello, I'm trying to do a ldap authentication page. I can get there username and I don't know how to get the password from ldap. It didn't show up in the the search for the command line. So how do I get the password of the users? Thomas -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] PHP/LDAP Setup Problem

2006-04-25 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 d

Re: [PHP] PHP/LDAP Setup Problem

2006-04-25 Thread Richard Lynch
I doing wrong? Thanks in advance. libldap.so is the LDAP library -- like, the WHOLE LDAP library, to which PHP has an interface, if you re-compile PHP. So you need to compile (or they need to compile) the PHP LDAP interface down in the ext directory of PHP (or maybe it's in PECL now). This w

[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. Whenev

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-13 Thread jblanchard
[snip] I've got a bit lost on this, but assuming that we are talking about an intranet enviornment, with windows/IE6 clients, and apache servers, then personally: I would check logins based on a valid session. If the user doesn't have a session they aren't logged in. Store the username in the ses

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-12 Thread Rick Emery
Quoting Rory Browne <[EMAIL PROTECTED]>: I've got a bit lost on this, but assuming that we are talking about an intranet enviornment, with windows/IE6 clients, and apache servers, then personally: I would check logins based on a valid session. If the user doesn't have a session they aren't logg

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rory Browne
I've got a bit lost on this, but assuming that we are talking about an intranet enviornment, with windows/IE6 clients, and apache servers, then personally: I would check logins based on a valid session. If the user doesn't have a session they aren't logged in. Store the username in the session var

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting Jochem Maas <[EMAIL PROTECTED]>: Rick Emery wrote: Okay, I'm following all of this. So I could take, say, the username reversed and encode it, then decode it in the PHP application, and be I wouldn't do it like that instead stick the username in the cookie in plaintext and

Re: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Jochem Maas
Rick Emery wrote: Quoting [EMAIL PROTECTED]: You could just store a username, since they have already authenticated, but a cookie with just a username would be easy to duplicate. My current thought is to hash a checksum of some sort and storing that in the cookie as well. That way you avoid the

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting [EMAIL PROTECTED]: You could just store a username, since they have already authenticated, but a cookie with just a username would be easy to duplicate. My current thought is to hash a checksum of some sort and storing that in the cookie as well. That way you avoid the username only prob

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread jblanchard
[snip] First, let me apologize for having to take it to a basic level. I'll admit that I'm fairly new to web development, but this is something I could *really* use at work and I want to make sure I understand (just to set the stage, we use Windows/Active Directory/MS SQL Server at work, bu

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting [EMAIL PROTECTED]: [snip] Couldn't I write my own cookie to fool the authentication into thinking I'm somebody else? [/snip] I suppose that you could do that if you were savvy enough to realize that automatic login to the intranet used a cookie for authentication and you knew how to for

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread jblanchard
[snip] > We are sitting here having a discussion on login techniques and I cam up > with a thought...why not have a login script write a cookie that then > coulod be read by PHP and compared against the AD via LDAP? Does anyone > see any gotcha's with that kind of process? Couldn't I write my own

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-10 Thread Rick Emery
Quoting [EMAIL PROTECTED]: [snip] As far as I can tell you will have to ask the user to login at the web application level again, but you can verify it against your AD via LDAP with the basic stuff from http://www.php.net/ldap [/snip] We are sitting here having a discussion on login techniques

Re: [PHP] LDAP and Single Sign On

2006-03-08 Thread Rory Browne
Kerberos - there is an apache module for it. On 3/7/06, Justin Cook <[EMAIL PROTECTED]> wrote: > > We are developing an intranet for my company. I would like to implement a > single sign on service. We have Active Directory on one server and the > intranet is being housed on a Redhat Linux server.

RE: [PHP] LDAP and Single Sign On MORE THOUGHTS

2006-03-07 Thread jblanchard
[snip] As far as I can tell you will have to ask the user to login at the web application level again, but you can verify it against your AD via LDAP with the basic stuff from http://www.php.net/ldap [/snip] We are sitting here having a discussion on login techniques and I cam up with a thought...

RE: [PHP] LDAP and Single Sign On

2006-03-07 Thread jblanchard
[snip] We are developing an intranet for my company. I would like to implement a single sign on service. We have Active Directory on one server and the intranet is being housed on a Redhat Linux server. When the internal user pulls up the intranet, I would like it to check to see if they successful

RE: [PHP] LDAP and Single Sign On

2006-03-07 Thread Justin Cook
D], php-general@lists.php.net Sent: Tue, 07 Mar 2006 12:06:42 -0600 Subject: RE: [PHP] LDAP and Single Sign On Maybe this will help: http://us2.php.net/manual/en/ref.ldap.php Shaunak Kashyap Senior Web Developer WPT Enterprises, Inc. 5700 Wilshire Blvd., Suite 350 Los Angeles, CA 90036 Direct: 32

RE: [PHP] LDAP and Single Sign On

2006-03-07 Thread Shaunak Kashyap
TECTED] > Sent: Tuesday, March 07, 2006 9:55 AM > To: php-general@lists.php.net > Subject: [PHP] LDAP and Single Sign On > > We are developing an intranet for my company. I would like to implement a > single sign on service. We have Active Directory on one server and the > in

[PHP] LDAP and Single Sign On

2006-03-07 Thread Justin Cook
We are developing an intranet for my company. I would like to implement a single sign on service. We have Active Directory on one server and the intranet is being housed on a Redhat Linux server. When the internal user pulls up the intranet, I would like it to check to see if they successfully j

Re: [PHP] LDAP - The Adventure Continues

2006-03-07 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to (8388608 / 1024) / 1024 = 8. allocate 94 bytes) in /srv/www/htdocs/test/ldapTest.php on line 47 47 -> $info = ldap_get_entries($ds, $sr); $sr=ldap_search($ds, "dc=foo,dc=local", "cn=*"); $ds is th

RE: [PHP] LDAP - The Adventure Continues SOLVED

2006-03-07 Thread jblanchard
[snip] Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 94 bytes) in /srv/www/htdocs/test/ldapTest.php on line 47 47 -> $info = ldap_get_entries($ds, $sr); $sr=ldap_search($ds, "dc=foo,dc=local", "cn=*"); $ds is the connection to the LDAP server Does anyone know wha

[PHP] LDAP - The Adventure Continues

2006-03-07 Thread jblanchard
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 94 bytes) in /srv/www/htdocs/test/ldapTest.php on line 47 47 -> $info = ldap_get_entries($ds, $sr); $sr=ldap_search($ds, "dc=foo,dc=local", "cn=*"); $ds is the connection to the LDAP server Does anyone know what this

RE: [PHP] LDAP confusion

2006-03-04 Thread jblanchard
[snip] > if(!$ds=ldap_connect("foo")){ > echo "did not connect"; > }else { > echo "connection successful"; > } > $un = "user"; > $upw = "pass"; > echo "connect result is " . $ds . ""; > ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); > ldap_set_option($ds, LDAP_OPT_REFERRALS, 0)

Re: [PHP] LDAP confusion

2006-03-03 Thread chris smith
On 3/4/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > [snip] I vaguely recall you couldn't do an anonymous bind to an active > directory system - you had to properly authenticate before you could do > a search. > > You didn't include the bind stuff so I can't tell if that's the problem > :) > [

RE: [PHP] LDAP confusion

2006-03-03 Thread jblanchard
[snip] I vaguely recall you couldn't do an anonymous bind to an active directory system - you had to properly authenticate before you could do a search. You didn't include the bind stuff so I can't tell if that's the problem :) [/snip] I thought that I was not doing an anonymous bind, until I c

Re: [PHP] LDAP confusion

2006-03-02 Thread Chris
ndows world when I accepted this position, and now it is just not true. We have all of our users authenticating through AD on a W2003Server, so I thought I'd use LDAP for web authentication as well. It doesn't work. For some cockamaimee reason there are problems using PHP/LDAP with W2003Ser

RE: [PHP] LDAP confusion

2006-03-02 Thread jblanchard
this position, and now it is just not true. We have all of our users authenticating through AD on a W2003Server, so I thought I'd use LDAP for web authentication as well. It doesn't work. For some cockamaimee reason there are problems using PHP/LDAP with W2003Server. To be sure, I found ple

RE: [PHP] LDAP confusion

2006-03-02 Thread jblanchard
[snip] I am trying to work through connecting to and using LDAP with PHP. Thus far I am able to connect and bind, but I cannot search. $sr=ldap_search($ds, "CN=configuration,DC=onecall,DC=local", "cn=*"); Gives me Warning: ldap_search(): Search: Operations error in /srv/www/htdocs/test/ldapTes

[PHP] LDAP confusion

2006-03-02 Thread jblanchard
I am trying to work through connecting to and using LDAP with PHP. Thus far I am able to connect and bind, but I cannot search. $sr=ldap_search($ds, "CN=configuration,DC=onecall,DC=local", "cn=*"); Gives me Warning: ldap_search(): Search: Operations error in /srv/www/htdocs/test/ldapTest.php o

Re: [PHP] PHP/LDAP Authentication

2006-02-19 Thread Delamatrix
006 8: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. C

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 curr

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

  1   2   3   >