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
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
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
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
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
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
[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
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
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
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
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
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
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
[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
"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
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
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
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
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
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
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
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
22 matches
Mail list logo