Hi Michael,
I think the LDAP in current form should solve my purpose.
Currently I have client and server on the same machine. I have created one user in LDAP namely asimananda and I am able to login to the server by the same too. But in the auth.log, it shows some error....is it normal ?
If "su - asimananda" is done from root :
------------------------------------------
PAM unable to dlopen(/lib/security/pam_foreground.so): /lib/security/pam_foreground.so: cannot open shared object file: No such file or directory
PAM adding faulty module: /lib/security/pam_foreground.so
pam_ldap: ldap_simple_bind Can't contact LDAP server
pam_ldap: reconnecting to LDAP server...
pam_ldap: ldap_simple_bind Can't contact LDAP server
Successful su for asimananda by root
+ pts/3 root:asimananda
pam_unix(su:session): session opened for user asimananda by root(uid=0)
------------------------------------------
If new session is opened to log in as asimananda :
------------------------------------------
PAM unable to dlopen(/lib/security/pam_foreground.so): /lib/security/pam_foreground.so: cannot open shared object file: No such file or directory
PAM adding faulty module: /lib/security/pam_foreground.so
pam_ldap: ldap_simple_bind Can't contact LDAP server
pam_ldap: reconnecting to LDAP server...
pam_ldap: ldap_simple_bind Can't contact LDAP server
pam_ldap: ldap_simple_bind Can't contact LDAP server
pam_ldap: reconnecting to LDAP server...
pam_ldap: ldap_simple_bind Can't contact LDAP server
Accepted password for asimananda from 172.21.141.50 port 4484 ssh2
pam_unix(ssh:session): session opened for user asimananda by (uid=0)
------------------------------------------
Thanks for the reply.
-Asimananda