Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
Java
JNDI LDAP 103 codes
Home
Java
JNDI LDAP
1 A JNDI context wrapper implementation that delegates read-only methods to its delegate Context, and throws OperationNotSupported
2 A static utility class for common JNDI operations
3 Adding a Binding with Attributes to the Directory
4 Adding, Replacing, Removing, and Renaming a Binding in the Naming Service
5 Authenticating to the Directory
6 Bind a non-serializable object into a local JNDI context
7 Cancelling a Directory Search
8 Converts an RDN to its String representation and vice-versa
9 Create a context path recursively
10 Creates a schema for storing Java objects according to RFC 2713
11 Creates an LdapName and prints its components
12 Creates the schema for storing CORBA object references according to RFC 2714
13 Creating a Directory Entry
14 Creating an Initial Context to a Directory
15 Creating an Initial Context to the Naming Service
16 Creating and Destroying a Subcontext in the Naming Service
17 Deleting an entry
18 Demonstrates RDN comparison
19 Display dir context
20 DNS lookups for XMPP services
21 Getting an Attributes Schema from the Directory
22 Getting an Objects Fully Qualified Name
23 Getting an Objects Schema from the Directory
24 Getting LDAP Response Controls
25 How a paged search can be performed using the PagedResultsControl API
26 How an LdapName can be obtained from the search results
27 How failure to supply correct authentication information fails
28 How sorted search results can be obtained using SortControl API
29 How to add a binding to a context
30 How to bind a Serializable object to a directory
31 How to bind a Serializable object to a directory with a codebase
32 How to create a new subcontext called ou=NewOu with some attributes
33 How to create an initial context to an LDAP server using a custom socket factory
34 How to create an initial context to an LDAP server using an LDAPS URL
35 How to create an initial context to an LDAP server using anonymous authentication (i e none)
36 How to create an initial context to an LDAP server using DIGEST-MD5 authentication
37 How to create an initial context to an LDAP server using DIGEST-MD5 authentication with a specified realm
38 How to create an initial context to an LDAP server using External authentication and SSL
39 How to create an initial context to an LDAP server using simple authentication
40 How to create an initial context to an LDAP server using SSL
41 How to destroy a subcontext called ou=NewOu
42 How to discover a servers supported SASL mechanisms
43 How to do the equivalent of an LDAP compare
44 How to enable connection pooling Use debug option to observe connection usage
45 How to list the bindings in a context
46 How to list the name and class of objects in a context
47 How to look up an object
48 How to make modifications to an objects attributes
49 How to overwrite an existing binding
50 How to pass LDAP name to the context methods
51 How to perform a search and limit the number of results returned
52 How to perform a search and limit the time that the search takes
53 How to perform a search by specifying a search filter and default search controls
54 How to perform a search by specifying a search filter and search controls
55 How to perform a search by specifying a search filter and search controls to search a subtree
56 How to perform a search by specifying a search filter and search controls to search an object
57 How to perform a search by specifying a search filter, objects to fill in filter, andsearch controls
58 How to register a listener for Unsolicited Notifications
59 How to remove a binding
60 How to rename an entry and keep its old RDN as an attribute
61 How to rename an entry to another part of the namespace
62 How to rename an interior node
63 How to rename an object
64 How to retrieve all attributes of a named object
65 How to retrieve selected attributes of a named object
66 How to search the directory that ignores referrals returned by the server
67 How to use a timeout when creating a connection
68 How to use different authentication information for one context
69 How values in the RDN can be retrieved from their string representation
70 JNDI utilities
71 LDAP Search
72 Listing a Context in the Naming Service
73 Looking Up an Object from the Naming Service
74 Modify the attributes of the entry
75 Modifying an Objects Attributes in the Directory
76 Parsing a JNDI Composite Name
77 Parsing a JNDI Compound Name
78 Performing a Basic Directory Search
79 Read Timeout Test
80 Reading an Objects Attributes from the Directory
81 Rebind Context
82 Registering for Namespace Changes in the Directory
83 Registering for Object Changes in the Directory
84 Replace the placeholders in the filter with the proper values from the userName
85 Retrieves an LdapNames suffix and prefix
86 Retrieves the DN from the search results
87 Searching a Subtree in the Directory
88 Searching the Directory by Using a Search Filter
89 Setting LDAP Connection Request Controls
90 Setting LDAP Context Request Controls
91 Show only the common name (cn) and e-mail address (mail) attributes
92 Shows contexts that originally shared the same connection using different connection
93 Shows contexts that share the same connection
94 Shows different ways of constructing an Rdn
95 Shows how LdapName to String conversion works
96 Shows how to format DNs with special characters by escaping the values
97 Shows ways of accessing the typevalue pair(s) from an RDN
98 Shows ways of comparing LDAP names
99 Shows ways of modifying an Ldap Name
100 TearDown Context Recursively
101 This program demonstrates access to a hierarchical database through LDAP
102 Use Person class to add an entry to the LDAP server
103 Using a URL as a Name to the Initial Context