Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Comparing one-way hash password using JNDI  RSS feed

 
kochumon java
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,


I am storing one-way hash (SSHA) of my password in a custom attribute in TDS (Tivoli Directory Server) using JNDI. The hashing is done at the server end.
Is there any way to compare the password at the server end using JNDI ?

I am able to compare the password using "ldapcompare" utility that comes along with TDS. But I couldn't do it using JNDI.

I am getting below error message when I try to compare using " DirContext.search() " method.

" GLPSRV158I 1-way encrypted attribute 'attribute name' is only allowed in 'present' filters."

I don't want to generate the hash programmatically & compare locally, Instead I prefer to do it at the server (TDS) end.
Is there any work around?

Any help will be highly appreciated.

Cheers,
Georgi
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!