Wednesday, July 15, 2009

Auto Login with Novell and Javascript

Use javascript nwdirlib object : C#Corner Forums
Says you can use the following javascript to retrieve the username

LdapObj = new ActiveXObject("NWDirLib.NWDirCtrl.1");
entry=LdapObj.FindEntry(LdapObj.LoginName);
usrId=entry.ShortName

More nwdirlib sample code : stackoverflow.com

This method is susceptible to url hacking.

No comments: