dsconfigad binds to Active Directory domain, logins fail in 10.6.2

Using this command:

dsconfigad -f -domain sns.ias.edu -u pcuser -p foo -lu admin -lp foo -ou ou=Macs,dc=example,dc=com

The result is "Computer was successfully added to Active Directory". However, logins fail, and Active Directory isn't "checked" in Directory Utility.

If the directory bind is done with Directory Utility everything works, but dsconfigad alone only binds, but does not "enable" Active Directory.

Mac OS X (10.6.2)

Posted on Mar 23, 2010 1:24 PM

Reply
5 replies

Mar 23, 2010 1:38 PM in response to snscomp

Hi

This bit looks odd?

ou=Macs,dc=example,dc=com

Have you modified the schema by any chance? Normally you would see something like: ou=computers,dc=example,dc=com. You could try this instead?

dsconfigad -f -a (computer name) -domain (domain) -u (AD domain admin user name) -p (password)

Where (computer name) is either the result of issuing "hostname" or what's specified in the Sharing Preferences Pane. Followed by a restart. What sometimes happens is the entry does not get added to the Search Policy. If this is an AD-OD integrated environment with mac style GPOs being provided by OSX Server and you've 'joined' the client workstation to OD first AD won't automatically add itself to the search policy after binding.

Occasionally (depending on the limitations of the AD environment) using the interface is all that works. Perhaps this is one of those occasions?

HTH?

Tony

Mar 23, 2010 1:43 PM in response to Antonio Rocco

Tony, Thank you for the quick reply.

The command you listed is the one I used basically. "-a" is not an issue because the correct Mac name is registering in Active Directory. Yes, we are rebooting. This problem is not related to the search policy IMO. It's really an issue that Active Directory isn't "activated" or "enabled" as shown in Directory Utility. For example, "/Active Directory" isn't available to be added in "Search Policy", but the Mac is joined to the AD domain.

OD isn't involved with this setup.

Do you know what limitations of the AD environment would be involved here? If I have to use Directory Utility, then this seems like a limitation in OS X (or in dsconfigad), no?

The issue here is doing this from a command line. I've gone over "Best Practices: Integrating Mac OS X with Active Directory" published by Apple Support, and this looks like a bug to me.

Mar 23, 2010 1:46 PM in response to Antonio Rocco

Also, you can put the Mac computer accounts into any AD container according to the dsconfigad manpage:

" -ou dn The LDAP DN of the container to use for adding the computer. If
this is not specified, it will default to the container
"CN=Computers" within the domain that was specified (e.g.,
"CN=Computers,DC=domain,DC=ads,DC=demo,DC=com"
"

That bit is working, the Macs are added to ou=Macs,dc=example,dc=com. (example.com is only an example, I've removed our site details).

Mar 23, 2010 2:31 PM in response to snscomp

Hi

+"this looks like a bug to me?"+

I think you may be right. To be honest dsconfigad has never worked properly for me, dsconfigldap on the other hand works - for me anyway. I guess you could try using -f (force) switch? Invariably I end up using the GUI initially to bind one mac and then issue the command using ARD as well as copying the SearchNodeConfig.plist and sometimes the DirectoryService.plist making sure the second key lists "Active" rather than "Inactive". Restart afterwards.

When binding mac workstations to AD they automatically get added to the Computers OU anyway as the utility quite rightly points. There's no need to specifically define it although there's no harm if you do. It's about the only thing in terms of hardware you can 'control' other than user account and network profile. Still can't apply AD Policies to it though. Unless you're interested in modifying the Schema.

HTH?

Tony

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

dsconfigad binds to Active Directory domain, logins fail in 10.6.2

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.