TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
omessian
NA
6
0
Active Directory & DirectoryEntry object issue
May 23 2005 5:41 PM
hi, i have an intranet web app set up with Integrated Windows authentication, and my web.config file is flagged for impersonation as well. so far so good when grabbing the current user with Context.User.Identity.Name (returns myDomain\currentUser). anyway, i'm then trying to check if this user is a member of a particular Active Directory security group in the domain using a DirectoryEntry object. my test code worked just fine as a console app, however, i'm getting an exception of type "unknown error" when trying this inside the web app. the error occurs at the point when i try to read my DirectoryEntry.Properties["member"].xxx values. the aspnet worker process is running under the default ASPNET account, but since i've set up the app to use impersonation, i was under the impression that the request for Active Directory info would be handled under the context of the logged in user. i'm guessing the problem has to do with the fact the the ASPNET account doesn't have rights to read DirectoryEntry properties and such. any thoughts? go easy, i'm a total newb with security. many thanks in advance!!! mirirom
Reply
Answers (
1
)
update Date/Time in Access DB
good laptop for .NET development?