Re: [PHP] ldap_search filter filter?

2010-07-16 Thread Andrew Ballard
On Fri, Jul 16, 2010 at 11:42 AM, Richard Lynch wrote: > Any Best Practice suggestions for potentially hostile user input being > sent to ldap_search($ldap, "(username=$_POST[username])"); > > Something like an ldap_escape? > > Please cc me on replies. Thanks. > Long time no see, Richard. There a

Re: [PHP] ldap_search filter with memberOf

2009-03-03 Thread Romer Ventura
If you notice when you get the "memberOf" back from the server you ll see it is an array with full CN; so if you dont want to loop through the array returned you can try to see if filtering with the full CN will work. I found it easier to just get all of "memberOf" and then use PHP to get

Re: [PHP] ldap_search results limited

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 2:26 PM, Matt Burtch <[EMAIL PROTECTED]> wrote: > Thanks for the tips. phpLDAPAdmin was hanging while trying to > authenticate, but I'll give it a try again later. > > Nathan: splitting up the search; I hadn't considered this! It is working > nicely for the time being, thank

Re: [PHP] ldap_search results limited

2008-05-07 Thread Matt Burtch
Thanks for the tips. phpLDAPAdmin was hanging while trying to authenticate, but I'll give it a try again later. Nathan: splitting up the search; I hadn't considered this! It is working nicely for the time being, thanks. - MB On Wed, May 7, 2008 at 3:23 PM, Jay Blanchard <[EMAIL PROTECTED]> wrote

RE: [PHP] ldap_search results limited

2008-05-07 Thread Jay Blanchard
[snip] > I am running into a problem with my queries returning a limited number of > result entries. [/snip] Most LDAP servers set a limit, it is usually not a PHP problem. One way to solve is to query by first letter of last name and throw into an array (iterating through the alphabet). functio

Re: [PHP] ldap_search results limited

2008-05-07 Thread Nathan Nobbe
On Wed, May 7, 2008 at 12:50 PM, mburtch <[EMAIL PROTECTED]> wrote: > > I am running into a problem with my queries returning a limited number of > result entries. The LDAP server is Kerio Mail Server, and I am verified > that > the SIZELIMIT in the server's configuration is 0 (no limit). For some

Re: [PHP] ldap_search(): Partial search results returned: Sizelimit exceeded

2007-07-17 Thread Richard Lynch
On Tue, July 17, 2007 4:51 pm, Jay Blanchard wrote: > Perhaps mistakenly for a project that I am trying to do I want to list > all users in the Active Directory. It works pretty well with one > exception, the error ldap_search(): Partial search results returned: > Sizelimit exceeded. > > Now, I kno

RE: [PHP] ldap_search() question

2003-11-24 Thread Schechter, Ricky
[EMAIL PROTECTED]' Subject: Re: [PHP] ldap_search() question On Sat, 22 Nov 2003, Schechter, Ricky wrote: > Do I use ldap_search to authenticate users in LDAP? I can successfully > search the LDAP and retrieve user's data based on a search criteria like > (cn=something). If I

Re: [PHP] ldap_search() question

2003-11-23 Thread Kelly Hallman
On Sat, 22 Nov 2003, Schechter, Ricky wrote: > Do I use ldap_search to authenticate users in LDAP? I can successfully > search the LDAP and retrieve user's data based on a search criteria like > (cn=something). If I use (password=somepass) or (userPassword=somepass) > in the search criteria it com

Re: [PHP] ldap_search...no results!

2001-04-16 Thread Dan Lowe
Previously, Miguel Carvalho said: > if a do > ldapsearch -o ",o=xyz" "ent=entry1,uid=ldap,ou=People,o=xyz", it > works just fine. > > How can i access the entry "ent=entry1,uid=ldap,ou=People,o=xyz" using > ldap_search/ldap_list or ldap_read? > > I have tried ldap_search... but i can not fi

Re: [PHP] ldap_search()

2001-03-09 Thread Mike Tuller
Ok. That makes sense. I have the structure printed out, so I shouldn't have a problem. > From: "Nick Talbott" <[EMAIL PROTECTED]> > Date: Thu, 8 Mar 2001 08:21:15 - > To: "Mike Tuller" <[EMAIL PROTECTED]>, "php mailing list" > <[E

Re: [PHP] ldap_search()

2001-03-08 Thread Nick Talbott
Mike The purpose of setting the basedn is to say "search in this branch of the directory". The only person who can really tell you what basedn to use is whoever designed or manages the structure of your LDAP server. Having said that, a base dn is commony something like ... o=Your Organisation,c