Hi
We have a working solution but somewhere I feel there may be a better one than the current one. The scenario: we use novell eDirectory and when using IIS integrated windows authentication most user get a login digest box to provide authentication details as it's not passed. We have a variety of OS and XP seems to be the only one that does not present this behaviour.
Current Solution:
using the object tag this identifies through classid the existence and location of the OCX control and creates the instance for the ASP.NET page
<object class="hide" classid="CLSID:290078F6-F5A8-4CAA-9843-DAE103D649A7" id="NWDir1" width="32px" height="32px" visible="false"></object>
Now Using JAVASCRIPT: Create the Object required which has code to get the logged on user and then connect to the eDirectory servers to get user details:
var LdapObj;LdapObj = new ActiveXObject("NWDirLib.NWDirCtrl.1");if (LdapObj==null){alert ("NWDir OCX Object could not be created");}else{//alert("all fine object created");var usrID;var entry;entry=LdapObj.FindEntry(LdapObj.LoginName);usrId=entry.ShortName;
PITFALLS: I probably don't need tp list the problems with this as most of you would have greater knowledge than myself. One thing that is going to affect this is our company wants to get rid of IE and use only Firefox..If this control is not registered etc etc etc
Does anyone have a better idea. All I really need is a custom control dll that could be created at runtime on the client, that would get me the logged on user. I guess security implications make this impossible as we could do this anywhere to anyone..In case you have a good suggestion I would be grateful as I could do with getting away from new ActiveXObject..
Thanks