Copyright (c) 2001, Junzo SATO. All rights reserved.
Aug 11th 2001
OpenLDAP, the directory server application is installed on Linux (and Windows).
The instructions for setting up the server and configuration files are described on the web site:
http://fc.kuh.kumamoto-u.ac.jp/~jsato/ldapmemo/ldapsetup.htm.
The following operations were done based on this environment.
J/Link Mathmatica package is loaded.
![[Graphics:Images/mathldap_gr_1.gif]](Images/mathldap_gr_1.gif)
InstallJava[ ] setups J/Link environment so that the Mathmatica can use Java. Options varies depending on which machine and operating system a user is using.
![[Graphics:Images/mathldap_gr_2.gif]](Images/mathldap_gr_2.gif)
![[Graphics:Images/mathldap_gr_4.gif]](Images/mathldap_gr_4.gif)
![[Graphics:Images/mathldap_gr_5.gif]](Images/mathldap_gr_5.gif)
![[Graphics:Images/mathldap_gr_7.gif]](Images/mathldap_gr_7.gif)
![[Graphics:Images/mathldap_gr_8.gif]](Images/mathldap_gr_8.gif)
A connection to the LDAP server is established. By default, LDAP server uses port number 389.
Connection to the LDAP server is created. In this example, localhost is used for convenience.
![[Graphics:Images/mathldap_gr_9.gif]](Images/mathldap_gr_9.gif)
![[Graphics:Images/mathldap_gr_12.gif]](Images/mathldap_gr_12.gif)
Connection to the LDAP server is closed. This is essentially the same as ldapconn@finalize[ ].
![[Graphics:Images/mathldap_gr_15.gif]](Images/mathldap_gr_15.gif)
Now the connection is established again.
![[Graphics:Images/mathldap_gr_16.gif]](Images/mathldap_gr_16.gif)
'Login' to the directory.
![[Graphics:Images/mathldap_gr_19.gif]](Images/mathldap_gr_19.gif)
Tools are loaded and defined.
![[Graphics:Images/mathldap_gr_22.gif]](Images/mathldap_gr_22.gif)
![[Graphics:Images/mathldap_gr_24.gif]](Images/mathldap_gr_24.gif)
The top directory and it's attribute 'dc' is searched and shown.
![[Graphics:Images/mathldap_gr_25.gif]](Images/mathldap_gr_25.gif)
![[Graphics:Images/mathldap_gr_30.gif]](Images/mathldap_gr_30.gif)
![[Graphics:Images/mathldap_gr_31.gif]](Images/mathldap_gr_31.gif)
![[Graphics:Images/mathldap_gr_33.gif]](Images/mathldap_gr_33.gif)
[1] Rob Weltman and Tony Dahbura, "LDAP Programming with Java", Addison-Wesley, 2000
The mathematica code is written based on this informative book.