tag:blogger.com,1999:blog-1078032318127767231.post5419643241871545894..comments2024-03-20T01:42:16.872-05:00Comments on Spotfire Developer: Querying Active DirectoryJose Leviaguirrehttp://www.blogger.com/profile/12377756211132280060noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-1078032318127767231.post-57290483343194018972015-10-13T15:04:15.399-05:002015-10-13T15:04:15.399-05:00Thank you Justin!Thank you Justin!Jose Leviaguirrehttps://www.blogger.com/profile/12377756211132280060noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-19535043635972331312015-10-13T08:05:32.131-05:002015-10-13T08:05:32.131-05:00Jose,
I have an update. If you specify the userna...Jose,<br /><br />I have an update. If you specify the username and password - generally of a service account, it will work via IIS.<br /><br />Example:<br />#Add these lines below root = DirectoryEntry(myPath)<br />root.Username = UserName<br />root.Password = SecurelyStoredPassword<br /><br />Justinjwwhttps://www.blogger.com/profile/16898544155916504834noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-44520821021396548342015-10-07T14:18:16.632-05:002015-10-07T14:18:16.632-05:00jww,
Some scripts only work on the client. It ha...jww, <br /><br />Some scripts only work on the client. It has to do with the clr and .NET (AD) references since the webplayer is running in a different environment. Make sure the sSpotfire service account running webplayer services requires permissions to query ADJose Leviaguirrehttps://www.blogger.com/profile/12377756211132280060noreply@blogger.comtag:blogger.com,1999:blog-1078032318127767231.post-31352461189087797002015-10-07T14:11:09.614-05:002015-10-07T14:11:09.614-05:00Jose, This works great in professional, however, I...Jose, This works great in professional, however, I cannot get it to work in the web player. I am getting this error:<br /><i><br />Could not perform action 'SCRIPTNAME'.<br /><br /> at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) at System.DirectoryServices.DirectoryEntry.Bind() at System.DirectoryServices.DirectoryEntry.get_AdsObject() at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne) at System.DirectoryServices.DirectorySearcher.FindOne() at _stub_$350##350(Closure , CallSite , CodeContext , Object ) at Microsoft.Scripting.Actions.MatchCaller.Call2[T0,T1,TRet](Func`4 target, CallSite site, Object[] args) at Microsoft.Scripting.Actions.CallSite`1.UpdateAndExecute(Object[] args) at Microsoft.Scripting.Actions.UpdateDelegates.Update2[T,T0,T1,TRet](CallSite site, T0 arg0, T1 arg1) at $351##351(Closure , Scope , LanguageContext ) at Spotfire.Dxp.Application.ScriptSupport.IronPythonScriptEngine.Execute(ScriptDefinition script, Dictionary`2 scope) at Spotfire.Dxp.Application.Scripting.ScriptService.Execute(ScriptDefinition script, Dictionary`2 scope, LicenseManager licenseManager, InternalLibraryManager internalLibraryManager, NotificationService notificationService) at Spotfire.Dxp.Application.Scripting.ScriptManager.<>c__DisplayClass4.b__3() at Spotfire.Dxp.Framework.Commands.CommandHistory.Transaction(Executor executor, Boolean visible, Boolean sticky, Guid stickyGuid) at Spotfire.Dxp.Framework.Commands.CommandHistory.Transaction(String displayName, Executor executor) at Spotfire.Dxp.Framework.DocumentModel.DocumentNode.Transaction(String displayName, Executor executor) at Spotfire.Dxp.Application.Scripting.ManagedScript.Execute(Dictionary`2 environment) at Spotfire.Dxp.Application.HtmlTextAreaControls.ActionControl.ModifyCore(Object value) at Spotfire.Dxp.Application.Visuals.HtmlTextArea.<>c__DisplayClass14.<>c__DisplayClass16.b__13() at Spotfire.Dxp.Framework.Commands.CommandHistory.Transaction(Executor executor, Boolean visible, Boolean sticky, Guid stickyGuid) at Spotfire.Dxp.Framework.Commands.CommandHistory.Transaction(String displayName, Executor executor) at Spotfire.Dxp.Framework.DocumentModel.DocumentNode.Transaction(String displayName, Executor executor) at Spotfire.Dxp.Application.Visuals.HtmlTextArea.InteractWithControl(String id, Action`1 interaction)<br /><br />An operations error occurred.</i><br /><br />Thanks<br />Justinjwwhttps://www.blogger.com/profile/16898544155916504834noreply@blogger.com