<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: who can test my code? security problem?</title><link>https://www.infopathdev.com:443/forums/thread/13673.aspx</link><pubDate>Sat, 01 Oct 2005 07:37:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13673</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13673.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13673</wfw:commentRss><description>Hi Mephisto,&lt;br /&gt;Sorry, but I am clueless about your problem.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>Re: who can test my code? security problem?</title><link>https://www.infopathdev.com:443/forums/thread/13672.aspx</link><pubDate>Fri, 30 Sep 2005 06:41:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13672</guid><dc:creator>mephisto</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13672.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13672</wfw:commentRss><description>hello Patrick Halstead,&lt;br /&gt;&lt;br /&gt;sorry, there is no error ... the users get a alert-window with my own text. this is specified in the "catch"-part of the code .... now if i think about, there is maybe a wrong code?????</description></item><item><title>Re: who can test my code? security problem?</title><link>https://www.infopathdev.com:443/forums/thread/13671.aspx</link><pubDate>Fri, 30 Sep 2005 06:12:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13671</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13671.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13671</wfw:commentRss><description>Hey Mephisto,&lt;br /&gt;Can you put the error in here again? I don't remember the previous thread.&lt;br /&gt;&lt;br /&gt;Patrick Halstead [InfoPath MVP]&lt;br /&gt;InfoPathDev</description></item><item><title>who can test my code? security problem?</title><link>https://www.infopathdev.com:443/forums/thread/12590.aspx</link><pubDate>Thu, 29 Sep 2005 12:15:44 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12590</guid><dc:creator>mephisto</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12590.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12590</wfw:commentRss><description>hello,&lt;br /&gt;&lt;br /&gt;i have problems with this code:&lt;br /&gt;&lt;br /&gt;IXMLDOMNode BenutzerName = thisXDocument.DOM.selectSingleNode("my:meineFelder/my:Kopf/my:Name");&lt;br /&gt;IXMLDOMNode BenutzerAbteilung = thisXDocument.DOM.selectSingleNode("my:meineFelder/my:Kopf/my:Abteilung");&lt;br /&gt;&lt;br /&gt;string m_strLDAPPath	= "LDAP://DC=class,DC=sps";&lt;br /&gt;&lt;br /&gt;if(BenutzerName.text == "")&lt;br /&gt;{&lt;br /&gt;BenutzerName.text = System.Environment.UserName;&lt;br /&gt;try&lt;br /&gt;{&lt;br /&gt;DirectoryEntry de = new DirectoryEntry(m_strLDAPPath,"Administrator","Password", AuthenticationTypes.Secure | AuthenticationTypes.ServerBind);&lt;br /&gt;DirectorySearcher src = new DirectorySearcher("(Name=" + BenutzerName.text + ")");&lt;br /&gt;src.SearchRoot = de;&lt;br /&gt;src.SearchScope = System.DirectoryServices.SearchScope.Subtree;&lt;br /&gt;&lt;br /&gt;SearchResult res = src.FindOne();&lt;br /&gt;BenutzerAbteilung.text	= res.Properties["department"][0].ToString();&lt;br /&gt;EmailAntragsteller.text	= res.Properties["mail"][0].ToString();&lt;br /&gt;}&lt;br /&gt;catch&lt;br /&gt;{&lt;br /&gt;thisXDocument.UI.Alert("Laden der Abteilung fehlgeschlagen!");&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;return;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;i wrote in an other thread that this doesen`t function. now i hope someone can help me with the code i wrote. it loads in the onload function and works fine with the administrator. i can get the active-user-name by System.Environment.UserName and with the as filter, i can get the department and mail from the admin. but if a normal user trys to load the form, the form loads and the user must wait a moment (the admin don`t need to wait). after some seconds the user gets the error i wrote in the catch-case. i don`t know what the problem is. the form has full trust and is based in a sharepoint-library. is this a security problem from the other user? if i try with a other user who has also admin-rights, the problem is the same ... so i thing it`s no trust problem ...... ???????&lt;br /&gt;&lt;br /&gt;who can help me?</description></item></channel></rss>