SecurityException received when AD objects - InfoPath Dev
in

InfoPath Dev

SecurityException received when AD objects

Last post 04-21-2006 07:44 AM by bashira. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 03-14-2006 07:53 PM

    • jcfiesta
    • Not Ranked
    • Joined on 03-15-2006
    • Philippines
    • Posts 3

    SecurityException received when AD objects


    Hello! This is my first time to post here.

    I always get a SecurityException whenever I try to search a user in Active Directory using an InfoPath form I created. What are the prerequisites in using objects in DirectoryServices namespace?

    Really need some help guys.
  • 03-14-2006 09:24 PM In reply to

    Re: SecurityException received when AD objects

    Hi jcfiesta,

    What is the security settings that u have given ur form?

    Change it to domain or Full Trust depending on ur needs.
    Some information regarding the different security settings are given below

    •Restricted- Corresponds to Internet Explorer#%92s Restricted sites zone (high security).The form cannot access resources that are external to the form, such as Active X controls. Users can open and save forms but the script code cannot access the file system or other computer resources. The restricted model prevents use of custom task panes, data connections (except submission by email), managed code (VB.NET or C#) and roles.

    •Domain- Corresponds to Internet Explorer#%92s Local Intranet Zone (medium low security) or forms running on the local computer during development. Forms can access databases and web services within a single domain. For example –forms running in the local oakleaf.org domain cannot access web services provided by a server in the public oakleaf.ws domain. Templates deployed to server shares on a local area network are considered to be in the same domain. ActiveX Controls, custom task panes, roles, managed code are enabled. This model is the most common security scenario for Published InfoPath forms.

    • Full Trust- Corresponds to Internet Explorer's Trusted sites zones.(low security).These forms permit cross domain data access, permit running ActiveX controls that aren't marked safe for scripting, provide added managed code flexibility, and eliminate some security level prompts we receive at the domain security level. But we must sign the form with a code signing certificate or deploy the fully trusted forms to user's computers using the techniques described later in "Distributing Custom Installed Templates”. By default InfoPath analyses our form and its programming code to automatically assign the most restrictive security model. However we can over ride this automatic security model assignment.

    Regards,
    Abhishek
  • 03-14-2006 09:39 PM In reply to

    • jcfiesta
    • Not Ranked
    • Joined on 03-15-2006
    • Philippines
    • Posts 3

    Re: SecurityException received when AD objects

    Hi Abhishek!

    How will I change the security settings I've given to the form?

    Thanks for your help.
  • 03-15-2006 01:11 AM In reply to

    Re: SecurityException received when AD objects

    Hi jcfiesta

    In the menu bar,go to
    Tools-->Form Options.

    In the Form Options dialog,select the "Security" tab

    Regards,
    Abhishek
  • 03-15-2006 11:29 PM In reply to

    • jcfiesta
    • Not Ranked
    • Joined on 03-15-2006
    • Philippines
    • Posts 3

    Re: SecurityException received when AD objects

    Hi again Abhishek!

    I tried your suggestion but I still receive an error. Hope you can help me. This is the error I receive.

    "InfoPath cannot grant the Full Trust security level when previewing unregistered forms. This form will be previewed using the Domains security level. Any object model calls that are permitted only in full trusted forms will fail.

    To test the form at the Full Trust security level, close the previewed form and then instaill in on you computer."

    Another problem is we don't the form installed on the client. I tried publishing the form in a SharePoint Forms Library but it still didn't work.

    Thanks in advance.
  • 03-16-2006 12:33 AM In reply to

    Re: SecurityException received when AD objects

    Hi jcfiesta

    To make a form Fully Trusted, u need to use either of the 2 methods
    1)Using Digital Certificates
    2)Using the Regform tool to install the form in the client machines.

    Check out the following links..

    Understanding Fully Trusted Forms
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ipsdk/html/ipsdkUnderstandingFullyTrustedForms_HV01073332.asp


  • 04-21-2006 07:44 AM In reply to

    • bashira
    • Not Ranked
    • Joined on 01-12-2006
    • United Kingdom
    • Posts 16

    Re: SecurityException received when AD objects

    jcfiesta

    I am working on a similar form, but would like to know how you have set it up to query active directory?

    Any chance i could see the code or form?

    Thanks
Page 1 of 1 (7 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.