Archive for the 'LDAP Specialist Training' Category

Modify LDAP records with JNDI

Problem
Need to modify an LDAP record with JNDI, the Java Naming Directory Interface.Following on from using java to perform LDAP searches, here is a quick demo on modifying records.

Solution
Here I’m using java to modify John Doe’s record, changing the givenname entry to John A.As you’ll notice all values are hard coded (such as hostname, […]

LDAP to SQL Perl code

Problem
Whilst working on the automatic production of web statistics - came across the following problem: “How do I get relational data from an Hierarchical structure?”

Solution
It didn’t take long to realize - I’d have to use PHP to talk to LDAP, pull off records […]

Java JNDI talk to LDAP

Problem
You want to talk to LDAP from Java.

Solution
Java as well as Perl, PHP and plain old Shell have APIs to be able to talk to LDAP.The Java API is probably most complex one to use - I have provided some demos on how to use the others on this site.More will be added in time.

Example
Here […]