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)?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.com> wrote in message
news:uKrLRBLkHHA.3996@.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)?
>
On May 7, 4:02 pm, "Elmo Watson" <e...@.yahoo.nospam.com> wrote:
> 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...
Can you point me to some ASP.Net Active Directory tutorials in this area?
"David" <david.colliver.NEWS@.revilloc.REMOVETHIS.com> wrote in message
news:OGUM5OLkHHA.4188@.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.com> wrote in message
> news:uKrLRBLkHHA.3996@.TK2MSFTNGP06.phx.gbl...
>
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 rig
ht
> 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)?
>
>
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.com> wrote in message
news:uMicPfLkHHA.3452@.TK2MSFTNGP04.phx.gbl...
> Can you point me to some ASP.Net Active Directory tutorials in this area?
>
> "David" <david.colliver.NEWS@.revilloc.REMOVETHIS.com> wrote in message
> news:OGUM5OLkHHA.4188@.TK2MSFTNGP02.phx.gbl...
>
Monday, March 26, 2012
Windows Authentication - roles, etc
Labels:
application,
asp,
authentication,
net,
pointers,
roles,
toward,
wantseveral,
windows
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment