# Script ADS join (yast samba-client)

**URL:** <https://forums.suse.com/t/script-ads-join-yast-samba-client/21917>\
**Category:** SLES Configure-Administer\
**Created:** [January 2, 2012, 11:26am UTC](https://forums.suse.com/t/script-ads-join-yast-samba-client/21917 "2012-01-02T11:26:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![System1](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@System1](https://forums.suse.com/u/System1)\
**Post date:** [January 2, 2012, 11:26am UTC](https://forums.suse.com/t/script-ads-join-yast-samba-client/21917/1 "2012-01-02T11:26:01Z")

</div>

Hi everyone,  
I’m trying to script the active directory domain join of my SLES 11 SP1  
servers as an AutoYaST postscript. My enviroment has multiple windows  
domains. In the prescript section of my AutoYaST profile the right  
domain is selected an passed to a postscript (-modified.xml-) that  
should do the domain join.

“-net ads join-” would work, but I want to do it fully YaST compatible  
and set the two options: “-Also Use SMB Information for Linux  
Authentication-” and “-Create Home Directory on Login-”.

## The option “-Create Home Directory on Login-” is less problematic because it’s only the addition of the line Code:

## session optional pam\_mkhomedir.so

to -/etc/pam.d/common-session-. But the option “-Also Use SMB  
Information for Linux Authentication-” makes changes in many files.

I’ve tried to do it with a AutoYaST XML (-yast ayast\_setup setup  
filename=./domainjoin.xml-) but an AutoYaST-Script as postscript isn’t  
supported by SUSE/Novell and does not work in this case.

Any ideas? How are you joining your SLES servers to windows domains?

Thanks in advance for your help.

Eloy

## – eloycastro

eloycastro’s Profile: [http://forums.novell.com/member.php?userid=87076](http://forums.novell.com/member.php?userid=87076)  
View this thread: [http://forums.novell.com/showthread.php?t=450176](http://forums.novell.com/showthread.php?t=450176)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/5/5012ba89e3ffb5220dac47d5ea0ba032e2fe1cb6.png) [@system](https://forums.suse.com/u/system)\
**Post date:** [January 6, 2012, 8:25pm UTC](https://forums.suse.com/t/script-ads-join-yast-samba-client/21917/2 "2012-01-06T20:25:36Z")

</div>

eloycastro,

It appears that in the past few days you have not received a response to your  
posting. That concerns us, and has triggered this automated reply.

Has your problem been resolved? If not, you might try one of the following options:

- Visit [http://support.novell.com](http://support.novell.com) and search the knowledgebase and/or check all  
the other self support options and support programs available.
- You could also try posting your message again. Make sure it is posted in the  
correct newsgroup. ([http://forums.novell.com](http://forums.novell.com))

Be sure to read the forum FAQ about what to expect in the way of responses:  
[http://forums.novell.com/faq.php](http://forums.novell.com/faq.php)

If this is a reply to a duplicate posting, please ignore and accept our apologies  
and rest assured we will issue a stern reprimand to our posting bot.

Good luck!

Your Novell Product Support Forums Team  
[http://forums.novell.com/](http://forums.novell.com/)
