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
shrikant kesharwani
NA
11
0
How can i differentiate the userid if same userid is available in two different OU within same domain?.
Mar 24 2012 2:52 PM
Hi All,
I am using ADFS ,Active Directory and asp.net based relying party application.
In my active directory structure there are two OU (customer and CustomerSupport).
I am creating a user in customer OU through C# code and using UPN field as user logon name.
And Creating same UserId from backend in customerSupport OU.
Now I am using below code in my relying party application for retrieving the user from OU's.
public
static
string
GetADPath(
string
userType)
{
if
(_logger.IsDebugEnabled)
_logger.Debug(
"ADHelper:Enter GetADPath"
);
// Local variables
string
adPath =
string
.Empty;
try
{
if
(userType.Equals(Constants.UserType.Customer))
adPath = Utility.GetConfigSetting(Constants.AppSettings.CustomersOUPath);
else
if
(userType.Equals(Constants.UserType.CustomerSupport))
adPath = Utility.GetConfigSetting(Constants.AppSettings.CustomersSupportOUPath);
if
(_logger.IsDebugEnabled)
_logger.Debug(
"ADHelper:Exit GetADPath"
);
return
adPath;
}
catch
(
ApplicationException
appex)
{
if
(_logger.IsErrorEnabled)
_logger.Error(
"ADHelper:Exception occurred in GetADPath. Message: "
, appex);
throw
appex;
}
catch
(
Exception
ex)
{
if
(_logger.IsErrorEnabled)
_logger.Error(
"ADHelper:Exception occurred in GetADPath. Message: "
, ex);
throw
ex;
}
}
· Now my problem is if the same user-Id and password is created on both OU's.
· Then CustomerSupport OU user never get login in relying party application its throw rights error.
· Even I have provided all admin rights in the CustomerSupport OU user's.
But each time my application check Customer OU's user (normal user) and user can login other application as normal user.
When I changed the password of CustomerSupport OU user's then it's throw " invalid Id password error".
And user never login in the Relying Party application.
Please any one can suggest how can I handle this situation.
Thanks in Advance.
Reply
Answers (
0
)
Read Excel data
Is there any policy settings required for creating unique User-Id in active directory?.