How To Perform NTLM authentication using IE or FF driver

481 views
Skip to first unread message

Rohit

unread,
Dec 29, 2009, 4:45:21 AM12/29/09
to webdriver
Hi All,

how to perform NTLM authentication when i use either IE or FF.

I went through the following discussion however none of them mentioned
how to perform NTLM when using other driver like IE or FF

http://groups.google.com/group/webdriver/browse_thread/thread/92d21622ce66d264/e233dea522978096?lnk=gst&q=NTLM#e233dea522978096

http://groups.google.com/group/webdriver/browse_thread/thread/c2261389c80c8498/96d4af00246db9cc?lnk=gst&q=NTLM#96d4af00246db9cc

Rohit

Simon Stewart

unread,
Dec 29, 2009, 8:26:47 AM12/29/09
to webd...@googlegroups.com
The short answer is that it's not possible ATM. We plan on adding the
ability to authenticate as a particular user at some point, but we're
working on other areas of the API first, so unless someone picks this
task up, it'll take a while until we get there.

Simon

> --
>
> You received this message because you are subscribed to the Google Groups "webdriver" group.
> To post to this group, send email to webd...@googlegroups.com.
> To unsubscribe from this group, send email to webdriver+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/webdriver?hl=en.
>
>
>

bill shelton

unread,
Dec 29, 2009, 9:35:29 AM12/29/09
to webdriver
The good news is that using the IE driver, NTLM challenge-response
will be performed automatically on behalf of the currently logged-in
user or possibly the NT user which starts the JVM running the tests?
The bad news is that you may need to test different logins, users, and
roles, which I suspect could be a bit messy.

Firefox is, of course, a different story.You can manually enable
automatic NTLM authentication via the about:config -> (filter == ntlm)
command and setting the "network.automatic-ntlm-auth.trusted-uris" and
"network.ntlm.send-lm-response" properties. These alter the profile by
changing the prefs.js file. I wonder if these could be set using the
org.openqa.selenium.firefox.FirefoxProfile.setPreference(...)?

best,
bill

On Dec 29, 8:26 am, Simon Stewart <simon.m.stew...@gmail.com> wrote:
> The short answer is that it's not possible ATM. We plan on adding the
> ability to authenticate as a particular user at some point, but we're
> working on other areas of the API first, so unless someone picks this
> task up, it'll take a while until we get there.
>
> Simon
>
>
>
> On Tue, Dec 29, 2009 at 9:45 AM, Rohit <rohit.mau...@gmail.com> wrote:
> > Hi All,
>
> > how to perform NTLM authentication when i use either IE or FF.
>
> > I went through the following discussion however none of them mentioned
> > how to perform NTLM when using other driver like IE or FF
>

> >http://groups.google.com/group/webdriver/browse_thread/thread/92d2162...
>
> >http://groups.google.com/group/webdriver/browse_thread/thread/c226138...

Simon Stewart

unread,
Dec 29, 2009, 12:19:48 PM12/29/09
to webd...@googlegroups.com
Setting a value using "FirefoxProfile.setPreference()" is the same as
going to "about:config" and modifying the value there.

Regards,

Simon

bill shelton

unread,
Dec 30, 2009, 11:37:23 AM12/30/09
to webdriver
Excellent, Simon. Thanks!

Then it should be possible to implement some form of automatic NTLM
authentication with the Firefox driver for the currently logged in
user (or the user who starts the JVM); e.g.,

FirefoxProfile.setPreference("network.automatic-ntlm-
auth.trusteduris", "server1,server2,serverN,...");
FirefoxProfile.setPreference("network.ntlm.send-lm-response", true)


bill

Reply all
Reply to author
Forward
0 new messages