Alain Roger wrote:
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
I found what was the problem :-(
in PHP.ini the Temp directory was not setup the same.
i do not know what is the link with LDAP module, but since i updated php.ini,
it works correctly.
Alain
On 8/21/07, Colin Guthrie [EMAIL PROTECTED] wrote:
Alain Roger wrote:
Hi,
I have a stupid issue
Hello
I am using PHP v5 to write an intranet. The site is hosted on a windows
2000
server running Apache. I want to incorporate some form of Windows
authentication to allow or deny access to given resources based on
usernames
and group membership.
I am trying to accomplish this using LDAP.
Hi
The proto type is not correct.
array ldap_get_values(link_identifier ,
result_entry_identifier, string attribute);
^
try this
1) connect
2) bind
3) search
4) get_entries // this the step you are missing
5) get_values
regards
CVR
Can anyone tell me what
On Thu, Sep 12, 2002 at 09:37:22AM +1000, joshua wrote:
i'm not sure if i follow you. i have never used ldap to write
authentication scripts as i've only used the .htaccess method.
to retrieve data you need to bind using a username/password combination
that is valid. i guess you could
i'm not sure if i follow you. i have never used ldap to write
authentication scripts as i've only used the .htaccess method.
to retrieve data you need to bind using a username/password combination
that is valid. i guess you could test your user's username/password by
using it to attempt a
If on the other hand you actually want to retrieve data from your LDAP
system then i suggest reading the manual. it's not actually a lot harder
that connecting to RDBMS.
I managed to get a working script straight off the manual page.
http://www.php.net/manual/en/ref.ldap.php
Unfortunately,
Hi Richard
If you're using Apache I'd recommend using .htaccess files
that way there is no php needed.
AuthName Your Directory Service - Authentication
AuthType basic
AuthLDAP on
AuthLDAPServer ldap://ldap.yourdomain.com/
AuthLDAPBase ou=Your Division, ou=Staff, o=Your Company, c=US
require
Answered my own question.
Thanks anyway.
--
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 administrators, e-mail: [EMAIL PROTECTED]
Johan,
As the PHP documentation points out in Function Reference: LDAP
functions:
...You will need to get and compile LDAP client libraries from either
the
University of Michigan ldap-3.3 package or the Netscape Directory SDK
3.0. You will also need to recompile PHP with LDAP support enabled
10 matches
Mail list logo