Hi Vijay, it looks like you're doing this at a programmatic level, rather than using the GUI? Your best option is to look at the excellent 'JNDI Tutorial' written by Rosanna Lee at Sun: http://java.sun.com/products/jndi/tutorial/ - particularly http://java.sun.com/products/jndi/tutorial/basi
Hi Vijay, the user ID for logging on must be a DN itself - the DN of a valid user entry with a matching password. If you are simply using a user name like 'Vijay', you'll get an invalid DN exception, you need something like 'cn=Vijay, dc=co, dc=uk' (or whatever). cheers, ChrisOn 09/05/2