smbd[2094]: dnssd_clientstub errors

Status
Not open for further replies.

Garyw

Dabbler
Joined
Sep 4, 2011
Messages
45
Hello all,
I'm having a few issues with FreeNAS and accessing CIFS shares which are linked to AD. I've done a full update on FreeNAS and rebooted it just to make sure that I'm on the latest version.
When FreeNAS starts up I see these errors in the logs:

Nov 30 13:46:17 store05 winbindd[2906]: initialize_winbindd_cache: clearing cache and re-creating with version number 2
Nov 30 13:46:17 store05 winbindd[2906]: [2015/11/30 13:46:17.119194, 0] ../lib/util/become_daemon.c:136(daemon_ready)
Nov 30 13:46:17 store05 smbd[2903]: [2015/11/30 13:46:17.218224, 0] ../lib/util/become_daemon.c:136(daemon_ready)
Nov 30 13:46:17 store05 smbd[2903]: dnssd_clientstub ConnectToServer: connect()-> No of tries: 1
Nov 30 13:46:18 store05 smbd[2903]: dnssd_clientstub ConnectToServer: connect()-> No of tries: 2
Nov 30 13:46:19 store05 smbd[2903]: dnssd_clientstub ConnectToServer: connect()-> No of tries: 3
Nov 30 13:46:20 store05 smbd[2903]: dnssd_clientstub ConnectToServer: connect() failed Socket:32 Err:-1 Errno:2 No such file or directory

It isn't clear to me what smbd is trying to talk to and having issues with. Any pointers or suggestions as to what this error is all about?

Many thanks.
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Any pointers or suggestions as to what this error is all about?

Many thanks.
Simple googling indicates that samba's complaining that it can't talk to mdnsd. Probably a red herring. It should affect AD integration.

What problems are you having with AD / CIFS? Perhaps you can post a debug file "system" -> "advanced" -> "save debug". Note that this will contain some info about your network (arp table, lists of users and groups, etc.) You can PM it to me if you want, but I can't guarantee that I'll have time to review it any time soon or be able to diagnose the problem.
 

Garyw

Dabbler
Joined
Sep 4, 2011
Messages
45
Yeah I did a google and hit the same thing but that didn't make sense to me.

I've no problems in posting the debug log, CIFS works but the AD integration stopped working on Friday which I don't understand at all.

I'll post the output shortly.
 

Garyw

Dabbler
Joined
Sep 4, 2011
Messages
45
So in having a dig through some bugs and other posts I'm getting strangeness at the CLI:

[root@store05] /tmp# klist
klist: No ticket file: /tmp/krb5cc_0

[root@store05] /tmp# net -k ads join gdwnet.com
Host is not configured as a member server.
Invalid configuration. Exiting....
Failed to join domain: This operation is only allowed for the PDC of the domain.

Even if I point it to the PDC emulator I get the same message.

[root@store05] /tmp# wbinfo -t
checking the trust secret for domain HOME via RPC calls failed
error code was NT_STATUS_NO_SUCH_DOMAIN (0xc00000df)
failed to call wbcCheckTrustCredentials: WBC_ERR_AUTH_ERROR
Could not check secret


I've tried the netbios name, FQDN and others. Everything just has one error or another. the FQDN is gdwnet.com and the netbios name is HOME
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
A few thoughts:
  • In services -> CIFS, make sure your workgroup is set to 'gdwnet', not 'home'.
  • In your AD config, make sure that the idmap backend is set to "rid" unless you have specific reason to do otherwise.
 

Garyw

Dabbler
Joined
Sep 4, 2011
Messages
45
I've done both of those and still no joy.

[root@store05] /tmp# wbinfo -t
checking the trust secret for domain GDWNET via RPC calls failed
error code was NT_STATUS_NO_SUCH_DOMAIN (0xc00000df)
failed to call wbcCheckTrustCredentials: WBC_ERR_AUTH_ERROR
Could not check secret

I've triple checked that DNS is working for internal lookups and that the time is good.
 

Garyw

Dabbler
Joined
Sep 4, 2011
Messages
45
Some progress, After some searching I found this bug -> https://bugs.pcbsd.org/issues/6632

In doing some digging I hit some problems:

[root@store05] /tmp# sqlite3 /data/freenas-v1.db
SQLite version 3.8.6 2014-08-15 11:46:33
Enter ".help" for usage hints.
sqlite> update directoryservice_activedirectory set ad_enable=1;
sqlite> .quit
[root@store05] /tmp# service ix-kerberos start
/var/tmp/rc.conf.freenas: 49: Syntax error: Unterminated quoted string

having a look at that RC I found this:

ifconfig_bge0="inet 10.253.1.152/24 "

Removing the space at the end of the line fixed a bunch of things:
[root@store05] /tmp# service ix-kerberos start
[root@store05] /tmp# service ix-kinit start
[root@store05] /tmp# klist
Credentials cache: FILE:/tmp/krb5cc_0
Principal: store05-ad-access@GDWNET.COM

Issued Expires Principal
Dec 7 13:36:05 Dec 7 23:36:05 krbtgt/GDWNET.COM@GDWNET.COM

So some progress but it's still not working......
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,553
Did you save a backup of your config file before editing freenas-v1.db? Honestly, with the amount of mucking around in the CLI that you're doing / have done I'm probably not going to be much help. Perhaps you should open a bug report.

As a sanity check. After making changes to NetBIOS name, did you turn off CIFS, open 'directory service' -> 'active directory', check the 'enable' button, and click "save"?
 

Garyw

Dabbler
Joined
Sep 4, 2011
Messages
45
As a sanity check. After making changes to NetBIOS name, did you turn off CIFS, open 'directory service' -> 'active directory', check the 'enable' button, and click "save"?

Many times!

Yeah, I assumed I was doing something daft but it's starting to look like a bug. I might just rebuild the system and see if that clears it.
 
Status
Not open for further replies.
Top