开发者

Syncing Groupwise/ Novell accounts with a java application

开发者 https://www.devze.com 2023-03-09 07:48 出处:网络
I have a Java app开发者_Python百科lication which has it\'s own table of username\'s and passwords.We are trying to upgrade the system so that a user may simply use their groupwise/novell accounts to l

I have a Java app开发者_Python百科lication which has it's own table of username's and passwords. We are trying to upgrade the system so that a user may simply use their groupwise/novell accounts to login, essentially, syncing their accounts.

What would be required to authenticate their username and pw? I know how to retrieve emails using pop3/imap from groupwise in java, so i can try to login that way and make sure I get a successful login, but i'm sure there is a better way.


It will depend. GroupWise has two different password approaches.

  1. User a distinct GW password, stored in the GW databases
  2. User an LDAP password, usually pointed against eDirectory

If the first case, I am not sure how you might do it, though I suppose a POP connect in Java testing for success would work.

If the second case, then you would just need to know the eDirectory LDAP server information, and connect to that. Get the server, whether it requires SSL/TLS or not, an account with sufficient rights to find users in eDirectory, and then decide what attribute you will use to find users. Probably uniqueID in eDirectory (uid via LDAP) but you will need to ask if it is populated in this system. Due to historical vagaries of eDirectory, early tools did not always set uniqueID on users. Thus it is possible not every object has it set. However, all modern tools set it, so it would only be a one time fix. CN is a bad choice as it can be multi valued. Of course, if email address are populated, you could require mail (Internet EMail Address in eDirectory).

Basically how you would do any standard LDAP integration. There are libraries like LDAPChai to make this easier as well.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号