When I try to create a new entry on an LDAP server using ldapbrowser, nothing happens, because there are no menu itmes under Edit -> Add Entry. However, it works fine when using the online demo applet at http://www-unix.mcs.anl.gov/~gawor/ldap/demo.html I also tried downloading the files that the applet uses and running those locally, but the behavior was the same -- nothing under Edit > Add Entry.
seemant: you originally blocked the package for license reasons, what's the story behind this? # <seemant@gentoo.org> (25 Jul 2002) # masked while licensing is sorted out app-misc/ldapbrowser Georgi: i can't reproduce this, what JDK are you using?
Since I am not at home, I reproduced the problem on my machine at school. I am using sun-jdk-1.5 beta1, and now upgraded to beta2 and the problem is the same. I also tried it under sun-jdk-1.4.2.04, but no luck. I would think it is the weird schemas I have on my ldap server, but the java applet did work as expected (at least it gave me a choice of a few items to add). An unrelated side-note, but java-1.5 was complaining that lbe.jar is corrupt. Unzipping the file and recreating it using "jar" fixed the problem (I thought it may have something to do with it, but no). I was trying to download the jar files from the website and running them locally, but as far as I remember, the error was the same (not sure if I did everything properly). The files did have differing modification times, though.
Some more insight on the problem. If I do select an entry, right-click it, and then select "Edit -> Create Template" (and if I "mkdir ~/.ldapbrowser/templates" in advance), I can create a template from the entry, which then appears in Edit -> Add Entry. This seems to be the proper way to do things, so this bug should probably be marked as INVALID. I guess it was my problem that I didn't know how to use the program, though there is no documentation. Furthermore, the demo applet does have several templates that I can select by default, which made me think that there is a problem with my installation. Fact is, however, that Create Template, does not work if the "templates" directory does not exist, which is a problem related to this bug. I would suggest to modify th lbe.sh script to do a mkdir -p ${HOME}/.ldapbrowser/templates. Now that I think about it, the proper fix seems to be: mkdir -p ${HOME}/.ldapbrowser || exit 1 cd ${HOME}/.ldapbrowser || exit 1 test -d templates || cp -a /opt/ldapbrowser-282_beta2/templates ./
This package has been removed from portage.