active-directory

Is there such a thing as a "fully qualified" username within the context of Windows Authentication?

My web-app is hosted on mydomain, with the following URI associated with the domain: blah.net. I can login to using either of the following usernames: mydomain\ben [email protected] What are the names of each of these types of login (and are there any differences), within the context of Windows Authentication? ...

How to add active directory with sharepoint in the Virutal server ?

I have a main server with windows server 2008 with active directory installed. Additionally, I have created the hyper-v virtual server with MOSS 2007 installed with dynamic ip address. I can access the sharepoint site as an intranet. How can I assign the access of all the active directory users and their profile to MOSS without adding ...

How to switch users in a smooth way in a Point-Of-Sale system?

I am designing a Point-Of-Sale system for a small shop. The shop just have one Point-Of-Sale but often they are one to three users (sellers) in the shop. Each user have their own user account in the system so they login and logout very often. How should I design the login/logout system in a good way? For the moment the users don't use p...

AD: ChangePassword, SetPassword and password requirements

If I try the following: using (DirectoryEntry user = new DirectoryEntry("LDAP://CN=myuser,OU=x,DC=y,DC=z")) { user.Invoke("ChangePassword", new object[] { "oldpwd", "newpwd" }); } I get an exception saying that the password does not meet password policy requirements (HRESULT: 0x800708C5). The strange thing is that the password doe...

How to check writing possibility of Active Directory Schema Property

Is there a way to check (using c#) if given schema property of AD catalogue is writable? I didn't find anything in the ActiveDirectorySchemaProperty class and I don't know if it's possible to check that using basic DirectoryEntry class. The problem is I don't like my part of code where every property modification operation is wrapped in...

login restriction with ldap, but where to store the functional rights/access control list?

Question is: LDAP authentication required Internal users automatically authenticated, external users requires login Where do I store complex access control rights? In the AD/LDAP or in the Application itself (asp.membership db). What is your experience and best practices suggestion? Looking to build this in asp.net mvc 2 and using...

Correct method to search for AD user by email address from .NET

I'm having some issues with code that is intended to find a user in Active Directory by searching on their email address. I have tried 2 methods but I'm sometimes finding that the FindOne() method will not return any results on some occasions. If I look up the user in the GAL in Outlook I see the SMTP email address listed. My end goal i...

Spring Security 3.0 and Active Directory LDAP: DOMAIN\user login

I would like to have users authenticate against an ActiveDirectory LDAP server using the DOMAIN\user.name syntax. I think that should be possible with SpringSec 3.0 since the docs mention an alternative syntax which I guess refers to the DOM\user syntax instead of a bind DN, but the docs don't elaborate further. Is there some way to con...

Active Directory Services: PrincipalContext -- What is the DN of a "container" object?

I'm currently trying to authenticate via Active Directory Services using the PrincipalContext class. I would like to have my application authenticate to the Domain using Sealed and SSL contexts. In order to do this, I have to use the following constructor of PrincipalContext (link to MSDN page): public PrincipalContext( ContextType ...

Active Directory: User UPN or DN for NTLM name, using pure LDAP?

I have a Java app that can authenticate to LDAP by logging users into the AD LDAP server with the NTLM name (which they are used to - this is a requirement). I now also need to do authorization, and hence need to find a forest-unique identifier for the user (DN or UPN should work), from which I can further query the directory. The meth...

Silverlight and Active Directory Interaction

I am planning to familiarize(read teach) myself with Silverlight by building an in-house app for managing our employees. I, obviously, would need this to interact with Active Directory on some level. What are my options? Has anyone tried this before? I am currently going to explore using Services(WCF???) to do the AD interaction ...

How can I locate all the network printers in the enterprise?

When I go to Printers and Faxes dialog, I can click the Add a printer link, select Network Printer, then Find a printer in the directory. From there I get a dialog box which lets me find ALL printers in the enterprise. I need to find all the network printers with my code. How can I do this? Note that I am not talking about network p...

adldap class, need to search for user in two groups

http://adldap.sourceforge.net/wiki/doku.php?id=api_user_functions#user_ingroup_username_group_recursive_null I am using the adLDAP class above to authenticate users against our ldap server. I was wondering how I could check multiple groups to see if the user belongs to either, if they belong to either. I don't know if user_ingroup($...

Single Sign On for a Web App

I have been trying to understand how this problem is solved for over a month now. I really need to come up with a general approach that works -- I'm basically the only resource who can do it. I have a theory, but I'm just not sure it's the easiest (or correct) approach and I haven't been able to find any information to support my ideas. ...

Single Sign on- From our customer's Active Directory

We have an ASP.NET MVC website that a customer is requesting Active Directory single sign on. My thought is that we will need something behind their firewall in order to send encrypted credentials or a user's ID over to our server... any best practices or products that do this would be extremely helpful! Edit: We are trying to make th...

Unlocking Locked Out accounts using PowerShell (not with Quest AD cmdlets)

I'm writing a GUI tool using PowerShell that is able to do most AD related tasks with just a user name and button click. I've done all the usual ones (Create / Remove Users, Create / Remove Security & Distribution Groups, Resetting Passwords, etc) but can't find away of unlocking a "Locked Out" account. I'm trying to do this without usi...

Active directory logonCount is 0, though the user has logged in

For a user in active directory, the properties hold values for lastlogontime & lastlogontimestamp but the logoncount is 0. I am having only one domain controller in that domain. I found from surfing, that logonCount value of 0 indicates that the value is unknown. But I am totally confused with why it is unknown. Is that an issue with A...

Use default credentials in order to call DirectoryEntry

Hi, I am working in a Login page and teh logic is like -> try { DirectoryEntry LDAPLogin = new DirectoryEntry(ConfigurationSettings.AppSettings ["LDAPPath"].ToString(), Usuario, Txt_Contrasenia.Text.ToString()); if (LDAPLogin.NativeGuid != LDAPLogin.Name) ValidarGrupo(); } catch (Exception exc) { Label_Info.Text = "...

Active Directory Group Members Issue

Hi friends, I am using the below code to get the members from a group. private static List<string> GetGroupMembers(string groupName) { Tracer.LogEntrace(groupName); List<string> retVal = new List<string>(); GroupPrincipal groupPrincipal = GroupPrincipal.FindByIdentity (new PrincipalContext(ContextType.Domain),...

Change Windows user password remotely using .NET

How do I change a local user account password remotely using VB.NET/C#? I have looked into the DirectoryEntry class and know how to add users to a group but cannot figure out how to change a (local) password. ...