In the authentication tab, configure ‘simple authentication’. Open the connections tab, and right-click it to create a new connection to our server.Ĭhoose localhost as the host and Apache DS’ default port, 10389, as the port. Give it the name of your choice and start it. Open the LDAP perspective, right-click the servers tab and choose ‘new server’. Right-click the schema and choose ‘export as LDIF/ schema for Apache DS’.Īnd we need to import it into our server, which we are going to create now: To be able to use it in our server we need to export it.
When you’re done with the book class as well, click on the ‘save’ icon in the DS Studio’s menu bar. A node must have at least one structural class to be able to be instantiated. Just like in Java, there exist abstract classes in LDAP as well. When you’re done with defining the attributes, define the object class book. It’s type is a structural class. So instead of using title, we’ll use ‘subject’ for our attribute’s alias. It turns out that in the predefined schema organizationPerson there exists an attribute type already with alias title.Īlthough we don’t use this schema ourselves, Apache DS doesn’t like it. When you try to add our attribute type ‘title’ you’ll notice that Apache DS does not allow it. Choose ‘directory string’ for your syntax.
All attribute types need a superior here we’ll just choose ‘name’. The alias field will contain the name of your attribute, so author, title or synopsis.Ĭlick ‘next’ to fill in the superclass (superior) and syntax. Obviously we’re not going to do that here, so just choose something like ‘1.1.1.1’. To be sure that your OID is really globally unique, you should have your set of id’s assigned by the IANA, ANSI or BSI. OID stands for Globally unique object identifier. The first thing you’ll have to fill in is the OID.
Right-click our schema and choose ‘new attribute type’. We will define our attributes and make synopsis an optional attribute. Right-click somewhere in the schema panel and choose ‘new schema’. Open Apache DS Studio and create a new project. Our schema’s only object clas is the Book class, with these attributes: We are going to define a simple schema which will enable us to store information about books in our LDAP server.
#Apache directory studio sasl realm install
You only need to have Java 5 or higher installed.ĭownload DS Studio 1.5 from here and follow the instructions to install it. And the project contains a well structured client LDAP Api which can also be used to connect to other LDAP servers.Īpart from its stand-alone LDAP server, Apache DS also provides an administration gui called Apache DS Studio.Īpache DS Studio can also function as a LDAP server and it has an LDAP schema IDE which is based on the Eclipse framework.īecause we are going to write our own schema in this blog we’ll install DS Studio. Want to read more about LDAP? Here’s a nice link: Īpache DS is not so well known and fully featured as some other LDAP servers: Most noticably Microsoft Active Directory and OpenLDAP.īut it has a few nice advantages: It is written in Java and therefore runs on many platforms. Some examples are DHCP and Microsoft Address Book. Object classes define a set of required and optional attribute types.Įntries inherit from one or more object classes: And finally a collection of objectclasses and their allowed attribute types is called a schema.Īn advantage of using a predefined schema to represent your data is that external clients won’t have any trouble understanding what your object classes and attribute types mean. The name of a key and the form and type of the data in its value depends on its attribute type. A distinguished name is a string which consists of one or more comma-separated key-value pairs which together uniquely identify the node. Nodes are called ‘entries’ and contain data as key – value pairs.Įach entry is identified by its distinguished name (DN). LDAP servers store their data in the form of a tree., called the DIT (Directory Information Tree).
#Apache directory studio sasl realm how to
In this article I’ll show you how to set up your own LDAP server using the open source Java based Apache DS server. Today it is mainly used for authentication but you could use it to make almost any kind of information available in your network. The LDAP protocol has been around for quite a while.