Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-12-2010, 08:53 PM   #1
LQ Newbie
Registered: Mar 2009
Posts: 11

Rep: Reputation: 0
Improperly Formed Account Name When Adding SUSE 10 to Windows Domain


I have a SUSE 10 SP 2 server that needs to get added to a Windows Active Directory domain and registered in DNS. Samba is 3.0.28-0.5. I tried to join the domain with the following command:

/usr/bin/net ads join -U MyDomainAdd%MyDomainPW

The response is

Failed to join domain: Improperly formed account name

I tried to register in DNS with the following command:

/usr/bin/net ads dns register -U MyDomainAdd% MyDomainPW

There is no response of any kind, but the system does not get added in the Windows DNS.

I previously enabled kerberos and can successfully do a kinit MyDomainAdd. After supplying the password, the klist command shows a valid ticket has been issued for the user MyDomainAdd.

The clock is synchronized with the domain controller.

In preparing for the domain add / dns register, I configured the krb5.conf and smb.conf files with settings that have worked for us on Red Hat Enterprise Linux 5.4.

The krb5.conf file reads as follows:

default_realm = MYDOMAIN.US.COM

clock_skew = 300
default_realm = MYDOMAIN.US.COM
default_tgs_enctypes = RC4-HMAC DES-CBC-CRC DES-CBC-MD5
default_tkt_enctypes = RC4-HMAC DES-CBC-CRC DES-CBC-MD5
preferred_enctypes = RC4-HMAC DES-CBC-CRC DES-CBC-MD5
ticket_lifetime = 24000

kdc =
admin_server =
default_domain =


The smb.conf file reads as follows:

# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2008-04-23
workgroup = MYDOMAIN
use kerberos keytab = true
security = ads
printing = cups
printcap name = cups
printcap cache time = 750
cups options = raw
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
usershare allow guests = Yes
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
comment = Printer Drivers
path = /var/lib/samba/drivers
write list = @ntadmin root
force group = ntadmin
create mask = 0664
directory mask = 0775

Can anyone suggest what needs to be done to fix or further diagnose these problems? I'm a Linux newbie.

Thanks in advance!

Old 04-13-2010, 06:25 PM   #2
LQ Newbie
Registered: Mar 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Smile Problem Resolved

In case anyone else runs into this issue: The problem was resolved by upgrading Samba. We were running 3.0.28-0.5, which is distributed with SLES 10 SP2. We upgraded to 3.0.36-0.5.5, which is available on the SLES 10 SP3 disc.
Old 10-12-2010, 12:34 PM   #3
LQ Newbie
Registered: Nov 2007
Posts: 6

Rep: Reputation: 0
Thank you for posting your own solution. It resolved it for me too.


ads, dns, domain, suse, windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Improperly formed /etc/network/interfaces can564 Linux - Wireless Networking 7 01-08-2008 06:54 PM
Adding SuSE 10 workstation to a Windows Domain nonsense28sal Linux - Networking 3 03-23-2006 09:24 AM
Adding a Suse 9.0 machine to a windows domain Harry Seldon Linux - Newbie 1 02-26-2004 08:50 PM
Help adding Linux 9.0 Server to a windows domain akhan02 Linux - Newbie 1 09-02-2003 01:35 AM
Adding users from windows domain fmertus Linux - Networking 18 06-24-2003 10:47 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration