LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

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

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


Hello,

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:

[logging]
default = SYSLOG:INFO:LOCAL7
default_realm = MYDOMAIN.US.COM

[libdefaults]
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
dns_lookup_kdc=false

[realms]
MYDOMAIN.US.COM= {
kdc = 192.62.96.66:88
admin_server = 192.62.96.66:464
default_domain = 192.62.96.66
}

[domain_realm]
.MYDOMAIN.US.COM = MYDOMAIN.US.COM
MYDOMAIN.US.COM = MYDOMAIN.US.COM

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
[global]
workgroup = MYDOMAIN
use kerberos keytab = true
security = ads
realm = MYDOMAIN.US.COM
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
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[profiles]
comment = Network Profiles Service
path = %H
read only = No
store dos attributes = Yes
create mask = 0600
directory mask = 0700
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[printers]
comment = All Printers
path = /var/tmp
printable = Yes
create mask = 0600
browseable = No
[print$]
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!

Joseph
 
Old 04-13-2010, 06:25 PM   #2
jfmorales
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
jdh239
LQ Newbie
 
Registered: Nov 2007
Posts: 6

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


Reply

Tags
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 11:58 PM.

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