Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ldap_next_entry(3) [php man page]

LDAP_NEXT_ENTRY(3)							 1							LDAP_NEXT_ENTRY(3)

ldap_next_entry - Get next result entry

SYNOPSIS
resource ldap_next_entry (resource $link_identifier, resource $result_entry_identifier) DESCRIPTION
Retrieve the entries stored in the result. Successive calls to the ldap_next_entry(3) return entries one by one till there are no more entries. The first call to ldap_next_entry(3) is made after the call to ldap_first_entry(3) with the $result_entry_identifier as returned from the ldap_first_entry(3). PARAMETERS
o $link_identifier - An LDAP link identifier, returned by ldap_connect(3). o $result_entry_identifier - RETURN VALUES
Returns entry identifier for the next entry in the result whose entries are being read starting with ldap_first_entry(3). If there are no more entries in the result then it returns FALSE. SEE ALSO
ldap_get_entries(3). PHP Documentation Group LDAP_NEXT_ENTRY(3)

Check Out this Related Man Page

LDAP_FIRST_ENTRY(3)					     Library Functions Manual					       LDAP_FIRST_ENTRY(3)

NAME
ldap_first_entry, ldap_next_entry, ldap_count_entries - LDAP result entry parsing and counting routines SYNOPSIS
#include <ldap.h> ldap_count_entries(ld, result) LDAP *ld; LDAPMessage *result; LDAPMessage *ldap_first_entry(ld, result) LDAP *ld; LDAPMessage *result; LDAPMessage *ldap_next_entry(ld, entry) LDAP *ld; LDAPMessage *entry; DESCRIPTION
These routines are used to parse results received from ldap_result(3) or the synchronous LDAP search operation routines ldap_search_s(3) and ldap_search_st(3). The ldap_first_entry() routine is used to retrieve the first entry in a chain of search results. It takes the result as returned by a call to ldap_result(3) or ldap_search_s(3) or ldap_search_st(3) and returns a pointer to the first entry in the result. This pointer should be supplied on a subsequent call to ldap_next_entry() to get the next entry, the result of which should be supplied to the next call to ldap_next_entry(), etc. ldap_next_entry() will return NULL when there are no more entries. The entries returned from these calls are used in calls to the routines described in ldap_get_dn(3), ldap_first_attribute(3), ldap_get_values(3), etc. A count of the number of entries in the search result can be obtained by calling ldap_count_entries(). ERRORS
If an error occurs in ldap_first_entry() or ldap_next_entry(), NULL is returned and the ld_errno field in the ld parameter is set to indi- cate the error. If an error occurs in ldap_count_entries(), -1 is returned, and ld_errno is set appropriately. See ldap_error(3) for a description of possible error codes. SEE ALSO
ldap(3), ldap_result(3), ldap_search(3), ldap_first_attribute(3), ldap_get_values(3), ldap_get_dn(3) ACKNOWLEDGEMENTS
OpenLDAP is developed and maintained by The OpenLDAP Project (http://www.openldap.org/). OpenLDAP is derived from University of Michigan LDAP 3.3 Release. OpenLDAP 2.0.27-Release 22 September 1998 LDAP_FIRST_ENTRY(3)
Man Page

8 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

how to read a file till it encounters a blank line

Hi , I want to read a file starting with "*" up to till it encounters a blank line and to redirect this output to a different file.Plz suggest how to write a script for this. e.g:- * PK Sent Email (11.23) CALYPSO 1243215 9116457 NEW TRAD FAILED Nov 23 2007 9:34AM OASYS: DPS:... (0 Replies)
Discussion started by: adityam
0 Replies

2. UNIX for Dummies Questions & Answers

how to read a file till it encounters a blank line

Hi , I want to read a file starting with "*" up to till it encounters a blank line and to redirect this output to a different file.Plz suggest how to write a script for this. e.g:- * PK Sent Email (11.23) CALYPSO 1243215 9116457 NEW TRAD FAILED Nov 23 2007 9:34AM OASYS: DPS: SINGCORP invalid... (1 Reply)
Discussion started by: adityam
1 Replies

3. Shell Programming and Scripting

Looping through entries

Hi everyone, I am having trouble looping through entries in a file. The file several entries that are separated by topics e.g. <Topic r:id="Top/World/Français"> </Topic> <Topic r:id="Top/World/Français/Actualité"> </Topic> <Topic r:id="Top/World/Français/Actualité/A_la_Une"> <link... (1 Reply)
Discussion started by: BlueberryPickle
1 Replies

4. Shell Programming and Scripting

Need help in reading a file horizontally and printing vertically

Hi Every body, I have file which has enttries, with each 5 entries as a set of entries, I would like to read the file (line by line) and print five entries of a set vertically, the next entry should come in the next line. Example: cat sample_file I am a Unix Adminsitrator new to shell... (6 Replies)
Discussion started by: aruveiv
6 Replies

5. Shell Programming and Scripting

Comment entries in the file

Legends, Please help me out to come out of below situation. I have a file ABC.txt with the following entries. (example below. actual entries are more than 200 lines) PM3_fun PM4_fun FIMr_mrg ... (5 Replies)
Discussion started by: sdosanjh
5 Replies

6. Shell Programming and Scripting

Request to check:remove entries with N/A entries

Hi I have a file with numerous entries some entries are 1 mani 2 kavya 3 N/A 4 Praveeen 5 N/A and so on How to remove entries with N/A so the result will be 1 mani 2 kavya 3 Praveeen (6 Replies)
Discussion started by: manigrover
6 Replies

7. Shell Programming and Scripting

Using "whitelist" from a file to remove entries

Dear all, what I need to do is extract an entries list from a file and remove some entries based on a white list present on other file, then output into result.txt file. Example: source.txt: 12345 text1 text2 text3 text4 123 text1 text2 text3 text4 678 text1 text2 text3 text4 987 text1... (8 Replies)
Discussion started by: Lord Spectre
8 Replies

8. Shell Programming and Scripting

Grep out ONLY subject from maillog

I have the following entries in maillog. I need to grep out only the subject part from the following entries. Maillog contain following entries. 2013-11-14 03:30:02 1Vgnd4-001qwZ-36 <= user@domain.com U=user P=local S=9797 id=cd3732bbd0fbda5cb16384bb7d5b465d@localhost.localdomain T="Subject... (3 Replies)
Discussion started by: anil510
3 Replies