Thursday, May 26, 2011

CentOS and Active Directory Users

You can normally do this through the gui tool, but I figured it's still fairly easy to do it with the command line tool. In this case, I want to join my machine to the domain and use Active Directory for authentication and user information. You'll likely want to back up your authentication config files (just backup /etc to be safe, unless you know exactly which files you need) before you start. Do this at your own risk.

system-config-authentication  --smbrealm=my_ads_fqdn \
 --winbindjoin=domain_admin_username --smbsecurity=ads \
 --enablewinbindusedefaultdomain --enablekrb5 --enablewinbind \

If you want the users to have a default shell, run system-config-authentication again:

system-config-authentication --winbindtemplateshell=/bin/bash --update

Conversely, you could have added the "--winbindtemplateshell=/bin/bash" to the first command above.


Web Development India said...


Very Good.. Amazing post.. Thanks

Wedding Websites

Watch Showrooms Chennai said...

Great Wonderful post thanks..

Website Development India said...

Good post.. useful information Thanks for sharing..

Ancy merina said...

I read so many articles in your blog. All are awesome. I learnt a lot of new things with help of your blog. Thanks for sharing this wonderful information.
Web development company in bangalore
Outsource magento ecommerce services india
ECommerce Website developers in bangalore