active-directory

Login and Logout AD with C#

Hi, How can i login without logout from current user to another Active Directory user with C#. ; 1-Getting new user's access 2- doing my work and than logout with c# same way. For example i am a user at blabla.com domain.I have logged in a Power User.But i need Admin Rights for something so i need to logout and change user to Administ...

.NET Third Part Active Directory APIs?

Was wondering if anyone had any recommendations on a .NET (preferebly 3.5) Active Directory API wrapper around the .NET libraries? Essentially, I'm looking for a class library that could be dropped into a project or even exposed in larger part of a company-wide framework that takes a lot of the hassle of writing your own. Also, ideally...

How can I login to Active Directory with C#?

How can I login to AD without logout from current user and get new logged user's rights. (OS: Windows XP) Note: Not to Modify AD or something like this.Only wanna to login with another user from C# and getting new login's permissions/rights. (I wanna use this rights not only in current thread but also whole explorer. Like deleting file...

Using C#, how do you check if a computer account is disabled in active directory?

How do you check if a computer account is disabled in Active Directory using C#/.NET ...

How to remove a server from Active Directory when the connection fails?

I have a server whose AD account got crazy; log on would take hours and not all DCs showed the computer account. Now it only boots if disconnected from the network. I am trying to remove it from the domain but get aa timeout or if it is connected I get an error message "A remote procedure call is already in progress for this thread". I d...

How to implement role based security using Dynamic Data and Active Directory?

What is the best way to implement security using active directory roles on an asp.net dynamic data site? I would like to restrict certain views (and the related links) to certain roles. i.e. user A can only view list actions for table x and user B can only view list actions for table y ...

Use windows authentication with ASP.Net AJAX

I'm working on my first application using ASP.Net with web services and I'm having an authentication issue. At least I think that's the issue. When I run the application locally in debug mode it works fine. It even works when I run it out of debug mode (through IIS) in IE 7. But when I have a coworker run it (from my IIS) on their box, ...

GetComputerObjectName analogue in .NET to get ID of self?

I used to call GetComputerObjectName(NameUniqueId, ...) to get an Active Directory ID of local machine. Trying to get same functionality in .NET, does it exist, or is p-invoke the best way to achieve this goal? ...

How to check exist ou in active directory with vb.net?

I try to integrate Human Resource DB to Active Directory. Once I use sql ,getting all person and department and then write to ad. but if a department built new how to check is exist or new in active directory,also person also computer. ...

What are the best practices for internal security standards in companies with large SAP investments?

I work in a large company, and I'm interested in best practices for internal security standards. We have a large ($500 million +) investment in SAP, and we also have .Net and a bit of JEE in our internal environment. I've found some documentation from MS and SAP, but it's outdated and not very specific. So far, it looks like we could e...

Aggregating LDAP/AD servers

Currently, we have a small group of users that are set-up on an Microsoft SBS machine, hence available under active directory. These users, as well as a bunch of others also have entries on a second LDAP server (openLDAP). This second server is used for authentication and access control for a few different things such as our internal t...

How can I overcome late binding in Active Directory search

I have a function that retrieves the fullname of a user based on user name and domain. This function runs in ASP.NET thread under an impersonated user. When I use Directory searcher on a remote AD branch, I believe I'm getting the SID number instead of the property (cannot verify it occurs on a different box). public string GetUserFullN...

Simple Active Directory Integration within application - what should the app store?

I'm starting on a project to allow an existing web application to use active directory for authentication but leaving authorization within the application. I want to start off simple so I was thinking a user would type their AD username/password into my existing login form, I would then do an ldap bind against the AD server to authentica...

ASP.Net Authenticate users from another trusted forest

Hi, I want to authenticate users from another (trusted) forest in my Asp.Net application. So far, i've got this in my web.config: <?xml version="1.0"?> <configuration> <appSettings/> <connectionStrings/> <system.web> <compilation debug="true" /> <authentication mode="Windows" /> <authorization> <deny users="?"/> ...

Ruby LDAP and Active Directory

Using Ruby LDAP running on Linux, I can create a new Active Directory user account without a problem. Now I want to be rename a user account username. When I try to change the sAMAccountName, it doesn't work. Is it possible to change an AD user account using Ruby LDAP? If so, how? ...

How to get the current user's Active Directory details in C#

I am working on an C# and ASP.Net application, that uses Windows Authentication. i.e. in Web.config: <system.web> <authentication mode="Windows" /> </system.web> I want to get details for the current user (full name, email address, etc) from Active Directory. I can get their pre Windows 2000 user login name (eg: SOMEDOMAIN\so...

LDAP filter for searching students

I am fairly new to LDAP and AD. I want to create an LDAP filter to show all the students in the AD. But the problem is that the students are in different BASE DN: OU=STUDENTS,OU=USERS,OU=SOE,OU=FOAE,OU=UNIVERSITY,DC=sepang OU=STUDENTS,OU=USERS,OU=SOMLC,OU=FOAE,OU=UNIVERSITY,DC=sepang OU=STUDENTS,OU=USERS,OU=SOCS,OU=FOS,OU=UNIVERSITY,DC...

custom database query in sharepoint using active directory username as filter

Hello, i have a custom query in a database which i want to display to users in a MOSS via performancepoint webpart. I need to filter the report based on the username of the logged in user. How can i pass the AD username to the performancepoint webpart? Thanks ...

How to escape a string in C#, for use in an LDAP query

I have an LDAP query, which I am using to perform a search in C#. It uses two string variables (username and domain) which need to be escaped for security reasons. How should I escape the strings? Is there a function available in C#.NET to do this? Example LDAP search conditions : (objectCategory=person) (userprincipalname=username@...

Is there any preferable way to get user/group information from an Active Directory domain in Python?

For a Django application that I'm working on, I wanted to allow group membership to be determined by Active Directory group. After a while of digging through the pywin32 documentation, I came up with this: >>> import win32net >>> win32net.NetUserGetGroups('domain_name.com', 'username') [(u'Domain Users', 7), ...] I spent a while goog...