Hi, using php_ldapadd, I get this error in ldap.log:
Oct 30 09:23:43 Lunar slapd[10714]: conn=202 op=1 RESULT tag=105 err=65
text=object class 'posixAccount' requires attribute 'uidNumber'
How do I get the next available uid number from my ldap database and then
use that number for uidnumber?
Hi all,
I am new here and I would be really happy if someone could have a look =
on the following question:
I have a question concerning a connection with a LDAP server via SSL.
What I=B4ve found is:
To use ldap_connect to connect via SSL to your LDAP server, you must use
the following:
Greetings:
We've got a Netware 6.0 server setup, and this is our network's primary means of
authentication of users, and I would like to use NDS (eDirectory) to authenticate
various web pages of ours that are written in PHP. I know that NDS interfaces with
LDAP, and was wondering if I could
On Wed, Sep 04, 2002 at 03:58:18PM -0400, Brad Harriger wrote:
I'm trying to retrieve information from an NDS server using LDAP
functions in PHP 4.06. I am able to establish the connection and bind
to the server using an anonymous bind, but when I try to bind as a valid
user, the app
I'm trying to retrieve information from an NDS server using LDAP
functions in PHP 4.06. I am able to establish the connection and bind
to the server using an anonymous bind, but when I try to bind as a valid
user, the app seems to run in an infinite loop. I'm not sure where to
look for the
I am attempting to compile PHP with LDAP (again). Our current production
server has LDAP enabled, and works fine. However, I needed to recompile PHP
to add additional functionality. Now I can't seem to get things to work.
PHP 4.0.6
Netscape LDAP SDK 4.0
Solaris 2.8
The compile process goes
Hi All,
Just wondering if some can explain this to me.
Lets assume I ahve retrieved a person entry from an LDAP server. It
contains uid, and cn with 2 values.
I would expect the object when assign to $entry to look like.
$entry['uid'][0] = Jsmith
$entry['cn'][0] = john smith
$entry['cn'][1]
I'm just experimenting with LDAP...
[ Windows 2000 Server/IIS/php 4.2.1]
I've uncommented the php_ldap.dll in my .ini... when I execute the following simple
piece of code it gives me:
Fatal error: Call to undefined function: ldap_connect() in E:\wwwshell\test\index.php
on line 5
?
function
already knows about some working ASP (VB) code, that would also be
very much appreciated. Anyway, it would be important to at least be able to
authenticate users agains AD with php, what probably means that I still have to set-up
a PHP/LDAP over a SSL connection to AD. If anyone knows how to get
I am having problems with Apache occasionally giving me a
segmentation fault when making ldap calls from php.
I am currently using openldap-2.0.23, Apache 1.3.22 and
PHP 4.2.1.
My php program is being used to authenticate a user against
several Microsoft Active Directory Servers. It works
Two related questions:
1) Is there any work being done to support the retrieval of the LDAP
schema in PHP (similar to Perl's Net::LDAP::Schema)? Is there any other
good way to get this information into PHP?
2) Is there any way to change the search scope of an LDAP search in
PHP? Specifically,
On Thu, May 16, 2002 at 09:34:16AM -0500, D Canfield wrote:
Two related questions:
1) Is there any work being done to support the retrieval of the LDAP
schema in PHP (similar to Perl's Net::LDAP::Schema)? Is there any other
good way to get this information into PHP?
2) Is there any way
Is it possible to modify the password attribute in LDAP? I am the netscape
directory server for authentication, but would like to allow the user to
change their own password. When I search for a user and get the attibutes
for that user password is not available. Am I missing something here?
]
Subject: [PHP] LDAP
Is it possible to modify the password attribute in LDAP? I am
the netscape
directory server for authentication, but would like to allow the user to
change their own password. When I search for a user and get the
attibutes
for that user password is not available. Am I
Hi All,
I have searched all over the web for an answer to this, but I can't seem to find one :(
I have a custom Apache installation with mod_ssl, mod_perl mod_php and
Chili!Soft's mod_casp.
When I originally compiled this, I didn't need LDAP support from php, so it wasn't
compiled into it.
I have an OS X box that has been running PHP 4.1.2 and OpenLDAP 2.0.23
without any problems. I can bind to the LDAP database from PHP and
everyone is happy.
I wanted to build a new box with Cyrus-IMAP, Cyrus-SASL and OpenLDAP,
moving my mail and authentication to it and leave the first box to
Hi all
Has anyone been successful in authenticating ldap via win2k using
samaccountname (username) instead of the users container name.
I can successfully do it against the cn but this is not always the same as
the username.
All help/guidelines will be gratefully received.
matt
--
PHP
Hi, i've search through the mail archive and couldn't find a solution for
this. Any ideas?
I'm installing Apache_1.3.23+php-4.1.2+OpenLDAP-2.0.23 in a NetBSD 1.5.1.
Apache alone worked fine, so did apache+php. When i added LDAP: i had no
compilation pronblems, but i can't start apache:
Hey
I'm testing LDAP and I seem to have an error
Call undefined function ldap_connect()
the code is from php.net
Can anybody tell me what I'm doing wrong :-)
You don't seem to have LDAP support compiled into PHP. Try running
?php
phpinfo();
?
and make sure that you have ldap support.
/bsh/
Sven Jacobs wrote:
Hey
I'm testing LDAP and I seem to have an error
Call undefined function ldap_connect()
the code is from php.net
Can
The frustrating part is, I had this working on OS X 10.0.4. I am now
running 10.1.2 Server.
I successfully build OpenLDAP and it is working fine.
I successfully built a version of PHP 4.0.6 for OS 10.1 with the
instructions found at
http://developer.apple.com/internet/macosx/php.html. It
I'm having a great deal of trouble with the new ldap_rename function...
it won't seem to work for me at all!
I am running on the following:
Solaris 8 on Ultra1e (dev server, 256M ram)
OpenLDAP 2.0.18
PHP 4.1.0
I can set the LDAP version no problem (from 2 to 3 to have this
function), but every
On Tue, Dec 04, 2001 at 07:41:14AM +0800, Hafiz Malik wrote:
hi there..
i'm succesfully add ldap entry(jpegphoto) using PHP via below codes..
but failed to modify it.. any ideas?
Not really. Could you check what ldap_modify() returns, did you get
any warnings from PHP? Turn on more debugging
hi there..
i'm succesfully add ldap entry(jpegphoto) using PHP via below codes..
but failed to modify it.. any ideas?
ADD LDAP ENTRY VIA PHP
$userfile = addpicture.jpg;
$fd = fopen ($userfile, r);
$fsize = filesize ($userfile);
$jpegStr = fread ($fd, $fsize);
fclose ($fd);
$ds =
The LDAP sorting code I posted a couple of days ago was a bit lacking.
Here's a function that should work:
function myldap_sort($data, $attr) {
// -1 because of the count entry
echo #, $n = count($data) - 1;
for ($i=0; $i$n; $i++) {
$a[$i]=$data[$i][$attr][0];
}
Hi
On Tue, Nov 27, 2001 at 04:08:39PM +0200, Christos Sintoris wrote:
Does anybody know how to call ldap_set_option in order to use server side
sorting?
using:
$sortval={'cn', 0,1};
$ctrl1 = array(oid = 1.2.840.113556.1.4.473, value =$sortval);
ldap_set_option($ds,
On Wed, Nov 28, 2001 at 03:08:52PM +0930, [EMAIL PROTECTED] wrote:
Hi All-
Can anyone tell me if PHP's LDAP functions support server side sorting of
search results as defined in this RFC:
http://www.ietf.org/rfc/rfc2891.txt
Not currently, maybe it will... Depends on how many wants it.
:[EMAIL PROTECTED]]
Sent: Wednesday, November 28, 2001 10:31 AM
To: Christos Sintoris
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] LDAP server side sorting
Hi
On Tue, Nov 27, 2001 at 04:08:39PM +0200, Christos Sintoris wrote:
Does anybody know how to call ldap_set_option in order to use server
side
Hi All,
Is there anyplace I can get a win32 PHP binary with LDAP enabled? If not,
can I create one myself?
Any info would be greatly appreciated.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
On Wed, Nov 28, 2001 at 05:26:22PM +0200, Christos Sintoris wrote:
Server side sorting is useful when network traffic costs more than
processing time.
Yes, there are some exceptions.
The server side sorting control in conjunction with the virtual list
view control returns only a subset
Does anybody know how to call ldap_set_option in order to use server side
sorting?
using:
$sortval={'cn', 0,1};
$ctrl1 = array(oid = 1.2.840.113556.1.4.473, value =$sortval);
ldap_set_option($ds, LDAP_OPT_SERVER_CONTROLS, array($ctrl1));
reports success, but ldap_get_option() returns nothing
Hi All-
Can anyone tell me if PHP's LDAP functions support server side sorting of
search results as defined in this RFC:
http://www.ietf.org/rfc/rfc2891.txt
Sorting results from LDAP searches in PHP is a pain because of the
structure
of the result array.
Alternatively if anyone has a nice
Version php 4.0.6 Win32
I get :
Unable to load './extensions/php_ldap.dll'.
Witch dlls must be copied in /winnt/system32 (dlls are all in /php/dlls
?).
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
I sended this E-mail to two PHP mailing lists yesterday. Both this one and the
installation mailing list. Doesnt
seem that anyone can solve this problem for me but i dont believe that.
Can someone PLEASE help me!
I get the following error message:
gcc -I.
for slapd.
//Johan
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: den 16 augusti 2001 08:10
To: Johan Vikerskog (ECS)
Cc: '[EMAIL PROTECTED]'
Subject: Re: [PHP] Ldap package.
Install OpenLDAP (www.openldap.org)
On Thu, 16 Aug 2001, Johan Vikerskog (ECS) wrote
Johan Vikerskog (ECS) wrote:
Another problem.
when i try to run the configure for ldap i get the following error message:
checking configure arguments... configure: error: bad value yes for
--with-ldbm_module
What is the appropriate configure settings for the ldbm? If i try ti
I get the following error message:
gcc -I. -I/export/scratch/apps3/php-4.0.6/ext/mysql/libmysql
-I/export/scratch/apps3/php-4.0.6/main -I/export/scratch/apps3/php-4.0.6
-I/export/scratch/apps3/apache_1.3.20/src/include
-I/export/scratch/apps3/apache_1.3.20/src/os/unix
I am going to install a LDAP package for my apache-mysql-php web interface.
The question is.
What ldap package to use and how to do it.
Is there anything else i should de except for:
--with-ldap=ldap directory
Thanks for any help i can get.
//Johan
--
PHP General Mailing List
Install OpenLDAP (www.openldap.org)
On Thu, 16 Aug 2001, Johan Vikerskog (ECS) wrote:
I am going to install a LDAP package for my apache-mysql-php web interface.
The question is.
What ldap package to use and how to do it.
Is there anything else i should de except for:
--with-ldap=ldap
When i try to activate ldap on a UNIX system something goes wrong but i dont even know
were to begin looking.
i use the --with-ldap when i compile but it doesnt give me any errors and yet it
doesnt work.
Any suggestions?
On my PC it worked great.
//Johan
--
PHP General Mailing List
People!
I am getting nuts here about this thing i am working on right now.
I am trying to get make a ldap php script that get information about a user.
I can connect to the ldap server and get response on how many entries that was found.
But how do i print out something of use.
I mean. How do
Use ldap_get_entries. See here:
http://www.php.net/manual/en/function.ldap-get-entries.php
Check the bottom of your code, I put something in there.
On Tuesday 17 July 2001 07:27 am, Johan Vikerskog (ECS) wrote:
People!
echo h3LDAP query test/h3;
echo Connecting ...;
Previously, Johan Vikerskog (ECS) said:
How do i list the email for that entry? Ill get one answer from this, now
i want to print out the email adress for that entry.
How do i do that?
$sr=ldap_search($ds, $dn, $filter, $justthese);
$info = ldap_get_entries($ds, $sr);
print
Hello, my friends
I tried to register binary data in a Directory using LDAP Functions of php
4.04. Thsese data are UTF8 encoded strings in our local language.
These tries were not successful and php did not register data in Directory.
I would want to know if php LDAP functions support binary
Hello, Derek
[snip]
However I decided to include another objectclass (uidObject) and now it
returns with:
error - Object class violation
error number - 65
[snip]
$ds=ldap_connect(localhost);
if ($ds) {
$r=ldap_bind($ds, cn=admin,dc=domain,dc=com,mypassword);
$rdn =
I'm doing some R D with PHP and OpenLDAP
I managed to get the php function ldap_add to work and I've been using PHP
to add form-submitted information to a directory.
However I decided to include another objectclass (uidObject) and now it
returns with:
error - Object class violation
Hei
On Wed, Jun 20, 2001 at 03:04:06PM +0200, Stig-Ørjan Smelror wrote:
I have some problems while printing out values of attributes-types which
have Equality and/or Substrings values.
Example:
$get_values = .$info[0][title][0]; # OK. (prints out the value
correct)
$get_values =
I'm doing some R D with PHP and OpenLDAP
I managed to get the php function ldap_add to work and I've been using PHP
to add form-submitted information to a directory.
However I decided to include another objectclass (uidObject) and now it
returns with:
error - Object class violation
Hi list,
i've compiled php-4.0.4pl1 with ldap support. It compiled nice and clean. A
make install put the lib in apache's libexec directory. When I start apache
I get the following : cannot load .../libphp4.so into server undefined symbol
: ldap_value_free
I checked the ldap.c file and found
I am trying ot understand how could a PHP script authenticate against a
LDAP tree (NDS) that is not in the same host?
Anyone has an example about that?
No sample code, but I assume you just pass in the IP or hostname of the
remote server for http://php.net/manual/en/function.ldap-connect.php
I didn't see that anyone had responded to your question. You need to install
OpenLDAP. It is the only opensource one that I know.
Mike
From: Walgamotte, David [EMAIL PROTECTED]
Date: Tue, 1 May 2001 15:03:25 -0500
To: [EMAIL PROTECTED]
Subject: [PHP] LDAP support for 4.0.5
Can anyone
Can anyone direct me as to what source is needed to compile ldap support
into php ? I get the error ldap.h not found when performing a configure
*options on php4.0.5. The server does not have an LDAP directory installed
which makes perfect sense. I need to find an opensource solution that works
Hello,
I am trying ot understand how could a PHP script authenticate against a LDAP tree
(NDS) that is not in the same host?
Anyone has an example about that?
TIA
Rom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
I am having troubles displaying all the information I need from an Exchange
server. I can display name, department, title, but can't get the phone
number to show up. Can someone show me a script that will pull the object
identifiers from the server so that I can make sure I have everything set
I am having troubles displaying all the information I need from an Exchange
server. I can display name, department, title, but can't get the phone
number to show up. Can someone show me a script that will pull the object
identifiers from the server so that I can make sure I have everything set
I am trying to pull info from an Exchange LDAP server to make a dynamically
created phonebook, and am having trouble with one field. I think the problem
is that the script I have has everything pulled in an array, and all but the
field I am having problems with are strings. The telephoneNumber
Hi,
I want to use the LDAP functions of PHP to process every entry in an LDAP
directory. Unfortunately the directory contains more than 2 entries and
the PHP LDAP functions
(ldap_search/ldap_list) report that the timelimit (30 seconds) has been
exceed.
I tried to use ldap_set_option($ds
On Wed, Apr 11, 2001 at 02:07:04PM +0200, Holger Flocken wrote:
Hi,
I want to use the LDAP functions of PHP to process every entry in an LDAP
directory. Unfortunately the directory contains more than 2 entries and
the PHP LDAP functions
(ldap_search/ldap_list) report that the timelimit
ok
i am usng php3.0.11 ,IIS4 and NT4 trying to connect to ldap server but i get
a error
Fatal error: Call to unsupported or undefined function ldap_connect() in ...
i have included php3_ldap.dll in my php3.ini, i have even tried to include
it dinamicaly with dl but then i get
Fatal error: Unable
Make sure all the dlls used by php3_ldap.dll are available.
I have php4 and the php_ldap.dll requires the libsasl.dll to be available.
Brett
""almir"" [EMAIL PROTECTED] wrote in message
99d00g$j4h$[EMAIL PROTECTED]">news:99d00g$j4h$[EMAIL PROTECTED]...
ok
i am usng php3.0.11 ,IIS4 and NT4
PHP 4.0.2 on Win32
or PHP 3 on Win32
extension=php_ldap.dll is on in the php.ini file
I get 'Unable to load php_ldap.dll' (PHP4) when I call a php file ?
I get 'Call to an unsupported function ldap_connect()' (PHP3) ?
Help please ?
--
PHP General Mailing List (http://www.php.net/)
To
I try to have the php ldap functions working with SSL ,
but when the code is executed the apache child die !!!
is there anyone with that working
regards
--
__
Matthieu LE CORRE
SERVICE
On Tue, Mar 06, 2001 at 09:27:55AM +0100, Matthieu Le Corre wrote:
I try to have the php ldap functions working with SSL ,
but when the code is executed the apache child die !!!
is there anyone with that working
Works fine for me. I know one other person with the same problem as you.
He also
mod_ssl-2.8.0-1.3.17
openssl-devel-0.9.6-1
openssl-0.9.6-1
openldap-devel-2.0.7-11
openldap-2.0.7-2
openldap-clients-2.0.7-12
Le Mardi 6 Mars 2001 09:53, vous avez crit :
On Tue, Mar 06, 2001 at 09:27:55AM +0100, Matthieu Le Corre wrote:
I try to have th
On Tue, Mar 06, 2001 at 10:54:24AM +0100, Matthieu Le Corre wrote:
Hum the ldapsearch work fine !!!
with the command : ldapsearch -x -H "ldaps://x..xx:636"
I have got a possitive response from server !
and I don't use SASL ...
I got some info from the other guy. He also used RH7
i don't use SASL
so when i use ldapsearch without -x
I get "ldap_sasl_interactive_bind_s: Unknown authentication method"
but it doesnt crash !
when i use php ldap functions with ssl
php doesn't crash but juste an Apache child crash !
so you think that if i compile openldap with
don't use SASL either.
when i use php ldap functions with ssl
php doesn't crash but juste an Apache child crash !
so you think that if i compile openldap without SASL i will work ?
i 'm really not sure because it's not that it doesn't work it's just crash ;(
The Apache child probably crash
Le Mardi 6 Mars 2001 11:35, vous avez crit :
I'm not sure of anything, but what I would have done to debug it, is to
use gdb either on the Apache process or on a stand-alone PHP. I prefer
debugging with a stand-alon binary myself. Then run PHP with your script
and see what happens. If you
There's been some discussion on the OpenLDAP lists as well, and there
seems to be a fix around. See
http://www.openldap.org/its/index.cgi/Software%20Bugs?id=889
Stig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
COOLL it work
oki guys
to work : apply the patch openldap source
recompil openldap
don't forget to copy librairie from /usr/local/lib to /usr/lib !
recompil php
recompil apache
and it works !!!
it's beeen hard but it works !!!
thank for all
Le Mardi 6 Mars 2001 12:51, vous
/ Count is a ldap feature that
contains the length of the resultset
echo $info[$i]["cn"][0];// choose any parameter you want see here
}
ldap_close($dir);
}
?
Ursprungligt meddelande
Mike Tuller [EMAIL PROTECTED] skrev 2001-02-28, kl. 01:31:09
angende mnet [PHP] LD
I want to create a list of everyone on the LDAP server, and none of the
examples I have in my books seems to work. What functions should I use to
connect to the server, and list users in the LDAP to create a phone book
type list to print out? Could someone also give me some sort of example that
I
Hello,
does anybody know of a LDAP Admin Tool (apart from LDAP Explorer) written in
php. Any hint would be appreciated.
Ali
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
Here is my environment again:
System Linux [EMAIL PROTECTED] 2.2.5-15 #1 Mon Apr 19 22:21:09 EDT 1999
i586 unknown
Build Date Sep 7 2000
Configure Command './configure' '--with-apxs=/usr/local/apache/bin/apxs'
'
--with-config-file-path=/usr/local/apache/conf' '--enable-versioning' '
On Wed, 17 Jan 2001, Jonathan Coker wrote:
Hello,
I am trying to get information from an exchange server and LDAP looks
like my best choice. I have never used LDAP before but it appeared to be
fairly straitforward. I installed the OpenLDAP software on a Linux system
running PHP 4.0.4
201 - 275 of 275 matches
Mail list logo