473,378 Members | 1,396 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Double Hop Issues

I have a website that creates new user accounts in AD, and mailbox enables
them in Exchange. Everything worked fine back when I was using basic
authentication.

When I switched to Forms Based Authentication (authenticating against AD
still) I have problems adding users to groups, and I have problems creating
the Exchange mailbox. I can still create the mailbox just fine.

I'm pretty certain this is a double hop issue. So I tried the following.
On the computer account for the web server I enabled delegation. I selected
the radio button "Trust this computer for delegation to any services
(Kerberos Only)", but that doesn't seem to fix it.

Any idea what's going on here?

--

Steve Evans
Email Services
SDSU Foundation
(619) 594-0708

Nov 18 '05 #1
2 1576
Forms Authentication isn't going to impersonate your logged on user because Forms Authentication doesn't directly authenticate these users against active directory. You've created the code to check AD, and then told Forms Authentication if they are validated or not.

If you need to impersonate an actual user, take a look at the code found on this page. http://support.microsoft.com/default...b;en-us;306158 You should be able to easily do it, since you had their username/password at one point in the application. You will have to keep track of their password somehow, perhaps in a FormsAuthenticationTicket, since I doubt you are running this code right after they log in.

Hope this helps,
--Michael

"- Steve -" <se****@foundation.sdsu.edu> wrote in message news:eQ**************@TK2MSFTNGP10.phx.gbl...
I have a website that creates new user accounts in AD, and mailbox enables
them in Exchange. Everything worked fine back when I was using basic
authentication.

When I switched to Forms Based Authentication (authenticating against AD
still) I have problems adding users to groups, and I have problems creating
the Exchange mailbox. I can still create the mailbox just fine.

I'm pretty certain this is a double hop issue. So I tried the following.
On the computer account for the web server I enabled delegation. I selected
the radio button "Trust this computer for delegation to any services
(Kerberos Only)", but that doesn't seem to fix it.

Any idea what's going on here?

--

Steve Evans
Email Services
SDSU Foundation
(619) 594-0708


Nov 18 '05 #2
Yes I'm already impersonating the user at necessary times. That's why I'm
able to create the AD account. But then it uses WMI against the Exchange
server to create the mailbox. (I believe I'm correct on that)

Shouldn't allowing the IIS boxes computer account to delegate get this to
work?

--

Steve Evans
Email Services
SDSU Foundation
(619) 594-0708
"Raterus" <ra*****@spam.org> wrote in message
news:e$**************@TK2MSFTNGP09.phx.gbl...
Forms Authentication isn't going to impersonate your logged on user because
Forms Authentication doesn't directly authenticate these users against
active directory. You've created the code to check AD, and then told Forms
Authentication if they are validated or not.

If you need to impersonate an actual user, take a look at the code found on
this page. http://support.microsoft.com/default...b;en-us;306158
You should be able to easily do it, since you had their username/password at
one point in the application. You will have to keep track of their password
somehow, perhaps in a FormsAuthenticationTicket, since I doubt you are
running this code right after they log in.

Hope this helps,
--Michael

"- Steve -" <se****@foundation.sdsu.edu> wrote in message
news:eQ**************@TK2MSFTNGP10.phx.gbl...
I have a website that creates new user accounts in AD, and mailbox enables
them in Exchange. Everything worked fine back when I was using basic
authentication.

When I switched to Forms Based Authentication (authenticating against AD
still) I have problems adding users to groups, and I have problems
creating
the Exchange mailbox. I can still create the mailbox just fine.

I'm pretty certain this is a double hop issue. So I tried the following.
On the computer account for the web server I enabled delegation. I
selected
the radio button "Trust this computer for delegation to any services
(Kerberos Only)", but that doesn't seem to fix it.

Any idea what's going on here?

--

Steve Evans
Email Services
SDSU Foundation
(619) 594-0708

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: sandwich_eater | last post by:
using g++ in cygwin... sv.cpp:13: warning: passing `double' for converting 1 of `int abs(int)' extract... #include <stdlib.h> #include <Math.h> double pythag(double a, double b)
24
by: deko | last post by:
I'm trying to log error messages and sometimes (no telling when or where) the message contains a string with double quotes. Is there a way get the query to insert the string with the double...
7
by: gar | last post by:
Hi, I need to replace all the double quotes (") in a textbox with single quotes ('). I used this code text= Replace(text, """", "'" This works fine (for normal double quotes).The problem...
9
by: Greg Buchholz | last post by:
/* While writing a C++ version of the Mandelbrot benchmark over at the "The Great Computer Language Shootout"... http://shootout.alioth.debian.org/gp4/benchmark.php?test=mandelbrot&lang=all ...
67
by: lcw1964 | last post by:
This may be in the category of bush-league rudimentary, but I am quite perplexed on this and diligent Googling has not provided me with a clear straight answer--perhaps I don't know how to ask the...
52
by: lcw1964 | last post by:
Greetings, all, I am trying to port a little bit of math code to gcc, that in the original version used the long double version of several functions (in particular, atanl, fabsl, and expl). I...
11
by: Ole Nielsby | last post by:
First, sorry if this is off-topic, not strictly being a C++ issue. I could not find a ng on numerics or serialization and I figure this ng is the closest I can get. Now the question: I want...
3
by: =?Utf-8?B?U2NvdHQ=?= | last post by:
Hello, I would like to convert a double to a string and have the resulting string contain all of the original values after the decimal place. Currently, the problem that I am having is that the...
7
by: =?Utf-8?B?TWlrZSBMb2dhbg==?= | last post by:
My environment. .Net 2.0 VS2k5 SP1, IE6 (6.0.2900.2180) I have a web content page. The page will post back twice if I am running in debug mode. However if I run through the breakpoints fast...
2
by: yogi_bear_79 | last post by:
I have a double of unknown length that I need to split at the decimal. I thought I would convert it either to a string or a char. char seems to be the best since it easily lends itself to...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.