all groups > dotnet security > october 2006 >
You're in the

dotnet security

group:

Can I retrieve Unix box OS info using DirectoryEntry Property OS?


Can I retrieve Unix box OS info using DirectoryEntry Property OS? Pucca
10/27/2006 8:53:02 AM
dotnet security:
Hi, Using the following code, will it work for the Unix box that's on the
network's domain? Thanks.


switch (child.Parent.Name)
{
case "CN=Computers"://Computer
if (!createLVHeader)
{
CreateComputerListView();
createLVHeader = true;
}
if
(child.Properties["operatingSystem"].Value != null)
os =
child.Properties["operatingSystem"].Value.ToString();
else
os = "";
if
(child.Properties["operatingSystemVersion"].Value != null)
osVersion =
child.Properties["operatingSystemVersion"].Value.ToString();
else
osVersion = "";
//if
(child.Properties["description"].Value.ToString() != null)
newLvNode =
NodeDetail.Items.Add
(new ListViewItem(new
string[] { commonName, os, osVersion},2));
//else
//
NodeDetail.Items.Add("Name", commonName, 2);
//newLvNode.Tag =
(object)(child.Properties["cn"]);
newLvNode.Tag =
(object)(child.Properties["cn"].Value.ToString());
newLvNode.Name = objSid;
globalChild.Dispose();

break;
--
Re: Can I retrieve Unix box OS info using DirectoryEntry Property Pucca
10/27/2006 9:45:02 AM
Tool like ldp.exe?
--
Thanks.


[quoted text, click to view]
Re: Can I retrieve Unix box OS info using DirectoryEntry Property OS? Joe Kaplan
10/27/2006 11:09:58 AM
I'd check and make sure that the computer objects in the domain that
correspond to these machines actually have that data in them using an LDAP
query tool first, but if they do, it should work fine.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
[quoted text, click to view]

Re: Can I retrieve Unix box OS info using DirectoryEntry Property Pucca
10/27/2006 11:12:02 AM
Thank you very much.
--
Thanks.


[quoted text, click to view]
Re: Can I retrieve Unix box OS info using DirectoryEntry Property Joe Kaplan
10/27/2006 11:46:41 AM
That's what I use, but any LDAP query tool you like will work fine.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
[quoted text, click to view]

AddThis Social Bookmark Button