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:
Post a Comment