This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!