Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

AndrewHanes/CSHLDAP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

CSHLDAP

CSH LDAP library implemented in Java

CSHLDAP is a Java 6 library designed to simplify interaction with LDAP. Credit to gambogi (https://github.com/gambogi/CSHLDAP) for the idea.

Installation

No need to install, just add the Java file to your project

Basic Usage

Create a LDAP Object

LDAP ldap = new LDAP(username, password);

Get a listing of all members:

Member m = ldap.getMembers()

Note: This is fairly slow and should be avoided

Get a specific member:

HashMap<String, String> searchAttrs = new HashMap<String, String>();
searchAttrs.put("uid", "userToLookFor")
ldap.search(searchAttrs)

This will return a list of members matching what is searched

##Other Notes

Not all users have the same attributes.

This may work with Java 7. I haven't tested it

See JavaDocs or email me if you have any questions

About

CSH LDAP library implemented in Java

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages