473,395 Members | 1,972 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,395 software developers and data experts.

Windows Authentication - roles, etc

I have a new application I need to do here at work - - however, they want
several things I don't know about and I would like pointers toward the right
direction for learning.

Built on Windows authentication, and based on the person logged in, I need
to be able to find out the manager of that person. Also, if it's a manager,
I need to be able to get a list of anyone who is under that manager.

Is this possible (and how)?
May 7 '07 #1
5 1206
This might give you a pointer, but having never done itmyself, I don't
know... however, look at Active Directory. There is a lot of information can
be stored in active directory. However, if you must go for Windows, then you
need to build your own tree in a database of some sort.

Hope it is of use...

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"Elmo Watson" <ew@yahoo.nospam.comwrote in message
news:uK**************@TK2MSFTNGP06.phx.gbl...
>I have a new application I need to do here at work - - however, they want
several things I don't know about and I would like pointers toward the
right direction for learning.

Built on Windows authentication, and based on the person logged in, I need
to be able to find out the manager of that person. Also, if it's a
manager, I need to be able to get a list of anyone who is under that
manager.

Is this possible (and how)?

May 7 '07 #2
On May 7, 4:02 pm, "Elmo Watson" <e...@yahoo.nospam.comwrote:
Is this possible (and how)?
Contact your system administrator regarding this matter. In general,
each employee belongs to a single department. If manager has any
special property (for example, memberOf=Management, or a title saying
"Manager blabla", etc.) you can find such user using that property and
department name...

May 7 '07 #3
Can you point me to some ASP.Net Active Directory tutorials in this area?
"David" <da*****************@revilloc.REMOVETHIS.comwrot e in message
news:OG**************@TK2MSFTNGP02.phx.gbl...
This might give you a pointer, but having never done itmyself, I don't
know... however, look at Active Directory. There is a lot of information
can be stored in active directory. However, if you must go for Windows,
then you need to build your own tree in a database of some sort.

Hope it is of use...

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"Elmo Watson" <ew@yahoo.nospam.comwrote in message
news:uK**************@TK2MSFTNGP06.phx.gbl...
>>I have a new application I need to do here at work - - however, they want
several things I don't know about and I would like pointers toward the
right direction for learning.

Built on Windows authentication, and based on the person logged in, I
need to be able to find out the manager of that person. Also, if it's a
manager, I need to be able to get a list of anyone who is under that
manager.

Is this possible (and how)?


May 7 '07 #4
Look at the manager and directReports AD attributes, if AD being used for
org. hierarchy.

There are many tutorials on using AD from ASP.NET. One is here:
http://www.15seconds.com/issue/020730.htm

"Elmo Watson" wrote:
I have a new application I need to do here at work - - however, they want
several things I don't know about and I would like pointers toward the right
direction for learning.

Built on Windows authentication, and based on the person logged in, I need
to be able to find out the manager of that person. Also, if it's a manager,
I need to be able to get a list of anyone who is under that manager.

Is this possible (and how)?
May 7 '07 #5
This might get you started. I don't have any specific information. Certainly
not the type of information that you are looking for.
DataSet DS = new DataSet();
System.DirectoryServices.DirectoryEntry entryPC = new
System.DirectoryServices.DirectoryEntry();

DataTable UserList = new DataTable();
DataTable GroupList = new DataTable();
UserList.MinimumCapacity = 10;
UserList.CaseSensitive = false;
GroupList.MinimumCapacity = 10;
GroupList.CaseSensitive = false;

UserList.Columns.Add(new DataColumn("Name",
System.Type.GetType("System.String")));
GroupList.Columns.Add(new DataColumn("Name",
System.Type.GetType("System.String")));

foreach(System.DirectoryServices.DirectoryEntry child in
entryPC.Children)
{
DataRow userRow;

switch (child.SchemaClassName)
{
case "User" :
//users.Nodes.Add(newNode);
userRow = UserList.NewRow();
userRow["Name"] = child.Name;
UserList.Rows.Add(userRow);
UserList.AcceptChanges();
break;
case "Group" :
userRow = GroupList.NewRow();
userRow["Name"] = child.Name;
GroupList.Rows.Add(userRow);
GroupList.AcceptChanges();
//groups.Nodes.Add(newNode);
break;
case "Service" :
//services.Nodes.Add(newNode);
break;
}
//AddPathAndProperties(newNode, child);

//InfoLabel.Text += "<b>" + child.SchemaClassName + "</b><br/>";
}

DS.Tables.Add(UserList);
DS.Tables.Add(GroupList);


--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"Elmo Watson" <ew@yahoo.nospam.comwrote in message
news:uM**************@TK2MSFTNGP04.phx.gbl...
Can you point me to some ASP.Net Active Directory tutorials in this area?
"David" <da*****************@revilloc.REMOVETHIS.comwrot e in message
news:OG**************@TK2MSFTNGP02.phx.gbl...
>This might give you a pointer, but having never done itmyself, I don't
know... however, look at Active Directory. There is a lot of information
can be stored in active directory. However, if you must go for Windows,
then you need to build your own tree in a database of some sort.

Hope it is of use...

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"Elmo Watson" <ew@yahoo.nospam.comwrote in message
news:uK**************@TK2MSFTNGP06.phx.gbl...
>>>I have a new application I need to do here at work - - however, they want
several things I don't know about and I would like pointers toward the
right direction for learning.

Built on Windows authentication, and based on the person logged in, I
need to be able to find out the manager of that person. Also, if it's a
manager, I need to be able to get a list of anyone who is under that
manager.

Is this possible (and how)?



May 7 '07 #6

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

Similar topics

3
by: Nick | last post by:
I am working a new application...well actually a series of applications for my company. They want internal users to be able to go to a site and everything regarding security is transparent,...
4
by: Andrew | last post by:
Hey all, I would like to preface my question by stating I am still learning ASP.net and while I am confident in the basics and foundation, the more advanced stuff is still a challenge. Ok....
1
by: Eric | last post by:
I trying to setup an intranet based on windows NT groups or roles. I have used windows integrated authentication with impersonation first but this include to use a user to access the database. I...
3
by: Nick | last post by:
I am working a new application...well actually a series of applications for my company. They want internal users to be able to go to a site and everything regarding security is transparent,...
6
by: Matt Adamson | last post by:
Guys, I'm unsure how to use windows authentication in an intranet application. I'd like to user existing windows account to identify users however the issue I have is how to then add settings to...
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: 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?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.