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've found various sources and are suc

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

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

Re: [PHP] LDAP in php

2008-04-04 Thread Nathan Nobbe
On Thu, Apr 3, 2008 at 4:10 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Nathan Nobbe schrieb: > > 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

Re: [PHP] LDAP in php

2008-04-03 Thread [EMAIL PROTECTED]
Nathan Nobbe schrieb: > 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 into SQL can't be so much overhead; the

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

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

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

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

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

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/) To unsubscri

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

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

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

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

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

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
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: 323.330.9870 Main: 323.330.9900 www.worldpokertour.com Confidentiality Notice: This e-mail transmission (

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

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
[EMAIL PROTECTED] wrote: [snip] Aha! It may not be me. The LDAP server is Win2003 and has some known problems when searching LDAP. I haven't located a solution, but if you are privy to one or two or ten could you let me know? [/snip] Well, I thought that I had escaped the hell of a Windows world

RE: [PHP] LDAP confusion

2006-03-02 Thread jblanchard
[snip] Aha! It may not be me. The LDAP server is Win2003 and has some known problems when searching LDAP. I haven't located a solution, but if you are privy to one or two or ten could you let me know? [/snip] Well, I thought that I had escaped the hell of a Windows world when I accepted this posit

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

Re: [PHP] LDAP and a pain in my neck

2005-10-21 Thread Jochem Maas
André Medeiros wrote: Check your webserver logs. If PHP couldn't use the extension, it will accuse that in the logs. probably the best use of the word 'accuse' ever (with a slight nod to commercials for Carlsberg lager :-) On 10/20/05, Jay Blanchard <[EMAIL PROTECTED]> wrote: [snip]

Re: [PHP] LDAP and a pain in my neck

2005-10-20 Thread André Medeiros
Check your webserver logs. If PHP couldn't use the extension, it will accuse that in the logs. On 10/20/05, Jay Blanchard <[EMAIL PROTECTED]> wrote: > [snip] > > Call to undefined function: ldap_connect() > > > > What am I missing? TIA. > > > Did you uncomment (and properly define) the 'extension_

RE: [PHP] LDAP and a pain in my neck

2005-10-20 Thread Jay Blanchard
[snip] > Call to undefined function: ldap_connect() > > What am I missing? TIA. Did you uncomment (and properly define) the 'extension_dir' directive in your php.ini? [/snip] Yep. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] LDAP and a pain in my neck

2005-10-20 Thread Greg Donald
On 10/20/05, Jay Blanchard <[EMAIL PROTECTED]> wrote: > Farking windoblows environment! > > The extension is uncommented, I have OpenLDAP for W2k installed and running, > the dll's have been copied to the proper place and I execute a test and get > > Call to undefined function: ldap_connect() > > W

Re: [PHP] Re: php ldap

2005-08-26 Thread Santosh Jambhlikar
thanks bartels, ldap_bind is working find i just used uid instead of cn. :) Björn Bartels wrote: that looks good, i think you should better use "uid" instead of "cn"... btw, i mentioned some authentication-problem earlier in this list. take a look at the php-manual @ ldap_bind() for a worka

Re: [PHP] Re: php ldap

2005-08-26 Thread Björn Bartels
that looks good, i think you should better use "uid" instead of "cn"... btw, i mentioned some authentication-problem earlier in this list. take a look at the php-manual  @  ldap_bind()  for a workaround if the same thing is happening to you (testscript works fine, loginscript does not !?!)... You'l

[Fwd: Re: [PHP] Re: php ldap] soory...

2005-08-26 Thread Björn Bartels
>this program is giving me "*Invalid DN syntax* " error. what's wrong? >cn >for the the user is "user" the DN should look like this uid={username},..., dc={yourdomain}, dc={TLD} ask your admin for further options... cheers Björn Bartels -Development/IT-Services- --

[Fwd: Re: [PHP] Re: php ldap]

2005-08-26 Thread Björn Bartels
>this program is giving me "*Invalid DN syntax* " error. what's wrong? >cn >for the the user is "user" the DN should look like this cn={username},..., dc={yourdomain}, dc={TLD} ask your admin for further options... cheers Björn Bartels -Development/IT-Services- --

Re: [PHP] Re: php ldap

2005-08-26 Thread Santosh Jambhlikar
$ldaprdn = 'user'; $ldappass = 'userpass'; $ldapconn = ldap_connect("ldap.mydomain.com") or die("Could not connect to LDAP server."); if ($ldapconn) { $ldapbind = ldap_bind($ldapconn,$ldaprdn, $ldappass); if ($ldapbind) { echo "LDAP bind successful..."; } else { echo "LDAP

Re: [PHP] Re: php ldap

2005-08-26 Thread Mark Rees
"Santosh Jambhlikar" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > then can i output the SMD5 of my password in php. > > > Jeff Loiselle wrote: > > > Santosh Jambhlikar wrote: > > > >> Hi , > >> > >> I have a ldap server the user password are stored in that. my php > >> ldasearch r

Re: [PHP] Re: php ldap

2005-08-25 Thread Santosh Jambhlikar
then can i output the SMD5 of my password in php. Jeff Loiselle wrote: Santosh Jambhlikar wrote: 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

[PHP] Re: php ldap

2005-08-25 Thread Jeff Loiselle
Santosh Jambhlikar wrote: 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)

Re: [PHP] LDAP problem

2005-08-25 Thread Richard Lynch
On Wed, August 24, 2005 12:47 pm, Björn Bartels wrote: >        $binddn  > 'uid='.$username.',ou=users,ou=OxObjects,dc=dbusiness,dc=de'; Either you're missing an = sign here, or my eyesight is getting worse than I thought... :-) -- Like Music? http://l-i-e.com/artists.htm -- PHP Gen

Re: [PHP] LDAP problem

2005-08-24 Thread Björn Bartels
Hello Mark, first of all, thank you (all) a lot for your contributions... >Are you sure you are connecting? As in, do you only try to bind if you >have >a successful connection? (...) I try to bind only when the connection itself is established...   >Have you checked ldap_error? "Can't contact LD

Re: [PHP] LDAP problem

2005-08-24 Thread Mark Rees
>How long does it take to fail? >I get the answer immidiatly (0-1sec.)... Are you sure you are connecting? As in, do you only try to bind if you have a successful connection? Have you checked ldap_error? Are you doing an anonymous bind, or using a username and password? Try each and see what hap

Re: [PHP] LDAP problem

2005-08-24 Thread Richard Lynch
On Tue, August 23, 2005 11:59 pm, Björn Bartels wrote: > I built a test script with help from the manual which authenticates a > user and does a simple test query (cn=*). > the test script works fine, no matter what protocol version it uses, > on > any (internal) client computer. > The problem occ

Re: [PHP] LDAP problem

2005-08-24 Thread Björn Bartels
Hello, Richard... >How long does it take to fail? I get the answer immidiatly (0-1sec.)... >Is there some sort of permission system in LDAP which allows one to >connect, but not to "bind"? Only clients from "192.168.*" are allowed to bind, i guess... >These are just guesses from a VERY limited k

Re: [PHP] LDAP and .htaccess

2005-04-27 Thread Richard Lynch
On Wed, April 27, 2005 12:08 pm, Bret Walker said: > Well, the download.php script would allow me to protect certian files, > but is there a way to protect all files? For example, images that I > would like to include in my php pages. As noted, you could put your images outside the webtree and th

Re: [PHP] LDAP and .htaccess

2005-04-27 Thread Kenny Austin
Bret Walker wrote: > Well, the download.php script would allow me to protect certian files, > but is there a way to protect all files? For example, images that I > would like to include in my php pages. you can serve images through through download.php.. but that's just a bad idea :) > Could I s

[Fwd: Re: [PHP] LDAP and .htaccess]

2005-04-27 Thread Bret Walker
Re: John Hinton Perhaps my S/MIME cert. was preventing the text from coming through. This message is unsigned. Bret Original Message Subject: Re: [PHP] LDAP and .htaccess Date: Wed, 27 Apr 2005 14:08:14 -0500 From: Bret Walker <[EMAIL PROTECTED]> To: php-general@lists.p

Re: [PHP] LDAP and .htaccess

2005-04-27 Thread John Hinton
Bret Walker wrote: I'm not too sure, but it seems to be having an effect you any text showing up in your emails. John Hinton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] LDAP and .htaccess

2005-04-27 Thread Bret Walker
Well, the download.php script would allow me to protect certian files, but is there a way to protect all files? For example, images that I would like to include in my php pages. Could I silently pass a username and password to htaccess? Can htaccess be set to use a php script instead of a htpass

Re: [PHP] LDAP and .htaccess

2005-04-27 Thread Kenny Austin
Bret Walker wrote: > Hello all- > > I am looking for a way to protect a directory's contents by > authenticating against Active Directory via LDAP. I currently have a > nice little php script that tries to bind to LDAP via a username and > password entered in a form. If it fails to bind, the use

Re: [PHP] LDAP and referrals

2004-12-12 Thread List User
Whoops. For some reason I've attached the wrong file. Here's the correct one. Cajus #!/usr/bin/php4 -q ldap://[^/]+)/.*$!', '\\1', $referral); if (!($ds= ldap_connect($server))){ echo "reconnect failed - "; return ($ldap); } ldap_set_option(

Re: [PHP] LDAP Group query examples?

2004-08-10 Thread Justin Patrin
On Tue, 10 Aug 2004 11:26:07 -0600 (MDT), Sam Evans <[EMAIL PROTECTED]> wrote: > > Hello.. > > I am wondering if someone could point me in the general direction of > some examples which show how to query an LDAP group for user > membership? Use Softerra LDAP browser to look at the groups and fig

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

2003-12-22 Thread Phil Dowson
Ben, I was trying the same thing, but I am not sure you are using the same setup as me. My office runs a windows 2000 domain with a Exchange server 2000 box. All profile information is stored in the windows 2000 domain controller, and the exchange server accesses the information from there. So

Re: [PHP] LDAP support...

2002-12-23 Thread michael kimsal
Peter Lavender wrote: OK this is lame, but I'm posting a reply straight after the message hits my box... I'm running debian and have apt-get php and openldap. openldap works, as does php. I'm now working with the ldap functions and here is where I'm stuck. apt-cache search php4 what turn

Re: [PHP] LDAP support...

2002-12-23 Thread Peter Lavender
OK this is lame, but I'm posting a reply straight after the message hits my box... > I'm running debian and have apt-get php and openldap. openldap works, > as does php. I'm now working with the ldap functions and here is where > I'm stuck. apt-cache search php4 what turns up? php4-ldap I'v

Re: [PHP] LDAP specific?

2002-11-14 Thread Tony Earnshaw
tor, 2002-11-14 kl. 11:50 skrev Krzysztof Dziekiewicz: < > You can not put any html code with image code. > If you send some html you mean to send > header("Content-Type: text/html") > with > header("Content-type: image/jpeg") > Where do you want go to ? > > You can do so: > There is

Re: [PHP] LDAP specific?

2002-11-14 Thread Tony Earnshaw
tor, 2002-11-14 kl. 11:14 skrev Chris Hewitt: > The headers must be the first thing that is sent to the browser. Do all > your other html afterwards, or use output buffering. Please nobody else bother, it's my own stupid fault for not knowing enough. I'm halfway there, output buffering will pro

Re: [PHP] LDAP specific?

2002-11-14 Thread BigDog
This is how I do it. I create a php page that gets the image and sends the correct header. Then in my other php page that displays the details about a user i call . Then in showperson i send the correct image headers and the image is displayed properly. HTH... On Thu, 2002-11-14 at 10:50, Krzys

Re: [PHP] LDAP specific?

2002-11-14 Thread BigDog
Why can u not do a page that displays the images as img src? That should work for ya...instead of sending the headers. Are u saving the image in the ldap server? On Thu, 2002-11-14 at 09:27, Tony Earnshaw wrote: > People, > > I'm trying to produce a "book of mugs" (a 'mug' is a 'face') for pe

Re: [PHP] LDAP specific?

2002-11-14 Thread Tony Earnshaw
tor, 2002-11-14 kl. 11:14 skrev Chris Hewitt: > >frame. To do this, PHP needs to be fed 'header("Content-type: > >image/jpeg")'. This can be put more or less anywhere in the very short > >script used for showing the jpeg and works. However, if I try to put any > >more html code into the script, i.

Re: [PHP] LDAP specific?

2002-11-14 Thread Krzysztof Dziekiewicz
> I can show a jpeg using a href with a target, either in a new page or a > frame. To do this, PHP needs to be fed 'header("Content-type: > image/jpeg")'. This can be put more or less anywhere in the very short > script used for showing the jpeg and works. However, if I try to put any > more html c

Re: [PHP] LDAP specific?

2002-11-14 Thread Chris Hewitt
Tony Earnshaw wrote: frame. To do this, PHP needs to be fed 'header("Content-type: image/jpeg")'. This can be put more or less anywhere in the very short script used for showing the jpeg and works. However, if I try to put any more html code into the script, i.e. 'print ';, print ''; etc, *anywhe

Re: [PHP] ldap strong authentication

2002-11-12 Thread BigDog
Check the documentation on the openldap and see what you need to use for the rdn.. if you are running gnome you might want to test it out with gq. That is what i use to test out my connection and stuff with... On Wed, 2002-11-13 at 00:44, Karim Jafarmadar wrote: > On 12 Nov 2002 17:33:35 +

Re: [PHP] ldap strong authentication

2002-11-12 Thread Karim Jafarmadar
On 12 Nov 2002 17:33:35 + BigDog <[EMAIL PROTECTED]> wrote: > You have two problems it seems. > > 1. Wrong connection security...now you are using ldaps > 2. Now you have the incorrect rdn. Oh .. i get it you mean the second error is due to a ldap/nds problem but i got the connection right

Re: [PHP] ldap strong authentication

2002-11-12 Thread BigDog
You have two problems it seems. 1. Wrong connection security...now you are using ldaps 2. Now you have the incorrect rdn. when you tried it with ldap you could not even pass the rdn because the encryption was not sufficient. Now you have the encryption down and now it seems that the rdn is wrong

Re: [PHP] ldap strong authentication

2002-11-12 Thread Karim Jafarmadar
On 12 Nov 2002 17:24:38 + Ray Hunter <[EMAIL PROTECTED]> wrote: > So you are connecting via ldaps://host in the ldap_connect function > right? > > then when you bind make sure you are using the appropriate rdn for that > ldap server. do i have to use another rdn, than when connecting via lda

Re: [PHP] ldap strong authentication

2002-11-12 Thread Ray Hunter
So you are connecting via ldaps://host in the ldap_connect function right? then when you bind make sure you are using the appropriate rdn for that ldap server. That is probably why u are getting a "No such Object" error. On Wed, 2002-11-13 at 00:19, Karim Jafarmadar wrote: > thanks for your r

Re: [PHP] ldap strong authentication

2002-11-12 Thread Karim Jafarmadar
thanks for your reply the whole error message is Warning: LDAP: Unable to bind to server: Strong authentication required and when i connect via SSH its something like that Warning: LDAP: Unable to bind to server: No such Object in ... i am running this thing on a debian box with php4 and openl

  1   2   >