Apple’s Worldwide Developers Conference returns June 10, 2024

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Problems adding Win clients to domain

I'm not able to add Win clients to my domain anymore. I receive an error on the PC (2000 or XP):

"The following error occurred attempting to join the domain "[DOMAIN]":
Logon failure: unknown user name or password."

But I am able to log on to the server when accessing shares and printers. This error message only appears when joining the domain.

And on the Mac OS X 10.4.7 server I get the following in my log.smbd:

[2006/08/22 11:32:03, 2] /SourceCache/samba/samba-92.20/samba/source/auth/auth.c:check ntlmpassword(360)
check ntlmpassword: authentication for user [tmpadmin] -> [tmpadmin] -> [tmpadmin] succeeded
[2006/08/22 11:32:03, 2] /SourceCache/samba/samba-92.20/samba/source/lib/module.c:do smb_loadmodule(63)
Module '/usr/lib/samba/vfs/darwin_acls.so' loaded
[2006/08/22 11:32:04, 2] /SourceCache/samba/samba-92.20/samba/source/rpc server/srv_samr_nt.c:_samr_lookupdomain(2531)
Returning domain sid for domain [DOMAIN] -> S-1-5-21-457614760-3765950544-3595693477
[2006/08/22 11:32:04, 2] /SourceCache/samba/samba-92.20/samba/source/rpc server/srv_samr_nt.c:access_check_samrobject(93)
samr_opendomain: ACCESS DENIED (requested: 0x00000211)
[2006/08/22 11:32:04, 2] /SourceCache/samba/samba-92.20/samba/source/rpc server/srv_samr_nt.c:_samr_lookupdomain(2531)
Returning domain sid for domain [DOMAIN] -> S-1-5-21-457614760-3765950544-3595693477
[2006/08/22 11:32:04, 2] /SourceCache/samba/samba-92.20/samba/source/rpc server/srv_samr_nt.c:access_check_samrobject(93)
samr_openuser: ACCESS DENIED (requested: 0x000000b0)
[2006/08/22 11:32:04, 2] /SourceCache/samba/samba-92.20/samba/source/rpc server/srv_samr_nt.c:access_check_samrobject(93)
samr_openuser: ACCESS DENIED (requested: 0x00000090)
[2006/08/22 11:32:04, 2] /SourceCache/samba/samba-92.20/samba/source/smbd/server.c:exit_server(595)
Closing connections

where DOMAIN is my domain name and tmpadmin is a user account with all privileges.

I've been googling (oops, I'm not sure I can say that :-)) and reading all the documentation I could find, but without any luck.

What's strange is that when the server was installed I was able to add a lot of clients. Then I've probably done something wrong and now I'm getting into trouble. So, what have I been doing?

Editing /etc/smb.conf
* Adding the line: logon home = \\[FILESERVER]\%U
* Removing the line: #logon path = \\%N\profiles\%u

Adding a group mapping with the command net
net groupmap add ntgroup="Domain Admins" unixgroup="admin" type=domain
net groupmap cleanup
but also reverted back to default group mappings.

Reconfigured the Windows service by removing /var/samba and /etc/smb.conf. Didn't help.

Editing /etc/openldap/slapd.conf:
* Adding a schema from ldapuserdata ( a Squirrelmail plug-in) but has removed this schema now.

Are there other services/configuration files I have to look at?

Do you have ANY tips? This is starting to get urgent for me now!

Regards,

Lars-Gunnar Persson

xServe G5 Mac OS X (10.4.7)

Posted on Aug 22, 2006 3:07 AM

Reply
1 reply

Aug 23, 2006 1:18 AM in response to Lars-Gunnar Persson

I've now tried a couple of other things without success:

I run this command to try to add the server which is the PDC to the domain:

net rpc join -S [SERVER] -Uroot%[password]

Today that command gave me the following output:

[2006/08/23 09:23:07, 0] /SourceCache/samba/samba-92.9/samba/source/utils/net rpc_join.c:net_rpc_joinnewstyle(279)
error setting trust account password: NT STATUS_ACCESSDENIED
Unable to join domain [DOMAIN].

Yesterday I got a bit more interesting error message including

decode pwbuffer: incorrect password length (945999123).

After searching the web I found two references regarding mac is x server and samba about this:

At AFP548:
http://www.afp548.com/forum/viewtopic.php?showtopic=11873

There were a couple of suggestions:

1. Change the server from PDC to Single Server and back again. In a way I've tried that by removing the /etc/smb.conf and /var/samba.

2. Set the password of the directory administrator a couple of times and then it should work. Tried that but it didn't work for me.

At the mailing list Macos-x-server@lists.apple.com in August 2005:

3. A tip from Michael Bartosh: /usr/bin/opendirectorypdbconfig -c set_authenticator -r admin-name -p xxxxx -n /LDAPv3/127.0.0.1
Tried it, but didn't work.

At the moment I believe it may be the file

/var/db/samba/secrets.tdb

since I didn't delete it when I reconfigured Samba. I was also surprised that the SID of the Samba domain didn't change when I reconfigured Samba.

My question is then: Is it safe to rename this file and and then start Samba again? Or will the domain loose it SID and I have to add all the Win clients again? But if I run the command:

sudo net getlocalsid [DOMAIN]

before the renaming and then run the command:

net setlocalsid SID

after. Will this procedure do it?

Regards,

Lars-Gunnar Persson


xServe G5 Mac OS X (10.4.7)

Problems adding Win clients to domain

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