I'm a little hesitant to log a bug for this as it may be the way I'm doing
things, but here's the "issue":
Summary:
Secondary
requests to AJAX PHP Script that performs ldap_connect/ldap_bind
requests to 1+ directories often results in "LDAP Can't contact LDAP
server". It appears PHP doesn't e
> -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
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
> -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
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
> -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
Hi,
I've found various sources and are successfully manipulating Active
Directory from PHP on our Domain Controller - frankly, things works much
better than I expected :)
I have now reached the point where I need to set permissions on objects in
Active Directory, i.e. to restrict read permissions
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
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
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);
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
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
Hallo there everyone
although i have built my code correctly according to the examples i found on
the net..
i get Invalid DN syntax error when i try to insert some attributes with ldap
add..
i get and read a csv file where i get the data correctly as i can see on the
echos that follow:
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
Hallo there everyone..
first thing first i would like to thank
everyone for the help that this mailing list has provided me
throughout my project..
i have found many answers and got me out of black point many times!!!
now i am on my last step on my project
and i would like to see if there are any
Hi,
ldap extension was loaded in the php.ini file.
php -i |grep ldap
/etc/php.d/ldap.ini,
ldap
RCS Version => $Id: ldap.c,v 1.161.2.3.2.14 2008/12/31 11:17:39 sebastian Exp $
Regards
Chima.s
On Thu, Oct 15, 2009 at 7:17 PM, wrote:
> Did you check both php.ini files?
>
> --
> PHP General Mai
Did you check both php.ini files?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi All,
I am using tring with sample program to connect the ldap using php.
Below is the sample code:
==
===
When i execute this program with command line
($ldapconn, "cn=Keithl, ou=Users, o=LH"));
>>
>> It's hard to know - you're suppressing errors.
>>
>> Add these 2 lines to your script:
>> error_reporting(E_ALL);
>> ini_set('display_errors', true);
>
> I've done that
done that and I get the following when I load the page in a browser:
Warning: ldap_bind() [function.ldap-bind]: Unable to bind to server: Can't
contact LDAP server in /www/doc/INTRA/ktlwiki/ldap-test.php on line 19
bool(false)
Can't contact LDAP server
>From the command line still
Keith Lawson wrote:
Hello,
I have been working on this problem for some time now and I can't seem to resolve it. Everything I have found on google and php.net says I can connect to an LDAP server with SSL by setting "TLS_REQCERT never" in ldap.conf. I want to eliminate certs from the picture for
m the command line:
[www]/www/doc/ktlwiki > php ldap-test.php
bool(true)
But when I load the same code through a browser it fails.
I'm using php 5.2.6, openldap 2.4.11 and openssl 0.9.8i on Solaris 10. I built
everything from source, PHP has LDAP and SSL support compiled in.
My openldap
es, that's why I decided to try a php LDAP read-only (for Thunderbird)
> "implementation" - I could not see how I can map the LDAP to our SQL (which
> implements object-relational mapping defined in XML text files and could not
> be done without the php logic).
unfortun
as read-optimized.
> and its a little more
> complicated to map to sql than one might initially suspect
> http://www.openldap.org/doc/admin24/intro.html#LDAP%20vs%20RDBMS
Yes, that's why I decided to try a php LDAP read-only (for Thunderbird)
"implementation" - I could not see ho
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
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
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.
>
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
[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
As LDAP can have SQL back-end (I saw an example with PostgreSQL) - is it
a very wild idea to implement (a simple) LDAP server in php?
We have all the address data already in PostgreSQL and a php application
managing all of it.
I am thinking of simple uses, such as providing LDAP address books
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
Apparently even though our Domain Administrator said anonymous access is
enabled for the server, it still did not like me trying to query AD
anonymously. I created a username/password with limited priviledges to AD
and now it works like a charm.
Below you will find my finished code:
>Could not c
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
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
Okay, hopefully someone can help me out here. I've gone over ldap at
php.net and multiple other sites but can't get it to work. Everytime I run
the query my results are "0 entries returned".
My AD tree is: CN=Users,DC=domain,DC=us. I have the AD Server set so that
anonymous access to retrieve in
Hi,
I have a stupid issue with ldap_connect.
i've reinstalled PHP, postgreSQL and restore my data (web files) after
reinstalling my PC.
now, when i try : $ds = ldap_connect($ldaphost, $ldapport) or die("Could not
connect to $ldaphost");
nothing works.
i wrote before error_reporting(E_ALL); in or
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
Hi all, i would like to know if anybody has a script in php that
change the password of the users in ldap???
That the user can do it by yourself
the user put your "username" "old pass" "new pass" "confirm new pass"
Somebody can help me?
Regards,
--
Fabio S. Silva
--
PHP General Mailing L
# [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
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
# [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
Hello,
actually i am workinh with the ldap functions of php5.
Reading the docs i found the constants
GSLC_SSL_NO_AUTH
GSLC_SSL_ONEWAY_AUTH
GSLC_SSL_TWOWAY_AUTH
They are simply documented, but i can't find any docs about them. Neither at
php.net not via google.
So - what they are for and
Hej!
I'm running PHP 5.1.2 on Suse 10.
The LDAP server is openldap 2.3.19
I've problem with swedish characters and DN.
DN: cn=åäö,dc=example,dc=com
$res = ldap_search($ds, 'dc=example,dc=com', '(objectClass=*)');
$dn = ldap_get_dn($ds,$res);
==> $dn is cn=\C3\85\C3\84\C3\96,dc=example,dc=com
[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
Hello list,
I am going to need to build LDAP and AD modules for a project that I'm
working on. Could any of you who have delt with PHP/LDAP/AD point me in the
direction of some decent resources/papers/books?
Thanks.
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
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
I'm working on integrating an application with an AD server, and I was
wondering if the password is encrypted at all, or if I need to go
through the troubles of setting up ldaps://
I checked the documentation, but I couldn't find any information about
plain-text vs. encrypted.
Thanks!
-
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'?
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
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
Hi,
I am using PHP's LDAP to read and write information fron user-objects
in Active Directory (Windows Server 2003).
The AD has been extended with 2 attributes (call them "xx" and "yy")
with the field type BOOLEAN
How do i write to these fields?
If I use ldap_mod_replace, and set the values fo
Hi,
I am using PHP's LDAP to read and write information fron user-objects
in Active Directory (Windows Server 2003).
The AD has been extended with 2 attributes (call them "xx" and "yy")
with the field type BOOLEAN
How do i write to these fields?
If I use ldap_mod_replace, and set the values fo
Hi,
I am using PHP's LDAP to read and write information fron user-objects
in Active Directory (Windows Server 2003).
The AD has been extended with 2 attributes (call them "xx" and "yy")
with the field type BOOLEAN
How do i write to these fields?
If I use ldap_mod_replace, and set the values fo
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
I have an already working LDAP server. One of my user's ldif looks like:
...
...
sn: Roger Thomas
givenName: Roger Thomas
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: qmailUser
objectClass: hordePerson
o: example.com
ou: people
...
On Wed, June 28, 2006 3:37 am, Adrian Bruce wrote:
> thanks for the response, i can see how this works (i think) for basic
> authentication with user input,but what i really need is to actually
> retrieve the logged on user name after a user has logged into windows.
So, basically, you think Windo
well, I'm sure that if you really wanted to try to write your own
auth module in PHP you could theoretically do so - but in lieu of
that there is an open source apache module that you might want to
look into called mod_ntlm http://modntlm.sourceforge.net/
keep in mind that all this does is
[snip]
thanks for the response, i can see how this works (i think) for basic
authentication with user input,but what i really need is to actually
retrieve the logged on user name after a user has logged into windows.
i.e. the user name that the http client passes to the apache mod has
been ca
thanks for the response, i can see how this works (i think) for basic
authentication with user input,but what i really need is to actually
retrieve the logged on user name after a user has logged into windows.
i.e. the user name that the http client passes to the apache mod has
been captured
[snip]
Sorry if this has been asked before but i am currently drawing a blank
STW etc.. is there any way of retrieving the user name of a user
(through the browser) that has logged on to a network (windows OS). I
have used php with LDAP before and made the user log into the website,
however i
Hi all
Sorry if this has been asked before but i am currently drawing a blank
STW etc.. is there any way of retrieving the user name of a user
(through the browser) that has logged on to a network (windows OS). I
have used php with LDAP before and made the user log into the website,
however
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
Our organization is migrating away from Novell E-directory to MS Active
Directory. I have a php class that allows me to run various queries on our
e-directory ldap server which I am working to convert to AD. However, I'm
running into an error that i cannot figure out. I have updated the base_
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
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
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
Hello,
I'm trying to do a ldap authentication page. I can get there username
and I don't know how to get the password from ldap. It didn't show up in
the the search for the command line. So how do I get the password of the
users?
Thomas
--
PHP General Mailing List (http://www.php.net/)
To u
Crone, James wrote:
I need to add LDAP support to my install of PHP. I had my sysadmin
download OpenLDAP and install the libraries.
This isn't correct way. You need these libraries but they are not enough.
[snip] I've
been told to use the dl() function
Read carefully. http://php.net/dl says
d
I doing wrong? Thanks in advance.
libldap.so is the LDAP library -- like, the WHOLE LDAP library, to
which PHP has an interface, if you re-compile PHP.
So you need to compile (or they need to compile) the PHP LDAP
interface down in the ext directory of PHP (or maybe it's in PECL
now).
This w
I need to add LDAP support to my install of PHP. I had my sysadmin
download OpenLDAP and install the libraries. Our current build of PHP
is complex and I'd prefer not to have to rebuild just to add LDAP. I've
been told to use the dl() function to load the LDAP library when needed
in PHP. Whenev
[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
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
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
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
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
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
[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
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
[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
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
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.
[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...
[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
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
TECTED]
> Sent: Tuesday, March 07, 2006 9:55 AM
> To: php-general@lists.php.net
> Subject: [PHP] LDAP and Single Sign On
>
> We are developing an intranet for my company. I would like to
implement a
> single sign on service. We have Active Directory on one server and the
> in
We are developing an intranet for my company. I would like to implement a
single sign on service. We have Active Directory on one server and the intranet
is being housed on a Redhat Linux server. When the internal user pulls up the
intranet, I would like it to check to see if they successfully j
[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
[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
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to
allocate 94 bytes) in /srv/www/htdocs/test/ldapTest.php on line 47
47 -> $info = ldap_get_entries($ds, $sr);
$sr=ldap_search($ds, "dc=foo,dc=local", "cn=*");
$ds is the connection to the LDAP server
Does anyone know what this
[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)
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
> :)
> [
[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
ndows world when I
accepted this position, and now it is just not true. We have all of our
users authenticating through AD on a W2003Server, so I thought I'd use
LDAP for web authentication as well.
It doesn't work.
For some cockamaimee reason there are problems using PHP/LDAP with
W2003Ser
this position, and now it is just not true. We have all of our
users authenticating through AD on a W2003Server, so I thought I'd use
LDAP for web authentication as well.
It doesn't work.
For some cockamaimee reason there are problems using PHP/LDAP with
W2003Server. To be sure, I found ple
[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
I am trying to work through connecting to and using LDAP with PHP. Thus
far I am able to connect and bind, but I cannot search.
$sr=ldap_search($ds, "CN=configuration,DC=onecall,DC=local", "cn=*");
Gives me
Warning: ldap_search(): Search: Operations error in
/srv/www/htdocs/test/ldapTest.php o
006 8:40 AM
To: PHP Mailing List
Subject: [PHP] PHP/LDAP Authentication
I'm currently running OpenLDAP with some users populated in the database. I
would like to use PHP to create a web page where my ldap users can enter
their username and password credentials to log into our intranet. C
://toolbar.weberdev.com
Free Uptime Monitor : http://uptime.weberdev.com
SEO Data Monitor http://seo.weberdev.com
-Original Message-
From: Golden Butler [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 19, 2006 8:40 AM
To: PHP Mailing List
Subject: [PHP] PHP/LDAP Authentication
I'm curr
On 2/19/06, Golden Butler <[EMAIL PROTECTED]> wrote:
> I'm currently running OpenLDAP with some users populated in the
> database. I would like to use PHP to create a web page where my ldap
> users can enter their username and password credentials to log into our
> intranet. Can someone point me
1 - 100 of 283 matches
Mail list logo