SMB AD user IDs don't match

bazzacad

Explorer
Joined
May 1, 2019
Messages
53
My FreeNAS box seemed to join my Samba AD fine.
I can ping the domain from FreeNAS.
I can ping my DC from FreenNAS & visa-versa.
I can see my domain users in the FreeNAS drop-down menus & I can list them in the shell.
But if I list the ID for a user, it doesn't match the ID on the DC.

1559866141337.png


1559866159550.png


How do I get them to match?
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Switch your idmap backend under Directory Services -> Active Directory to "ad", then at the command line run the following:

Code:
service samba_server stop
rm /var/db/samba4/winbindd_cache*
net cache flush
service samba_server start
 

bazzacad

Explorer
Joined
May 1, 2019
Messages
53
Thanks for the info. That sounded like it would do the trick, but it broke something.
The users no longer autocomplete in the drop-downs.

I can list all the users
1559930326354.png


But I can't get the info on a specific user:
1559930378544.png


Here are my settings:
1559930420543.png
 

bazzacad

Explorer
Joined
May 1, 2019
Messages
53
I must have screwed it up some how.
Now wbinfo -u doesn't return anything.
Here are the current settings.
I think I changed winbind NSS Info & now can't remove it.

1559935738671.png


Here are the results after the last changes:
1559935828360.png


Is there anyway to clear all of the AD settings are start over?
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
You need to adjust the idmap range for `ad` so that the range of ids you've allocated in AD fits in it. This is under directory services -> Active directory.
 

bazzacad

Explorer
Joined
May 1, 2019
Messages
53
Thanks for the help. It's working now. I had to clear the settings again.
 

bazzacad

Explorer
Joined
May 1, 2019
Messages
53
But now the system has become very laggy. I do a ll list on an empty folder and it takes 10-15 sec. to return.
 
Top