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

[PHP] ldap_search filter filter?

2010-07-16 Thread Richard Lynch
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. -- Some people ask for gifts here. I just want you to buy an Indie CD for yourself: http://cdbaby.com

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

[PHP] ldap_search filter with memberOf

2009-02-22 Thread Zaitchik, Alan
I am trying to construct a filter for ldap_search that tests the AD memberOf attribute. The latter has possibly multiple values for a given user, and I want something like (memberOf=*Student*) to get all and only the students. I realize that the above does not work, that the memberOf attribute h

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

[PHP] ldap_search results limited

2008-05-07 Thread mburtch
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 reason, my server seems to be limited to 200 results if no limit is specified

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

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

2007-07-17 Thread Jay Blanchard
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 know that I can page through (I would have to figure out a clever

[PHP] LDAP_SEARCH filter syntax help

2004-12-27 Thread jtennyson
Hello, I am just starting to familiarize myself with LDAP and I am having problems with a simple search when using a filter with multiple criteria. I'm trying to return distinguishedname attribute when a match exists for both samaccountname AND telephonenumber. The syntax I am using is: ldaps

[PHP] LDAP_SEARCH filter syntax help

2004-12-27 Thread jtennyson
Hello, I am just starting to familiarize myself with LDAP and I am having problems with a simple search when using a filter with multiple criteria. I'm trying to return distinguishedname attribute when a match exists for both samaccountname AND telephonenumber. The syntax I am using is: ldaps

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

[PHP] ldap_search() question

2003-11-23 Thread Daniel Baird
"Schechter, Ricky" <[EMAIL PROTECTED]> 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 comes bac

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

[PHP] ldap_search() question

2003-11-22 Thread Schechter, Ricky
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 comes back with no hits. How should this be done? D

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

[PHP] ldap_search...no results!

2001-04-16 Thread Miguel Carvalho
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 find how to write the filter. Can any one, please h

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
From: Mike Tuller <[EMAIL PROTECTED]> To: php mailing list <[EMAIL PROTECTED]> Date: 08 March 2001 01:03 Subject: [PHP] ldap_search() >Sorry about this, but I don't know much about LDAP, and the book I have >doesn't tell me much. > >I was shown the following

[PHP] ldap_search()

2001-03-07 Thread Mike Tuller
Sorry about this, but I don't know much about LDAP, and the book I have doesn't tell me much. I was shown the following script to grab information from an LDAP server and display the results in a phonebook type format. The problem I am running into I think is that I work for a school dist