Sign In
Upload
Manuals
Brands
Netscape Manuals
Server
NETSCAPE DIRECTORY SERVER 6.2 - PLUG-IN
Netscape NETSCAPE DIRECTORY SERVER 6.2 - PLUG-IN Manuals
Manuals and User Guides for Netscape NETSCAPE DIRECTORY SERVER 6.2 - PLUG-IN. We have
1
Netscape NETSCAPE DIRECTORY SERVER 6.2 - PLUG-IN manual available for free PDF download: Manual
Netscape NETSCAPE DIRECTORY SERVER 6.2 - PLUG-IN Manual (612 pages)
Brand:
Netscape
| Category:
Server
| Size: 4 MB
Table of Contents
Table of Contents
3
Preface
11
Using Directory Server Plug-In Apis
11
What You Should Already Know
11
Document Conventions
13
Where to Find Directory Server Information
14
Part 1 Introduction to Directory Server Plug-Ins
17
Chapter 1 An Overview of Directory Server Plug-Ins
19
What Are Directory Server Plug-Ins
19
How Directory Server Plug-Ins Work
20
Calling Directory Server Plug-In Functions
21
The Directory Server Architecture
21
Types of Directory Server Plug-Ins
24
Chapter 2 Writing and Compiling Plug-Ins
27
Writing a Plug-In Function
27
Including the API Header File
28
Passing Data with Parameter Blocks
28
Working with Parameter Blocks
29
Getting Data from the Parameter Block
29
Setting Data in the Parameter Block
30
Calling Front-End Functions
31
Plug-In Return Values
31
Writing Plug-In Initialization Functions
32
Initialization Functions for Windows Platforms
32
Specifying Directory Server Compatibility
33
Specifying Information about the Plug-In
33
Registering Your Plug-In Functions
34
Returning a Value to the Directory Server
35
Example of an Initialization Function
35
Compiling a Directory Server Plug-In
36
Chapter 3 Configuring Plug-Ins
39
Creating a Plug-In Configuration File
39
Plug-In Dependencies
41
Specific Plug-In Dependencies
41
Plug-In Type Dependencies
42
Specifying the Order of Plug-In Directives
42
Summary of Plug-In Directives
42
Loading the Plug-In Configuration File
44
Passing Extra Arguments to Plug-Ins
45
Setting the Log Level of the Server
46
Chapter 4 A Quick Example
47
An Example Pre-Operation Plug-In
47
Writing the Plug-In Example
48
Compiling the Plug-In Example
51
Registering the Plug-In Example
52
Running the Plug-In Example
53
Part 2 Basic Plug-In Programming Techniques
55
Chapter 5 Front-End API Functions
57
Logging Messages
58
Adding Notes to Access Log Entries
58
Sending Data to the Client
59
Determining if an Operation was Abandoned
59
Working with Entries, Attributes, and Values
60
Creating a New Entry
61
Converting between Entries and Strings
61
Getting and Setting the DN of an Entry
62
Verifying Compliance with the Schema
62
Getting the Attributes and Values of an Entry
63
Iterating through the Attributes in an Entry
63
Finding a Specific Attribute in an Entry
63
Adding and Removing Values
63
Working with Dns and Rdns
64
Determining if a DN Is the Root DN
64
Working with DN Suffixes
65
Server Suffixes
65
Getting the Parent DN of a DN
65
Normalizing a DN
65
Working with Search Filters
66
Determining if an Entry Matches a Filter
67
Getting the Filter Type
67
Getting the Search Criteria
68
Converting a String to a Filter
69
Creating Complex Filters by Combining Filters
69
Checking Passwords
69
Chapter 6 Writing Pre/Post-Operation Plug-Ins
71
How Pre/Post-Operation Plug-Ins Work
71
Types Pre-Operation and Post-Operation Functions
73
Types of Pre-Operation Functions
73
Types of Post-Operation Functions
74
Registering Pre/Post-Operation Functions
76
Chapter 7 Defining Functions for LDAP Operations
77
Specifying Start and Close Functions
78
Processing an LDAP Bind Operation
78
Defining Functions for the Bind Operation
78
Getting and Setting Parameters for the Bind Operation
79
Processing an LDAP Unbind Operation
79
Processing an LDAP Search Operation
80
Getting the List of Candidates
81
Iterating through Candidates
82
Processing an LDAP Compare Operation
84
Processing an LDAP Add Operation
84
Processing an LDAP Modify Operation
86
Processing an LDAP Modify RDN Operation
87
Processing an LDAP Delete Operation
89
Processing an LDAP Abandon Operation
89
Chapter 8 Defining Functions for Authentication
91
Understanding Authentication Methods
91
How the Directory Server Identifies Clients
92
How the Authentication Process Works
92
Writing Your Own Authentication Plug-In
95
Writing a Pre-Operation Bind Plug-In
95
Defining Your Authentication Function
97
Getting and Checking the Bind Parameters
97
Getting the Entry and Checking the Credentials
98
What to Do if Authentication Fails
99
What to Do if Authentication Succeeds
99
Registering the SASL Mechanism
100
Example of a Pre-Operation Bind Plug-In
101
Example of a Pre-Operation Bind Function
101
Example of an Initialization Function
104
Registering the Plug-In
105
Using SASL with an LDAP Client
106
Part 3 Advanced Programming Techniques
111
Chapter 9 Writing Entry Store/Fetch Plug-Ins
113
How Entry Store/Fetch Plug-Ins Work
113
Writing Entry Store/Fetch Functions
114
Registering Entry Store/Fetch Functions
115
Chapter 10 Writing Extended Operation Plug-Ins
117
How Extended Operation Plug-Ins Work
117
Writing Extended Operation Functions
118
Registering Extended Operation Functions
119
Specifying Start and Close Functions
121
Chapter 11 Writing Matching Rule Plug-Ins
123
Understanding Matching Rules
123
Extensible Match Filters
124
Extensible Match Filters in the Directory Server
125
Understanding Matching Rule Plug-Ins
125
Functions Defined in Matching Rule Plug-Ins
125
How Matching Rules Are Identified
126
How the Server Associates Plug-Ins with Oids
127
Finding a Plug-In for Indexing
127
Finding a Plug-In for Searching
128
How the Server Uses Parameter Blocks
129
Indexing Based on Matching Rules
129
How the Server Sets up the Index
129
How the Server Updates the Index
130
Writing the Indexer Factory Function
131
Getting and Setting Parameters in Indexer Factory Functions
132
Writing the Indexer Function
133
Getting and Setting Parameters in Indexer Functions
134
Handling Extensible Match Filters
134
How the Server Handles the Filter
135
Query Operators in Matching Rules
136
Writing a Filter Factory Function
137
Getting and Setting Parameters in Filter Factory Functions
138
Writing a Filter Index Function
139
Getting and Setting Parameters in Filter Index Functions
140
Writing a Filter Matching Function
141
Handling Sorting by Matching Rules
142
Writing a Destructor Function
143
Writing an Initialization Function
143
Registering Matching Rule Functions
145
Specifying Start and Close Functions
146
Chapter 12 Using the Custom Distribution Logic
147
About Distributing Flat Namespaces
147
Creating a Distribution Function
148
Adding the Distribution Function to Your Directory
150
Adding Multiple Databases to a Single Suffix
151
Using the Console
151
From the Command-Line
151
Adding Distribution Logic to a Suffix
152
Using the Console
152
From the Command-Line
152
Using the Distribution Logic Examples
153
Custom Distribution Checklist
154
Chapter 13 Using Data Interoperability Plug-Ins
155
Installing Directory Server
156
Understanding Deployment Configuration
156
Installing Two Instances of Directory Server
160
Enabling the DIOP Feature in Directory Server
161
Using the DIOP Feature
162
Sample DIOP Plug-In
164
Debugging the Plug-In
166
Plug-In API Reference
167
Preserving the Default Behavior of the Server
167
Bypassing Access Control Checks
167
Part 4 Reference
169
Chapter 14 Data Type and Structure Reference
171
Summary of Data Types and Structures
171
Chapter 15 Function Reference
215
Distribution Routines
216
Functions for Access Control
218
Functions for Internal Operations and Plug-In Callback
224
Functions for Setting Internal Operation Flags
232
Functions for Handling Attributes
243
Functions for Managing Backend Operations
262
Functions for Dealing with Controls
281
Functions for Syntax Plug-In
288
Functions for Managing Memory
291
Functions for Managing Dns
298
Functions for Managing Entries
307
Functions Related to Entry Flags
345
Functions for Dealing with Filters
348
Functions Specific to Extended Operation
367
Functions Specific to Bind Methods
368
Functions for Thread-Safe LDAP Connections
369
Functions for Logging
372
Functions for Handling Matching Rules
375
Functions for Ldapmod Manipulation
383
Functions for Monitoring Operations
419
Functions for Managing Parameter Block
421
Functions for Handling Passwords
425
Functions for Managing RDN
428
Functions for Managing Roles
450
Functions for Managing Dns
451
Functions for Sending Entries and Results to the Client
476
Functions Related to UTF-8
481
Functions for Handling Values
494
Functions for Handling Valueset
514
Functions Specific to Virtual Attribute Service
524
Functions for Managing Locks and Synchronization
532
Functions for Managing Computed Attributes
537
Functions for Manipulating Bits
540
Functions for Registering Object Extensions
545
Functions Related to Data Interoperability
548
Functions for Registering Additional Plug-Ins
552
Chapter 16 Parameter Block Reference
555
Parameters for Registering Plug-In Functions
556
Pre-Operation/Data Validation Plug-Ins
556
Post-Operation/Data Notification Plug-Ins
558
Matching Rule Plug-Ins
559
Entry Plug-Ins
560
Parameters Accessible to All Plug-Ins
560
Information about the Database
561
Information about the Connection
563
Information about the Operation
565
Information about Extended Operations
566
Information about the Transaction
566
Information about Access Control Lists
567
Notes in the Access Log
567
Information about the Plug-In
568
Types of Plug-Ins
568
Version Information
569
Information about Command-Line Arguments
570
Information about Attributes
570
Attribute Names
570
Attribute Flags
571
Attribute Comparisons
571
Information about Targets
572
Parameters for the Bind Function
572
Parameters for the Search Function
573
Parameters Passed to the Search Function
573
Parameters for Executing the Search
574
Parameters for the Search Results
575
Parameters that Return Data Types
575
Parameters that Convert Strings to Entries
576
Parameters for the Add Function
577
Parameters for the Compare Function
578
Parameters for the Delete Function
578
Parameters for the Modify Function
579
Parameters for the Modify RDN Function
579
Parameters for the Abandon Function
580
Parameters for the Matching Rule Function
581
Query Operators in Extensible Match Filters
582
Parameters for LDBM Backend Pre- and Post-Operation Functions
583
Pre-Operation Plug-Ins
583
Post-Operation Plug-Ins
584
Parameters for the Database
584
Information about the Database
584
Information about Operations
585
Information about Backend State Change
586
Parameters for LDAP Functions
586
Parameters for LDAP Operations
586
Parameters for LDAP Control
587
Parameters for Generating LDIF Strings
588
Parameters for Error Logging
589
Parameters for Filters
590
Parameters for Comparison Filters
591
Parameters for Filter Operations
591
Parameters for Password Storage
592
Password Storage Plug-Ins
592
Parameters for Resource Limits
593
Parameter for Binder-Based Resource Limits
593
Status Codes for Resource Limits
593
Parameters for the Virtual Attribute Service
593
Glossary
597
Index
601
Advertisement
Advertisement
Related Products
Netscape NETSCAPE DIRECTORY SERVER 6.01 - ADMINISTRATOR
Netscape NETSCAPE DIRECTORY SERVER 6.01 - PLUG-IN
Netscape NETSCAPE DIRECTORY SERVER 6.02 - ADMINISTRATOR
Netscape NETSCAPE DIRECTORY SERVER 6.02 - PLUG-IN
Netscape NETSCAPE DIRECTORY SERVER 6.1 - ADMINISTRATOR
Netscape NETSCAPE DIRECTORY SERVER 6.2 - DEPLOYMENT
Netscape NETSCAPE DIRECTORY SERVER 6.1 - PLUG-IN
Netscape NETSCAPE DIRECTORY SERVER 6.2 - ADMINISTRATOR
Netscape NETSCAPE DIRECTORY SERVER 6.0
Netscape NETSCAPE DIRECTORY SERVER 6.0 - DEPLOYMENT
Netscape Categories
Server
Software
Gateway
More Netscape Manuals
Login
Sign In
OR
Sign in with Facebook
Sign in with Google
Upload manual
Upload from disk
Upload from URL