<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Browser Forms</title><link>https://www.infopathdev.com:443/forums/40.aspx</link><description>For browser form specific questions</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: AD in Forms Services</title><link>https://www.infopathdev.com:443/forums/thread/48890.aspx</link><pubDate>Wed, 11 Nov 2009 07:46:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48890</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48890.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=48890</wfw:commentRss><description>&lt;p&gt;Yeah, it&amp;#39;s easy to get the manager and the manager&amp;#39;s manager, but if you really have some very complicated deep queries you&amp;#39;re doing, then maybe you need the code.&amp;nbsp; Since the folks at Qdabra have their own Active Directory Web Service (again, far better to use a web service than direct code) that they sell and is very effective, I don&amp;#39;t think it&amp;#39;s likely their devs will help you debug your own version of it.&amp;nbsp; There&amp;#39;s the free, built-in web service that safely touches the user profile database instead of touching AD directly, and then there&amp;#39;s the already-built and proven ADWS by Qdabra that is cheap to buy (probably less than the labor put into your code).&amp;nbsp; I think those are better choices, but at the same time, I apologize for not being able to help with your code - I do all codeless solutions with InfoPath on my end.&lt;/p&gt;</description></item><item><title>Re: AD in Forms Services</title><link>https://www.infopathdev.com:443/forums/thread/48887.aspx</link><pubDate>Wed, 11 Nov 2009 05:30:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48887</guid><dc:creator>chhaya singh</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48887.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=48887</wfw:commentRss><description>&lt;p&gt;witzer&lt;/p&gt;
&lt;p&gt;I would say it will be better if you use built in web service. you can also retreive&amp;nbsp;your manager&amp;#39;s manager. I think below url can help you. This article is by&amp;nbsp;warrtalon and its amazing. It has helped me, hope the&amp;nbsp;same for you.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="http://claytoncobb.wordpress.com/2009/06/21/userprofileservice-extended/"&gt;http://claytoncobb.wordpress.com/2009/06/21/userprofileservice-extended/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: AD in Forms Services</title><link>https://www.infopathdev.com:443/forums/thread/48877.aspx</link><pubDate>Tue, 10 Nov 2009 19:41:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48877</guid><dc:creator>witzer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48877.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=48877</wfw:commentRss><description>&lt;p&gt;Sure thing and thanks for the reply.&amp;nbsp; It&amp;#39;s because I&amp;#39;ll be&amp;nbsp;querying AD a lot and the built in web service wouldn&amp;#39;t be able to do some of the things I need to do.&amp;nbsp; For instance, I&amp;nbsp;need to&amp;nbsp;retrieve the logged on user&amp;#39;s manager, and the managers manager, all the way up the hierarchy, for instance, and return all those managers.&amp;nbsp; A lot of things like this where&amp;nbsp;I don&amp;#39;t think I&amp;#39;d be able to do it&amp;nbsp;easily with the built in web service, but the code is already written&amp;nbsp;and tested to put in the form.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: AD in Forms Services</title><link>https://www.infopathdev.com:443/forums/thread/48876.aspx</link><pubDate>Tue, 10 Nov 2009 19:22:46 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48876</guid><dc:creator>warrtalon</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48876.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=48876</wfw:commentRss><description>&lt;p&gt;Do you mind sharing why you prefer to put code directly in the form and use Full Trust (not preferable) as opposed to using a built-in web service that requires no code, no administrative approval, and only domain trust?&lt;/p&gt;</description></item><item><title>AD in Forms Services</title><link>https://www.infopathdev.com:443/forums/thread/48875.aspx</link><pubDate>Tue, 10 Nov 2009 19:11:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:48875</guid><dc:creator>witzer</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/48875.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=40&amp;PostID=48875</wfw:commentRss><description>&lt;p&gt;I&amp;#39;ve read enough about using the&amp;nbsp;forms services to use the built in web service to get the current user, etc.&amp;nbsp; However, I dont want to go that route, nor do I want to call any web service.&lt;/p&gt;
&lt;p&gt;I just want to put the code in the form.&amp;nbsp; Everytime I do so though, it bombs out.&amp;nbsp; The code works in&amp;nbsp;Web Apps. I create and even when I debug the code, but once I DEPLOY it, it always throws exceptions when I run it using forms services???&amp;nbsp;&amp;nbsp;Could it be a security issue?&amp;nbsp; I am&amp;nbsp;giving the form&amp;nbsp;FULL TRUST so I doubt it.&amp;nbsp; I could throw the code in a web service, but don&amp;#39;t want to.&amp;nbsp; Code is fine - but it is below.&amp;nbsp; Anyone have any ideas??&lt;/p&gt;
&lt;p&gt;Thanks,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font size="2"&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;private&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;[] GetRequester()&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;{&lt;/p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DirectoryEntry&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; entry;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DirectorySearcher&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; myS;&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;[] props = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;[3];&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DirectoryEntry&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; de;&lt;/p&gt;entry = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DirectoryEntry&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;....&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;myS = &lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;new&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;DirectorySearcher&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;(entry);&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;string&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; strUserName = System.&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;Environment&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.UserName;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;myS.Filter = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;(&amp;amp;(ObjectClass=user)(SAMAccountName=&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + strUserName + &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;))&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;SearchResult&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; sc = myS.FindOne();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;de = sc.GetDirectoryEntry();&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//user&amp;#39;s display name&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;try&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;props[0] = de.Properties[&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;displayName&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].Value.ToString().ToUpper();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;catch&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;props[0] = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;try&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//extAtt1 = Business Area&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;props[1] = de.Properties[&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;extensionAttribute1&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].Value.ToString();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;catch&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;props[1] = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;try&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#008000" size="2"&gt;&lt;font color="#008000" size="2"&gt;//extAtt2 = Vendor Number&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;props[2] = de.Properties[&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;extensionAttribute2&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;].Value.ToString();&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;catch&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;
&lt;p&gt;{&lt;/p&gt;props[2] = &lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;&lt;/font&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;return&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; props;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; 
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;&lt;/font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>