PHP

PHP jest obiektowym, skryptowym jezykiem programowania zaprojektowanym do tworzenia dynamicznych stron www.


Funkcje PHP

Oficjalna strona PHP

Dodatkowe aplikacje PHP

Dodatkowe modu³y PHP

Wortal PHP
komputery - Najnowsze wiadomości - organizacja imprez - Śmieszne filmiki - Darmowe Gry - Backstreet Boys - piosenki


ldap_read

ldap_read

(PHP 3, PHP 4, PHP 5)

ldap_read -- Read an entry

Opis

resource ldap_read ( resource link_identifier, string base_dn, string filter [, array attributes [, int attrsonly [, int sizelimit [, int timelimit [, int deref]]]]] )

Performs the search for a specified filter on the directory with the scope LDAP_SCOPE_BASE. So it is equivalent to reading an entry from the directory.

Parametry

link_identifier

An LDAP link identifier, returned by ldap_connect().

base_dn

The base DN for the directory.

filter

An empty filter is not allowed. If you want to retrieve absolutely all information for this entry, use a filter of objectClass=*. If you know which entry types are used on the directory server, you might use an appropriate filter such as objectClass=inetOrgPerson.

attributes

An array of the required attributes, e.g. array("mail", "sn", "cn"). Note that the "dn" is always returned irrespective of which attributes types are requested.

Using this parameter is much more efficient than the default action (which is to return all attributes and their associated values). The use of this parameter should therefore be considered good practice.

attrsonly

Should be set to 1 if only attribute types are wanted. If set to 0 both attributes types and attribute values are fetched which is the default behaviour.

sizelimit

Enables you to limit the count of entries fetched. Setting this to 0 means no limit.

Notatka: This parameter can NOT override server-side preset sizelimit. You can set it lower though.

Some directory server hosts will be configured to return no more than a preset number of entries. If this occurs, the server will indicate that it has only returned a partial results set. This also occurs if you use this parameter to limit the count of fetched entries.

timelimit

Sets the number of seconds how long is spend on the search. Setting this to 0 means no limit.

Notatka: This parameter can NOT override server-side preset timelimit. You can set it lower though.

deref

Specifies how aliases should be handled during the search. It can be one of the following:

  • LDAP_DEREF_NEVER - (default) aliases are never dereferenced.

  • LDAP_DEREF_SEARCHING - aliases should be dereferenced during the search but not when locating the base object of the search.

  • LDAP_DEREF_FINDING - aliases should be dereferenced when locating the base object but not during the search.

  • LDAP_DEREF_ALWAYS - aliases should be dereferenced always.

Zwracane wartości

Returns a search result identifier or FALSE on error.

Rejestr zmian

WersjaOpis
4.0.5 Parallel searches support was added. See ldap_search() for details.
4.0.2 The attrsonly, sizelimit, timelimit and deref were added.

Wgraj swoje pliki za darmo Darmowy hosting plików Darmowy hosting plików - Limo and Car services Airport chicago limo service 773-649-9630 - Limo and Car services limousine service Airport chicago 773-649-9630 - komputery - zdjęcia kobiet - Limo and Car services chicago limousine 773-649-9630 - Limo and Car services limousine chicago il 773-649-9630 - Optymalizacja i pozycjonowanie poznań w internecie. - Najlepsze opisy gg smutne do Twojego komunikatora - Popularne sklepy internetowe warszawa czekamy na ciebie. - odzyskiwanie utraconych danych - hosting tanie serwery na strony www - budowa stron internetowych - systemy wymiany linków Systemy Wymiany Linków systemy wymiany linków - zdjęcia sportowe

G:2,M:0,Y:2