Hi,
I using the LDAP server for authentication and log into a machine.
Now i want the user should not be allowed log into any machine, if it is already logged into one machine using that LDAP server for the login and authentication.
Means that there should not be any simultaneous login for the same user. Is this possible using the LDAP or Not.
Waiting for the reply. Thanks in advance.
Regards.
Praveen Kumar wrote:
Hi,
I using the LDAP server for authentication and log into a machine.
Now i want the user should not be allowed log into any machine, if it is already logged into one machine using that LDAP server for the login and authentication.
Means that there should not be any simultaneous login for the same user. Is this possible using the LDAP or Not.
I don't think this belongs to LDAP (or to OpenLDAP). In fact, LDAP can provide authentication services, but how, where and when a user is actually logged to what (a machine, an application or whatever) is a matter of system-wide resource access policy, which, with respect to a DSA, is an application (a client), although a user would probably see it as a server. You could, of course, design a layer that keeps track of the fact that authentication requests came in for a given user and related to a given resource, and based on that, deny further access on a specific policy. OpenLDAP supports this by letting you design and implement your own overlay to solve your specific problem.
p.
Ing. Pierangelo Masarati OpenLDAP Core Team
SysNet s.r.l. via Dossi, 8 - 27100 Pavia - ITALIA http://www.sys-net.it ----------------------------------- Office: +39 02 23998309 Mobile: +39 333 4963172 Fax: +39 0382 476497 Email: ando@sys-net.it -----------------------------------
Praveen Kumar writes:
I using the LDAP server for authentication and log into a machine.
Now i want the user should not be allowed log into any machine, if it is already logged into one machine using that LDAP server for the login and authentication.
Means that there should not be any simultaneous login for the same user. Is this possible using the LDAP or Not.
Not by itself. The machine uses LDAP simply to check if the username and password are correct, and perhaps get his account info. That done, it likely terminates that LDAP session though the user stays logged in on the machine. Nothing informs the LDAP server when the user logs out from the machine, so the LDAP server doesn't know when to start accepting logins for that user on that machine again.
So you need to solve this on the machine the user logs in on.
Thogh I suppose it might be possible to a Single Sign-On service in reverse somehow on your network. SSO - like Kerberos which LDAP supports via SASL - lets you login just once on your network and then logins elsewhere makes use of tickets from the first login instaed of asking for a certificate again.
openldap-technical@openldap.org