active-directory

What is the best way to store a reference to an AD group?

I'm writing an intranet application for a client and I want to give them the ability to configure through an admin interface, which users and user groups can access certain areas. What I'd like to know is the best way of storing the reference to the user or group that is assigned to an area of the intranet. Should I be using the domain...

SQL Server Active Directory Import Issues with British Summer Time (BST)

I'm using SQL Server ADSI to import data from Active Directory and using the whenChanged field to control if I need to reimport the members of a group. Problem is the date is being returned in GMT and I'm currently in BST. So, did a member change at 9:50 this morning, the AD tools I have say 9:50, but the ADSI query returns 8:50. This...

remotely and programatically logoff an active domain user

I need to be able to logoff any user from his windows session from a program. I know I could log in as an admin and force a remote logoff. Is there any other way to force a logoff without logging in? The tool will run as admin so that's not a problem, being able to remote logoff without logging in is. Tool is in .NET, but any other ...

How can I get the minimum required password length value from Active Directory in .NET

I'm implementing a plugin architecture to implement authentication an external authentication mechanism for a web site. One of the plugins I plan to provide is an ActiveDirectory plugin. I'd like to implement some of the features of a MembershipProvider, including MinRequiredPasswordLength, but don't want to fully implement or configur...

How do I reload kerberos configuration under tomcat ?

My application runs under tomcat. It is using GSS API (JNDI) to connect to Active Directory LDAP Server using Kerberos. It allows the user to define AD servers and try to connect to them. However, once the first Kerberos using connect attempt is done, the application does not read Kerberos configuration again (/etc/krb5.conf). Hence, any...

How do I get a list of domain user accounts with win32 api?

How do I get a list of domain user accounts with win32 api? In particular, I can't get this list when the computer is not the domain controller. Instead it is a member of the domain. ...

Are Active Directory forest trusts transitive?

I'm working on trouble shooting an application under development that uses information from Active Directory in a multi-forest environment and I have the current problem down to figuring out if forest trusts are transitive, and if so under what conditions. The setup: Using Active Directory 2003, ForestA has a two-way forest trust with F...

Can I use two Kerberos Keytabs from a single host?

My application enables defining several LDAP servers to work with. One might want to define Kerberos access to more than one LDAP server. Can it be done? Can a single host juggle between Active Directory servers with Kerberos as the connection method? ...

How do I find a user's Active Directory display name in a C# web application?

I'm writing a web application which uses windows authentication and I can happily get the user's login name using something like: string login = User.Identity.Name.ToString(); But I don't need their login name I want their DisplayName. I've been banging my head for a couple hours now... Can I access my organisation's AD via a web ap...

Mark an Active Directory Object as "Read-Only"?

We had a bad day yesterday. One of our Domain Admins deleted an OU containing 700+ users and the same amount of computers as well as assorted other useful things like groups etc. We restored from a backup, but it wasn't pretty. I know that ADUC asks you if you're sure etc... but I'd like it if it was not possible to delete this partic...

Get a list of members of a WinNT group (C#)

There are a couple of questions similar to this on stack overflow but not quite the same. I want to open, or create, a local group on a win xp computer and add members to it, domain, local and well known accounts. I also want to check whether a user is already a member so that I don't add the same account twice, and presumably get an e...

Design for handling both forms authentication and active directory

What design pattern should I use to handle both forms authentication and active directory? (Administrative setting will allow you to chose either one of them). From what I know, .NET membership provider only has forms right? ...

How do I undo check out in TFS for former employees

Hi On our TFS source control server, a lot of source files are checked out by people, which are not employed any more. Is there a central way where I can undo check out on all files in TFS? I'm not even sure that they exists in Active Directory anymore. ...

Translating NETBIOS domain into a FQDN (Fully Qualified Domain Name)

In short - How do I translate a NETBIOS domain to a FQDN ? Details: Assuming I'm in domain A and I have user credentials for domain B which has a trust relationship with domain A (I can authenticate the credentials). How do I get domain B's FQDN when all I have are the credentials of some authenticated user from that domain, including t...

Replicate selected accounts in ActiveDirectory

Is it possible to replicate selected objects (accounts) in an Active Directory Domain. We have a need to replicate selected accounts through our firewall to a DC sitting in the DMZ. We don't want to replicate all accounts to this machine, in case it is compromised. Any suggestions, help or products suggested most appreciated. ...

HOWTO - Set delegated Active Directory privileges

I've created a c# webservice that allows our front end support teams to view and update a few selected Active Directory values using system.directoryservices Fields that I want to update are [job] title, department, telephone and employeeid. I can use a service account with "delegates rights" to update [job] title, department, telephon...

Is there a way to use Active Directory pass-through security to SQL Server 2005 and disallow types of connectivity, such as ODBC

We have an internal application that is using a service account and fine-grained table and field control is controlled by permissions tables in the application. If we wanted to use pass-through security with Active Directory, we have a problem in that a user with odbc access could modify tables outside of business rules that exist in t...

Does it make sense to set up a trusted relationship between Active Directory instances at partner companies?

Hi, If a company often requires users to be created in a partner's active directory, and vice versa, does it make sense to set up a federated / trusted relationship between the AD instances? If so, what should be considered? Does the ACL for users in the partner AD still work the same way? What security risks does this expose? Thanks! ...

Server/Service Discovery in Windows environment?

UDDI is for locating services on the Internet. Is there anything similar for locating services in a corporate or enterprise environment? For example I might want my program to be able to find a central reporting or policy server without configuration. Is this something I can do with Active Directory? Or do I need to do something else? ...

Is there a Maximum Length for userPrincipalName in Active Directory?

I am writing an application that is linked to Active Directory, and I need to store the userPrincipalName in a database table, but I do not know how big the field would need to be. On MSDN, no Length is given, and neither in RFC 822. Now, before I revert to the DOMAIN\Username that has a defined Length (sAMAccountName is less than 20 ch...