Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is Active Directory? What is the namespace used to
access the Microsoft Active Directories? What are ADSI
Directories?



What is Active Directory? What is the namespace used to access the Microsoft Active Directories? Wh..

Answer / velsukumar

An active directory is a directory structure used on
Microsoft Windows based computers and servers to store
information and data about networks and domains. It is
primarily used for online information and was originally
created in 1996 and first used with Windows 2000.

An active directory (sometimes referred to as an AD) does a
variety of functions including the ability to provide
information on objects, helps organize these objects for
easy retrieval and access, allows access by end users and
administrators and allows the administrator to set security
up for the directory.

An active directory can be defined as a hierarchical
structure and this structure is usually broken up into three
main categories, the resources which might include hardware
such as printers, services for end users such as web email
servers and objects which are the main functions of the
domain and network.

It is interesting to note the framework for the objects.
Remember that an object can be a piece of hardware such as a
printer, end user or security settings set by the
administrator. These objects can hold other objects within
their file structure. All objects have an ID, usually an
object name (folder name). In addition to these objects
being able to hold other objects, every object has its own
attributes which allows it to be characterized by the
information which it contains. Most IT professionals call
these setting or characterizations schemas.

Depending on the type of schema created for a folder, will
ultimately determine how these objects are used. For
instance, some objects with certain schemas can not be
deleted, they can only be deactivated. Others types of
schemas with certain attributes can be deleted entirely. For
instance, a user object can be deleted, but the
administrator object can not be deleted.

When understanding active directories, it is important to
know the framework that objects can be viewed at. In fact,
an active directory can be viewed at either one of three
levels, these levels are called forests, trees or domains.
The highest structure is called the forest because you can
see all objects included within the active directory.

Within the Forest structure are trees, these structures
usually hold one or more domains, going further down the
structure of an active directory are single domains. To put
the forest, trees and domains into perspective, consider the
following example.

A large organization has many dozens of users and processes.
The forest might be the entire network of end users and
specific computers at a set location. Within this forest
directory are now trees that hold information on specific
objects such as domain controllers, program data, system,
etc. Within these objects are even more objects which can
then be controlled and categorized.




using System.Security.Principal;


get the info from domain use this code :

private void Connect(string[] temp)
{

//Get the strings from Array
str=temp;

//Pass Connet info to DirextoryEntry object:
string stra ="LDAP://"+str.GetValue(0).ToString();
string strb = str.GetValue(1).ToString();
string strc = str.GetValue(2).ToString();
//Base = new
DirectoryEntry("LDAP://"+str.GetValue(0).ToString(),str.GetValue(1).ToString(),str.GetValue(2).ToString());





Base = new
DirectoryEntry("LDAP://"+str.GetValue(0).ToString());
DirectorySearcher bUser = new DirectorySearcher(Base);
bUser.Filter ="(&(objectClass=user)(sAMAccountName=281498))";
SearchResult sRes = bUser.FindOne();
if(sRes != null)
{
DirectoryEntry sstr = sRes.GetDirectoryEntry();

string s = sstr.Name ;
string m = sstr.Properties["mail"].Value.ToString();
string m1 =
sstr.Properties["sAMAccountName"].Value.ToString();
string m2 = sstr.Properties["cn"].Value.ToString();
string m3= sstr.Properties["name"].Value.ToString();

MessageBox.Show(m);
}
}

if u have any doubt feel free contact me :
honeysukumar@yhaoo.com

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Dot Net General Interview Questions

Should I implement finalize on my class? Should I implement idisposable?

0 Answers  


What are the new thee features of com+ services, which are not there in com (mts)?

0 Answers  


What's the use of system.diagnostics.process class in .net?

0 Answers  


What are the important components of .net?

0 Answers  


How do you trigger the paint event in system.drawing?

0 Answers  


Explain what are the deferred execution and the immediate execution in linq?

0 Answers  


What is MSIL code ?

3 Answers   TCS,


i had attended to infosys interview on 17th april 2010...on .net..3+ experience for Technology Analyst .. to my knowledge i did well in technical and hr whether i loose the interview or still processing is taking place..am confused please. what accuatly would be happend?

0 Answers  


Explain how do assemblies find each other?

0 Answers  


What is iis? Have you used it?

0 Answers  


What is cyclomatic complexity and why is it important?

0 Answers  


Which two properties are on every validation control?

7 Answers   Siebel Systems,


Categories