Forums Register Login

will servlets serve the purpose

+Pie Number of slices to send: Send
hello all
in my app i authenticate user against databse via servlets
Now when the user authenticates his entry is passed on to the ldap server

So how could I fetch certain entries from the relative database via servlet and put it into the ldap directory server

Reply soon

Thanks
Regards
Monarch

----- I.M.Possible----
+Pie Number of slices to send: Send
Isn't that a bit backwards? I was under the impression that LDAP servers are optimized for reading, and data there should not be modified often. That's what relational databases are for. So authentication is usually done with LDAP, and if some data needs to be persisted and changed often, it's done with the relational db.

Also, all the SQL and LDAP code should really be placed POJOs (plain old java objects) used by servlets, not in the servlets themselves.

Anyway, here's some helpful pages for LDAP:

JNDI basics: http://java.sun.com/products/jndi/tutorial/basics/TOC.html
LDAP through JNDI: http://www.javaworld.com/javaworld/jw-03-2000/jw-0324-ldap_p.html


-Yuriy
[ March 30, 2005: Message edited by: Yuriy Zilbergleyt ]
+Pie Number of slices to send: Send
hello
Thanks for the reply
Is it not possible that the names already exist in the directory but when the user authenticates using rel db his name is activated in directory server

Or else when authentication is done the entry is added to the directory server for the first time itself

As it is dealing with chat application there are various chat rooms
So directory could handle all the rooms differently.Is it possible??

If anyone know how LDAP would be used in a chat application please let me know soon coz the company that has given the project to us wants LDAP

As someone told that maintaining the names after authentcation would be good thing
Is he right or not??

Thanks
Regards
Monarch
+Pie Number of slices to send: Send
Hi Monarch,

Did the company tell you what you should use LDAP for, or did they just say "use LDAP"? As I said before, LDAP servers are optimized for reading not writing, so modifying or creating an entry in LDAP will put a greater load on your server than modifying or creating a row in a database. Once a user authenticates, why not just store that info in the session or ServletContext? But if you have to persist it for some reason, I guess "activating" a user by setting some field in an LDAP entry from "false" to "true" may make sense if the field will be read more times than it is set.

Hope that helps,
-Yuriy
I think she's lovely. It's this tiny ad that called her crazy:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 683 times.
Similar Threads
Tomcat and LDAP.
JndiLoginModule and user bind?
isUserInRole always returns false
is it possible
is it possible through LDAP ??
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 11:30:12.