active-directory

Open Source SPML to LDAP Gateways

I recently ran across Project Keychain and wanted to know if there are any other SPML to LDAP gateways that are open source. Implementation language does not matter. ...

Generic Authentication Call to Active Directory in C#

I would like to have a clean C# class that authenticates from Active Directory. It should be pretty simple, it just has to ask for credentials and check if it matches what AD is expecting. I am responsible for a number of C# applications, and I would like all of them to use the same class. Could someone please provide a clean code s...

When should server maintenance affect implementation descisions?

Here's my situation... I'm writing a .Net/C# security system (authorization and authentication) for a large collection of web applications that require a single sign-on process. I'm using Active Directory as a data store and have written a very nice prototype that communicates with AD through LDAP. This component retrieves information a...

Code to add a host header to an IIS Website

I have a single site that has many names. I want to be able to programatically add a new host header record to IIS to allow it to recognize another name. Specifically, what is the code (preferably in C#) to add a new host header to a given site? ...

get mail address from ActiveDirectory

Please can someone help... tried these answers to these questions Questions on SO String account = userAccount.Replace(@"Domain\", ""); DirectoryEntry entry = new DirectoryEntry(); try { DirectorySearcher search = new DirectorySearcher(entry); search.PropertiesToLoad.Add("mail"); // e-mail add...

Import and Exporting users from an Active Directory

I'm trying to move a SharePoint site from one server to another. I'm supposed to move all the users with their permissions as well. I've been told that the best way to do that is to export the users from the AD and then import the list on the target server. Is this the best way to accomplish this? How do I export only the users and p...

Proxy Addresses do not return x500

Heloo all, Dim search As DirectorySearcher = New DirectorySearcher(entry) search.Filter = String.Format("(& (objectClass=user)(samAccountName={0}))", "canallb") search.PropertiesToLoad.Add("proxyAddresses") Dim proxyNames As StringBuilder = New StringBuilder() Dim propertyCount As Integer = resul...

What's the difference between "Exchange Legacy Distinguished Name" and "Active Directory Distingushed Name"?

I'm a little confused by these two terms: "Legacy Distinguished Name"(Legacy DN) and "Distingushed Name"(DN). The first term Legacy DN seems only for Exchange, while the latter DN is only mentioned for Active Directory. They are obviously not in same format: DN is like: CN=Morgan Cheng, OU= SomeOrg, DC=SomeCom, DC=com LegacyDN is lik...

Developing .Net that deploys to a different Active Directory.

Situation is you have to develop an application against an Active Directory Tree. Want to use Role based security based on AD user groups. The deployment tree is unavailable, no trust exists or is allowed between the development tree and deployment tree. What are the best practices for developing the application and then deploying. Firs...

Delegation in WCF web service

I have a WCF web service, currently served over WSHttpBinding endpoint with Transport security and Windows client credential type. The service is hosted on top of IIS 5.1 with SSL configured using a certificate from the domain certificate authority. IIS itself runs with the identity of [email protected] on a domain computer. Anonymous acce...

Is supporting active directory in a web application difficult when currently build with forms auth?

Hi, I have a web application that currently only supports asp.net forms authentication. My user business logic currently is like: Users.GetUserByID(userID); Users.LoginUser(username, password); i.e. it is pretty modular and I hope supporting active directory won't be difficult. Is it possible for me to support both AD and forms? If...

Choosing an RDN for new objectClasses in LDAP?

What are the best practices for choosing an RDN when creating new objectClasses in LDAP? I know you can choose from uid, cn, ou, and so on, but what practices should one follow? ...

Fetch all users in active directory in a specified folder

Hi I'm doing an application which needs to query active directory and I've been using ldap queries for that purpose. My problem is that I really cant use "ou=People,dc=pisoftware,dc=com" because the People node name keeps changing because my department name have been changed a lot recently. So in order to avoid the problem of having t...

Keep getting exceptions using PrincipalContext from the System.DirectoryServices.AccountManagement assembly

Using System.DirectoryServices.AccountManagement assembly. I am using the constructor PrincipalContext context = new PrincipalContext( ContextType.Domain, "myserver.ds.com", "LDAP://OU=the-users,DC=myserver,DC=ds,DC=com", adusername, password); I can ...

How do you join a server to an Active Directory (domain)?

Need to launch a new ASP.NET site on this server but need to be joined to our Active Directory domain, anyone know how this is done? ...

windows user domain account question

Hi I have one question regarding domain account. I have one domain controller where all the user information are stored. I have joined the domain on my laptop but I observed that I am able to log-in using domain credentials even if domain controller is down. How is this possible? Kind Regards PK ...

ASP Net - Forms Authentication with Active Directory Problem

I have an error... The container specified in the connection string does not exist Basically, I am using Active Directory authentication in ASP.NET. I have set up my connection string. I am still very new to AD. I appritate any help thanks ...

Where can I get an enterprise directory structure?

I want to be able to load up an Active Directory server with a realistic medium-to-large enterprise directory structure (groups, users) so that I can run performance tests on an application which makes use of that data. In my fantasy world, some big company would export their (anonymized) AD structure in a way I could import directly. ...

Using ADAM to validate users in a DMZ zone

ISS and ASP.NET. In my setup I have a web application that must be accessable from: an organisatition of 3000 users 200 external users The solution is hosted in the organisations DMZ. Initially i was hoping to do AD based authentication for the 3000 org users, so that they wouldnt need to remember more passwords. Now the hosting...

Active Directory authentication on WSS 3.0

Our customer wants to use their existing active directory to authenticate users on a new WSS 3.0 server. The company is using several domains. I have read this thread sharepoint-wss-authentication-across-multiple-domains but it does not give me the information on how to set up the sync-connection. Ive seen on meny places that AD sync is...