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

[PHP] LDAP confusion

2006-03-02 Thread jblanchard
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