Table of Contents | Previous

Netscape Directory SDK 3.0 for C Programmer’s Guide

Index

A

adding
entries 170
asynchronous functions 82
adding entries 176
authentication 60
cancelling 89
comparing attribute values 234
deleting entries 208
example 89
modifying an entry 195
removing entries 208
renaming entries 219
attributes
comparing values 231
counting values in 132
defined 28
example of 28
freeing values of 132
getting from an entry 129
getting values from 131
specifying values for a new entry 171
authentication
asynchronous 60
reauthenticating during referrals 97
synchronous 58

B

BerElement 345
freeing 130

C

changing the name of an entry 217
closing an LDAP connection 66
cn
example of 29
common names
example of 29
comparing attribute values 231
asynchronous 234
synchronous 232
connection handle 52

D

deleting entries 206
asynchronous 208
synchronous 207
directory
defined 28
directory service
defined 28
distinguished names
defined 29
getting 127
getting components of 129
illustrated 30
DN (distinguished name) 29

E

ending an LDAP session 66
entries
adding 170
defined 28
deleting 206
example of 28
getting distinguished names 127
getting first attribute 129
getting subsequent attributes 130
listing subentries 154
modifying 188
organization in LDAP 29
reading 152
removing 206
renaming 217
specifying data for 168
updating 188
error codes 691
error messages 691
errors 72, 79
getting information about 72
reference 691

F

filter configuration files 157
building filters 165
freeing from memory 165
loading 161
retrieving filters 161
syntax 158
filters
adding affixes 164
building 165
configuration files 157
retrieving from files 161
freeing memory 70
FriendlyMap 346
functions
ldap_abandon() 89
ldap_add() 174
ldap_add_s() 174
ldap_ber_free() 130
ldap_build_filter() 165
ldap_compare() 231
ldap_compare_s() 231
ldap_count_values() 132
ldap_count_values_len() 132
ldap_delete() 206
ldap_delete_s() 206
ldap_err2string() 78
ldap_explode_dn() 129
ldap_explode_rdn() 129
ldap_first_attribute() 129
ldap_get_dn() 128
ldap_get_lderrno() 77
ldap_get_option() 53
ldap_get_values() 131
ldap_get_values_len() 131
ldap_getfilter_free() 165
ldap_getfirstfilter() 162
ldap_getnextfilter() 162
ldap_init_getfilter() 161
ldap_init_getfilter_buf() 161
ldap_modify() 193, 543
ldap_modify_s() 193
ldap_modrdn2() 217
ldap_modrdn2_s() 217
ldap_msgfree() 139
ldap_next_attribute() 130
ldap_next_reference() 578
ldap_perror() 79
ldap_result() 84
ldap_result2error() 86
ldap_search() 254
ldap_search_s() 254
ldap_search_st() 254
ldap_set_rebind_proc() 99
ldap_setfilteraffixes() 164
ldap_simple_bind() 57
ldap_simple_bind_s() 57
ldap_sort_entries() 136, 137
ldap_unbind() 66
ldap_unbind_s() 66
ldap_value_free() 132
ldap_value_free_len() 132

G

getting
distinguished names 127
first attribute from an entry 129
search results 119

I

initializing an LDAP session 51

L

LDAP
authentication 31
organization of data 29
ldap.h header file
including 34
ldap_abandon() 423
ldap_abandon_ext() 425
ldap_add() 428
ldap_add_ext() 431
ldap_add_ext_s() 434
ldap_add_s() 438
ldap_ber_free() 441
ldap_build_filter() 443
LDAP_CMP_CALLBACK 348
ldap_compare() 444
ldap_compare_ext() 446
ldap_compare_ext_s() 448
LDAP_COMPARE_FALSE 232, 234
ldap_compare_s() 451
LDAP_COMPARE_TRUE 232, 234
ldap_control_free() 453
ldap_controls_free() 454
ldap_count_entries() 455
ldap_count_messages() 456
ldap_count_references() 457
ldap_count_values() 458
ldap_count_values_len() 460
ldap_create_persistentsearch_control() 464
ldap_create_sort_control() 467, 469
ldap_create_virtuallist_control() 471
ldap_delete() 473
ldap_delete_ext() 475
ldap_delete_ext_s() 477
ldap_delete_s() 480
ldap_dns_fns 353
LDAP_DNSFN_GETHOSTBYADDR 351
LDAP_DNSFN_GETHOSTBYNAME 352
ldap_explode_dn() 484
ldap_explode_rdn() 485
ldap_extended_operation() 486
ldap_extended_operation_s() 488
ldap_extra_thread_fns 355
ldap_first_attribute() 491
ldap_first_entry() 493
ldap_first_message() 495
ldap_first_reference() 497
ldap_free_urldesc() 501
ldap_friendly_name() 503
ldap_get_dn() 505
ldap_get_entry_controls() 507
ldap_get_lang_values() 512
ldap_get_lang_values_len() 513
ldap_get_lderrno() 514
ldap_get_option() 517
ldap_get_values() 523
ldap_get_values_len() 525
ldap_getfilter_free() 508
ldap_getfirstfilter() 509
ldap_getnextfilter() 516
ldap_init() 528
ldap_init_getfilter() 531
ldap_init_getfilter_buf() 532
ldap_io_fns 369
LDAP_IOF_CLOSE_CALLBACK 361
LDAP_IOF_CONNECT_CALLBACK 362
LDAP_IOF_IOCTL_CALLBACK 363
LDAP_IOF_READ_CALLBACK 364
LDAP_IOF_SELECT_CALLBACK 365
LDAP_IOF_SOCKET_CALLBACK 366
LDAP_IOF_SSL_ENABLE_CALLBACK 367
LDAP_IOF_WRITE_CALLBACK 368
ldap_memcache_destroy() 535
ldap_memcache_flush() 536
ldap_memcache_get() 537
ldap_memcache_init() 538
ldap_memcache_set() 540
ldap_memcache_update() 541
ldap_memfree() 542
LDAP_MOD_ADD 169, 375
LDAP_MOD_BVALUES 169, 375
LDAP_MOD_DELETE 169, 375
LDAP_MOD_REPLACE 169, 375
ldap_modify_ext() 546
ldap_modify_ext_s() 549
ldap_modify_s() 554
ldap_modrdn() 557
ldap_modrdn_s() 558
ldap_modrdn2() 559
ldap_modrdn2_s() 562
ldap_mods_free() 564
ldap_msgfree() 566
ldap_msgid() 568
ldap_msgtype() 570
ldap_multisort_entries() 572
ldap_next_attribute() 574
ldap_next_entry() 576
ldap_next_message() 577
LDAP_OPT_THREAD_FN_PTRS 313
ldap_parse_entrychange_control() 579
ldap_parse_extended_result() 581
ldap_parse_reference() 583
ldap_parse_result() 585
ldap_parse_sasl_bind_result() 589
ldap_parse_sort_control() 591
ldap_parse_virtuallist_control() 593
LDAP_PORT 51
LDAP_REBINDPROC_CALLBACK 378
ldap_rename() 596
ldap_rename_s() 599
ldap_result() 603
ldap_result2error() 606
ldap_sasl_bind() 607
ldap_sasl_bind_s() 609
LDAP_SCOPE_BASE 112
reading entries in the directory 152
LDAP_SCOPE_ONELEVEL 112
listing subentries with 154
LDAP_SCOPE_SUBTREE 111
ldap_search() 612
ldap_search_ext() 618
ldap_search_ext_s() 621
ldap_search_s() 626
ldap_search_st() 630
ldap_set_lderrno() 635
ldap_set_option() 637
ldap_set_rebind_proc() 643
ldap_simple_bind() 648
ldap_simple_bind_s() 651
ldap_sort_entries() 655
ldap_sort_strcasecmp() 659
ldap_sort_values() 657
ldap_ssl.h header file
including 34
LDAP_TF_GET_ERRNO_CALLBACK 380
LDAP_TF_GET_LDERRNO_CALLBACK 382
LDAP_TF_MUTEX_ALLOC_CALLBACK 384
LDAP_TF_MUTEX_FREE_CALLBACK 385
LDAP_TF_MUTEX_LOCK_CALLBACK 386
LDAP_TF_MUTEX_UNLOCK_CALLBACK 387, 388
LDAP_TF_SEMA_ALLOC_CALLBACK 389
LDAP_TF_SEMA_FREE_CALLBACK 390
LDAP_TF_SEMA_POST_CALLBACK 391
LDAP_TF_SEMA_WAIT_CALLBACK 392
LDAP_TF_SET_ERRNO_CALLBACK 381
LDAP_TF_SET_LDERRNO_CALLBACK 383
ldap_thread_fns 393
ldap_thread_fns structure 314, 316
ldap_unbind_s() 661
ldap_url_search() 666
ldap_url_search_s() 671
ldap_url_search_st() 673
LDAP_VALCMP_CALLBACK 398
ldap_value_free() 674
ldap_value_free_len() 675
LDAP Application Programming Interface (API) 33
asynchronous functions 34
synchronous functions 34
LDAP clients 28
authentication 31
checking errors 72
closing connection to server 66
connecting with LDAP servers 31
example of 29
LDAP servers and 31
operations performed by 31
threading 313
LDAPControl 349
LDAPFiltDesc 357
LDAPFiltInfo 358
LDAPHostEnt 360
LDAPMemCache structure 371
LDAPMessage 373
LDAPMod 374
specifying data with 168
LDAP operations 65
cancelling 89
LDAP port 51
LDAP servers 28
authentication 31
closing connection from client 66
connecting with LDAP clients 31
example of 29
how data is distributed 30
how data is organized 29
how referrals work 30
LDAP clients and 31
LDAP session
ending 66
initializing 51
LDAPsortkey 379
ldapssl_advclientauth_init() 677
LDAP structure 347
explained 52
freeing 66
LDAPURLDesc 396
LDAPVersion 399
LDAPVirtualList 401
libldap30.sl file
linking to 35
libldap30.so file
linking to 35
libldapssl30.sl file
linking to 35
libldapssl30.so file
linking to 35
loading filter configuration files 161

M

memory
freeing 70
multi-threaded applications 313

N

Netscape LDAP C SDK 34
nsldap32v30.dll file 36
nsldap32v30.lib file
linking to 36
nsldap32v30bc.lib file
linking to 36
nsldapssl32v30.dll file 36
nsldapssl32v30.lib file
linking to 36
NULLMSG 493, 495, 497, 576, 577, 578

O

overview of this manual 21

P

printing error messages 79

R

referrals 30
reauthenticating 97
removing entries 206
asynchronous 208
synchronous 207
renaming an entry 217
renaming entries
asynchronous 219
synchronous 217

S

search filters
adding affixes 164
building 165
configuration files 157
retrieving from files 161
searching the directory 107
getting results 119
sorting results 136
search results 119
freeing 139
getting distinguished names 127
getting first attribute 129
getting subsequent attributes 130
sorting 136
sorting search results 136
standard LDAP port 51
synchronous functions 81
adding entries 175
authentication 58
comparing attribute values 232
deleting entries 207
example 81
modifying entries 194
naming conventions 80
removing entries 207
renaming entries 217
searching the directory 118, 254, 671

Table of Contents | Previous

Last Updated: 10/01/98 17:09:28