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() What am I

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

[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] Re: php ldap

2005-08-26 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] Re: php ldap

2005-08-26 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

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 result says that the

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 bind

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

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

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

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

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

[PHP] LDAP problem

2005-08-24 Thread Björn Bartels
Hello there... I have a problem with LDAP and need your advice... 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

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 knowlege

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 occurs

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

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 LDAP

[PHP] LDAP, PHP and MS Active Directory

2005-08-17 Thread Mark Rees
Apologies if this turns out to be a cross-post. I sent it to the list @ evolt, but have seen no traffic on that list for two days now. --- Hello I am using PHP v5 to write an intranet. The site is hosted on a windows 2000 server running Apache. I want to

[PHP] LDAP and .htaccess

2005-04-27 Thread Bret Walker
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 user is denied access. If it

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

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

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

[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.php.net

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

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 then

[PHP] LDAP questions and hair pulling

2005-03-31 Thread John E. Vincent
Hi all, I've search google left and right. Search archive after archive for various tips using various search strings and I cannot for the life of me find an answer. Let me explain the situation. We have an LDAP directory that our users are stored in. It's not AD or Novell just plain OpenLDAP.

[PHP] LDAP paged results?

2005-01-27 Thread Meester Gurth
I'm querying a rather large result set from an LDAP server, and I appear to be bounded by some maximum result set size that is imposed by the server. I've got similar code written in perl that uses the ldap3 paged result sets control, but I see no mention of a similar implementation in the php

[PHP] ldap functionality

2005-01-25 Thread Bruce Douglas
hi... i'm in need of an app that has/should have directory/user/member functionality. i want to setup a process to allow an adim to create different fields and categories for a user to enter. think of a company employee database, where you have the employe name, and then the various

Re: [PHP] Re: get user attributes php/ldap/win2k active directory

2005-01-19 Thread Redmond Militante
Date: Fri, 14 Jan 2005 15:32:15 -0600 From: Redmond Militante [EMAIL PROTECTED] To: php-general@lists.php.net Subject: Re: [PHP] Re: get user attributes php/ldap/win2k active directory Reply-To: Redmond Militante [EMAIL PROTECTED] In-Reply-To: [EMAIL PROTECTED] User-Agent: Mutt/1.4.2.1i X-Sender

[PHP] LDAP and referrals

2004-12-12 Thread List User
Hello! Currently I'm playing with LDAP referrals in a PHP application and I've reached a point, where it's not clear if there's some kind of misunderstanding on my side, or if there's a problem either in the PHP functions or the OpenLDAP server here... The attached mini script tries to access

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 ?php # T E S T - V A R I A B L E S ## $server= localhost; $filter= (uid=*); $base = dc=example,dc=net; F U N C T I O N S

[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

[PHP] LDAP Group query examples?

2004-08-10 Thread Sam Evans
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? Thanks, Sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] LDAP Group query examples?

2004-08-09 Thread Sam Evans
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? Thanks, Sam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] LDAP and ranges...

2004-06-28 Thread Marvin Herbold
I hope this is the correct newsgroup to ask this! How do I get ldap_search to return a specified range of results? For example my server limits queries to 1000 results, so how do I get results 1000-2000? Thanks in advance, Marvin -- PHP General Mailing List (http://www.php.net/) To

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

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] LDAP and PHP

2003-11-11 Thread Dave Dash
I'm having trouble getting LDAP to work with PHP. ldap_connect results in: Fatal error: Call to undefined function: ldap_connect() in /home/davedash/public_html/ldap.php on line 3 and when I compiled I enabled --enable-ldap. Am I missing something else here? I've got openldap installed as

[PHP] Re: get user attributes php/ldap/win2k active directory

2003-10-24 Thread Redmond Militante
. It's very nice for finding OU's and such. Justin Patrin Redmond Militante wrote: hi all my first email to the list re: php/ldap/win2k AD garnered no responses. i've got most of the problem solved, however i can't get attributes from the ldap server. i have a login script

[PHP] get user attributes php/ldap/win2k active directory

2003-10-23 Thread Redmond Militante
hi all my first email to the list re: php/ldap/win2k AD garnered no responses. i've got most of the problem solved, however i can't get attributes from the ldap server. i have a login script that authenticates against our win2k active directory domain controller. i'm able to open

[PHP] Re: get user attributes php/ldap/win2k active directory

2003-10-23 Thread Justin Patrin
. It's very nice for finding OU's and such. Justin Patrin Redmond Militante wrote: hi all my first email to the list re: php/ldap/win2k AD garnered no responses. i've got most of the problem solved, however i can't get attributes from the ldap server. i have a login script that authenticates

[PHP] ldap authentication to win2k domain controller

2003-10-10 Thread Redmond Militante
hi all i've been given the task of writing an app with a login mechanism that authenticates against the active directory users list on a windows 2000 domain controller. i have an apache 1.3.28 webserver running on FreeBSD 4.8-RELEASE, with php4.3.1 nstalled i don't have openldap support

[PHP] ldap, unicodePwd and Active Directory

2003-07-31 Thread Jon Shoberg
LDAPS is running on our server. Any have code samples for modifying a user's unicodePwd attribute? A script I am working on appears to be getthing caught up in the password conversion ot unicode. thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Ldap bind: checking group membership

2003-06-25 Thread Jason End
I need my ldap bind to check whether a user is member of a group, but the user isn't exclusively from that group. So for example, I have the user jbrown and the ldap connection string: $r=ldap_bind($ds, uid=$uid, ou=people,dc=mycompany,dc=mydomain,dc=dom, $passw); That works fine. But I need to

[PHP] LDap Schema

2003-06-16 Thread Anoop Singhal
Hi, I have a ldap server and I want to list the entire schema. There are a couple of attributes in this schema which are not set for any of the entries. Consequently, when I get all the entries, these attributes are not returned and thus do not even know that they exist!. Is there a way to

[PHP] LDAP problems

2003-06-12 Thread Praveen Kumar
Dear Walker, After connecting to the LDAP using ldap_connect('localhost'); you should use ldap_bind like the code given below. ?php $conn = ldap_connect(localhost) or die(Could not connect to server. Error is . ldap_error($conn)); // bind to the LDAP server $r = ldap_bind($conn, $root_dn,

[PHP] LDAP resources

2003-06-11 Thread Caleb Walker
Are there any good resources out there that discuss the use of LDAP with PHP. It seems that because LDAP is not used as much as most database technologies the PHP site is not very good at explaining how to use the LDAP functions. My only other option was to go and buy an advanced PHP book.

[PHP] LDAP problems

2003-06-11 Thread Caleb Walker
Can anyone tell me what is wrong with this simple code? It errors with the ldap_get_values and says: supplied resource is not a valid ldap result entry resource I am very new at PHP LDAP so pardon my error... ? //include inc/connect.inc.php; $ds = ldap_connect(localhost); $base = ou=people,dc

[PHP] ldap + php

2003-06-10 Thread chandrakant Reddy
is the schema of my Active Directory or Ldap server. I am writting a web based admin tool for ldap server using PHP. If you have any good code samples of PHP + ldap , Pl send me. Thanks in advance :) regards CVR __ Do you Yahoo!? Yahoo

[PHP] ldap and printing of specific set out attributes

2003-03-18 Thread Jim Greene
Hello, I have a list of users in LDAP. I do a: $result=ldap_search($ldapconn,ou=Users,dc=domain,dc=com, g idNumber=100); to find the group of accounts I am looking for. Now what I want to do is take the uid from each entry and print it out. I have tried using ldap_get _entries but it

[PHP] ldap modify + add problem

2003-02-26 Thread Jim Greene
Hello, I seem to be having a problem with doing an ldap_add and a modify in the same script. I assumed if I did an unbind after my modify I should be fine but it seems to not work still. Below is the script. Thanks ?php // LDAP variables $ldaphost = ldap.server; // your ldap servers

[PHP] LDAP charset problem

2003-02-21 Thread rage_against
Hello, I 've a problem with the LDAP charset, the special chars of an LDAP entry aren't displayed right. I tried to convert it with the function string ldap_t61_to_8859 ( string value) but this function istn't avaliable. I have PHP 4.2.2 installed, and it should be avaliable since 4.0.2. Of

[PHP] LDAP error error

2003-02-21 Thread Todd Rosenberry
I am getting bizarre results from ldap_errno and ldap_error. I am using PHP 4.0.4pl1, iPlanet web server 4.1SP7 and iPlanet LDAP server 4.16. As a test I am trying to add an entry to LDAP that already exists. The link and bind to LDAP work properly and the LDAP log show the correct

[PHP] LDAP next prev howto

2003-02-20 Thread Roger Thomas
is it possible to retrieve a bunch of records from an ldap tree and do a next-prev navigation on those records ? example script pls. -- roger __ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ -- PHP

[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] LDAP next prev howto

2003-02-18 Thread Roger Thomas
is it possible to retrieve a bunch of records from an ldap tree and do a next-prev navigation on those records ? example script pls. -- __ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com -- PHP General

[PHP] LDAP authentication to NDS

2003-02-17 Thread Brad Harriger
Is there any way to find out what privileges a user has to an NDS object throught LDAP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Solaris 8 Bus Error from PHP ldap functions

2003-01-22 Thread Piotr Rybok
Hello, I recieve this error from every PHP ldap function on Solaris 8 : Apache error_log: ... child pid 666 exit signal Bus Error (10) ... My box:: SunOS 5.8 Sun-Fire15K Apache 1.3.27 + mod_ssl 2.8.12 PHP 4.2.3 ( 4.3.0 crashes too) OpenLDAP 2.1.12 ( i've checked every release since 2.1.5

[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] LDAP support...

2002-12-23 Thread Peter Lavender
Hi everyone Quick question: 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. I can see from phpinfo() that ldap has been compiled in: '--with-ldap=shared,/usr' My problem is the following

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

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

[PHP] LDAP, check if exists before enter

2002-12-17 Thread Greg
Hi- Does anyone have any PHP code to check if a uid exists in a LDAP directory before it is entered? I can't quite get ldap_search to work. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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

[PHP] LDAP specific?

2002-11-14 Thread Tony Earnshaw
People, I'm trying to produce a book of mugs (a 'mug' is a 'face') for people at work to be able to manage and change, as far as they are allowed to, their own personal details in the org's directory database. It's based on PHP 4.2.3/Apache and Openldap 2.1.8 and above and/or Novell eDirectory

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 html';, print 'body'; etc,

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 code

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.e. 'print

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 people

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 img src=showperson.php?name=$fullname. Then in showperson i send the correct image headers and the image is displayed properly.

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

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 on the page

[PHP] ldap strong authentication

2002-11-12 Thread Karim Jafarmadar
hello I want to connect to a local NDS via LDAP, but when i try to bind i get the error: Unable to bind: Strong authentication required after i search in google and php.net manual i wonder if it is possible do connect with strong authentication any further suggenstions would be great tia

Re: [PHP] ldap strong authentication

2002-11-12 Thread BigDog
What type of strong authentication does it want? Do you need to connect via ssh or something... On Tue, 2002-11-12 at 22:13, Karim Jafarmadar wrote: hello I want to connect to a local NDS via LDAP, but when i try to bind i get the error: Unable to bind: Strong authentication required

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

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

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 ldap://?

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

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

[PHP] LDAP + Exchange

2002-11-08 Thread Raceeend
Hello, Has anybody tried to connect to Exchange via LDAP? Because i would like some examples of this. kind regards, Martijn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] LDAP + Exchange

2002-11-08 Thread .: B i g D o g :.
Yes, what are you looking for... On Fri, 2002-11-08 at 19:58, Raceeend wrote: Hello, Has anybody tried to connect to Exchange via LDAP? Because i would like some examples of this. kind regards, Martijn -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] LDAP + Exchange

2002-11-08 Thread Raceeend
Well i need to give some users access to user attributes of exchange to change these. .: B I G D O G :. wrote: Yes, what are you looking for... On Fri, 2002-11-08 at 19:58, Raceeend wrote: Hello, Has anybody tried to connect to Exchange via LDAP? Because i would like some examples of

Re: [PHP] LDAP + Exchange

2002-11-08 Thread .: B i g D o g :.
I followed the instructions for ldap used the windows nt username and password to bind to the exchange ldap server. Then you can allow them to change their attributes...i have never done this, there are some serious risks to exchange if you do this... On Fri, 2002-11-08 at 20:39, Raceeend

Re: [PHP] LDAP + Exchange

2002-11-08 Thread Marco Tabini
i have never done this, there are some serious risks to exchange if you do this... Yea, it's dangerous to let Microsoft software come into contact with something that actually works... :-) Sorry, had to come up with my stupid joke of the day. ---BeginMessage--- I followed the instructions for

Re: [PHP] LDAP + Exchange

2002-11-08 Thread .: B i g D o g :.
] Subject: Re: [PHP] LDAP + Exchange Date: 08 Nov 2002 13:41:33 + I followed the instructions for ldap used the windows nt username and password to bind to the exchange ldap server. Then you can allow them to change their attributes...i have never done this, there are some serious risks

Re: [PHP] LDAP + Exchange

2002-11-08 Thread Raceeend
Well i need to give some users access to the user attributes of exchange to change them. .: B I G D O G :. wrote: Yes, what are you looking for... On Fri, 2002-11-08 at 19:58, Raceeend wrote: Hello, Has anybody tried to connect to Exchange via LDAP? Because i would like some examples of

Re: [PHP] LDAP + Exchange

2002-11-08 Thread Raceeend
dangerous to let Microsoft software come into contact with something that actually works... :-) Sorry, had to come up with my stupid joke of the day. Subject: Re: [PHP] LDAP + Exchange From: .: B i g D o g :. [EMAIL PROTECTED

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

<    1   2   3   >