<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1003259" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1003259</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/passing-userid-password-hardcoded-asp#comment-1014378</link>
    <description> &lt;p&gt;PJ,&lt;/p&gt;
&lt;p&gt;Glad you got it working. I didn&#039;t think it was possible just using ASP. Sounds like it was fun coding though &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
Dynamic Internet Solutions : &lt;a href=&quot;http://www.dids.com&quot; class=&quot;bb-url&quot;&gt;http://www.dids.com&lt;/a&gt;&lt;br /&gt;
UNIX and Windows NT Hosting&lt;/p&gt;
 </description>
     <pubDate>Thu, 01 Jul 1999 17:56:00 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1014378 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/passing-userid-password-hardcoded-asp#comment-1014377</link>
    <description> &lt;p&gt;FYI,&lt;/p&gt;
&lt;p&gt;I just finished this problem and it was possible. You have to make a VB component that runs on the server which calls the LOGONUSER property that takes a userid, password, and domain, that you pass from your ASP like so:&lt;/p&gt;
&lt;p&gt;Set objLogon = Server.CreateObject(&amp;quot;logon.class20&amp;quot;) &#039;Name of dll&lt;br /&gt;
objLogon.Logon &amp;quot;userid&amp;quot;, &amp;quot;password&amp;quot;, &amp;quot;domain&amp;quot;&lt;/p&gt;
&lt;p&gt;Do your work here and then:&lt;/p&gt;
&lt;p&gt;objLogon.Logoff&lt;br /&gt;
Set objLogon = Nothing&lt;/p&gt;
&lt;p&gt;The VB component itself was a bit harder, it involved a couple lines in a module to declare API functions and about a page of code in the class module to handle impersonation and reverting back to the original user.&lt;/p&gt;
&lt;p&gt;Just thought I&#039;d let you guys know it is possible. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;)&lt;/p&gt;
&lt;p&gt;Later,&lt;br /&gt;
PJ&lt;/p&gt;
 </description>
     <pubDate>Tue, 29 Jun 1999 23:41:00 +0000</pubDate>
 <dc:creator>PJ</dc:creator>
 <guid isPermaLink="false">comment 1014377 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/passing-userid-password-hardcoded-asp#comment-1014375</link>
    <description> &lt;p&gt;Guys,&lt;/p&gt;
&lt;p&gt;The more I think about it, I don&#039;t think this is possible. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/sad.png&quot; title=&quot;Sad&quot; alt=&quot;Sad&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Even if I used some of the features of Windows Scripting Host I don&#039;t think I could do it.&lt;/p&gt;
&lt;p&gt;It looks like the the only way is going to be to develop a custom VB component that runs on the server which handles all the impersonation stuff (not sure how yet, but I&#039;m pretty sure it&#039;s possible).&lt;/p&gt;
&lt;p&gt;If you still think its possible let me know, but don&#039;t wrack your brain over this since me thinks its impossible with just ASP.&lt;/p&gt;
&lt;p&gt;Later,&lt;br /&gt;
PJ&lt;/p&gt;
 </description>
     <pubDate>Wed, 23 Jun 1999 23:38:00 +0000</pubDate>
 <dc:creator>PJ</dc:creator>
 <guid isPermaLink="false">comment 1014375 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/passing-userid-password-hardcoded-asp#comment-1014376</link>
    <description> &lt;p&gt;PJ,&lt;/p&gt;
&lt;p&gt;I am sorry I haven&#039;t replied earlier but I have been letting this thing rack my brain! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt; ... I don&#039;t think it would be possible using just ASP either but some day if I ever have some spare time, I might see if I can put something together... In the mean time, good luck!&lt;/p&gt;
&lt;p&gt;----------&lt;br /&gt;
Dynamic Internet Solutions : &lt;a href=&quot;http://www.dids.com&quot; class=&quot;bb-url&quot;&gt;http://www.dids.com&lt;/a&gt;&lt;br /&gt;
UNIX and Windows NT Hosting&lt;/p&gt;
 </description>
     <pubDate>Wed, 23 Jun 1999 17:08:00 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1014376 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/passing-userid-password-hardcoded-asp#comment-1014372</link>
    <description> &lt;p&gt;I was wondering if it would be possible to pass a UserID and password with an ASP file? &lt;/p&gt;
&lt;p&gt;I want to create a directory that has read/write access for a single UserID and then have users access that directory using an ASP that passes the above UserID and password that has access for that directory. That way the directory would still be protected from general use.&lt;/p&gt;
&lt;p&gt;This problem arises when I use the Server.CreateObject to create an .htm file on the server. Even though the server is creating the object it still depends on the users authority, so if they only have read access the ASP will fail on permission denied. The alternative of just having a directory that everyone has read/write access to is to much of a security risk.&lt;/p&gt;
&lt;p&gt;Any suggestions would be appreciated.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;
PJ&lt;/p&gt;
 </description>
     <pubDate>Wed, 23 Jun 1999 03:40:00 +0000</pubDate>
 <dc:creator>PJ</dc:creator>
 <guid isPermaLink="false">comment 1014372 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/passing-userid-password-hardcoded-asp#comment-1014374</link>
    <description> &lt;p&gt;Chad,&lt;/p&gt;
&lt;p&gt;Sorry about the confusion, it&#039;s a hard situation to describe. &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Ok, lets try this again:&lt;/p&gt;
&lt;p&gt;Let&#039;s say I have a directory on my server named http:/test/cache. It is only accessible by one user, userid = Admin, password = Admin. Admin has full read/write access to that directory. What I would like to do is, for lack of a better word, impersonate the Admin userid so that any user who enters that directory through my ASP would trick the server into thinking that they were using the Admin id.&lt;/p&gt;
&lt;p&gt;This would let me take advantage of the Server.CreateObject object without worrying about giving everyone read/write access to that directory.&lt;/p&gt;
&lt;p&gt;I kind&#039;ve liked your idea about the server creating a folder that is only accessible by that user, but the problem with that is I still have to leave the master directory read/writeable to everyone.&lt;/p&gt;
&lt;p&gt;I hope that&#039;s a bit clearer, you don&#039;t want me to start drawing pictures! &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;PJ&lt;/p&gt;
 </description>
     <pubDate>Tue, 22 Jun 1999 18:38:00 +0000</pubDate>
 <dc:creator>PJ</dc:creator>
 <guid isPermaLink="false">comment 1014374 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
