4 ms·
JNDI is ugly, but after some trying around it generally does what its supposed to. I tried the Apache LDAP API and it is by far easier, but the "experimental"-s
by BonoboBoner 16y ago
JNDI is ugly, but after some trying around it generally does what its supposed to. I tried the Apache LDAP API and it is by far easier, but the "experimental"-state was a turnoff for me.
The nicest solution is Spring LDAP, but it requires the spring jars, which can be a bit too heavy, if you dont have it on your CP already and just want to connect to an AD without adding Spring to your project.
- thewonggei 16y agoI agree on JNDI, which is why I believe few have pursued another option. Thanks for the reminder about the Spring LDAP library. I came across that as well and had to reject it for the reason you stated. We don't already use Spring and I didn't want to import all that extra code. I'll update my posting and mention the Spring option.