[Samba] Configured AD backend but getting different uid and gid
c1581634 at gmail.com
Fri Apr 26 01:58:28 UTC 2019
Thank you for replying. User home directory creation is working without the
need to edit /etc/pam.d/common-session
The logon script I mentioned here is a in-house script to handle directory
mounting for file server access, and create shortcut on the account desktop
for different logins.
On my Linux machines, currently all is done manually by local user account
creation and by adding the command lines into individual home directory
I am happy to see after joining Samba AD, domain users able to login Linux
machines. However, I need to find a way to take care of the mapping after
the domain user log in.
On Thu, Apr 25, 2019 at 6:48 PM Rowland Penny via samba <
samba at lists.samba.org> wrote:
> On Thu, 25 Apr 2019 17:53:44 +0800
> Alfonso Conner <c1581634 at gmail.com> wrote:
> > Hi,
> > Thanks for the advice, I know these are already EOL but please bear
> > with me on that. I also do use CentOS 7 and Windows 10 for further
> > testing. Anyway, I found out is due to my "idmap DOMAIN : range"
> > value in smb.conf was not set to the correct range.
> Yes, that would do it ;-)
> > Another thing is libnss-winbind package must make sure to be installed
> > properly.
> If you want to use kerberos, you will also need libpam-krb5
> > After these things are resolved, I managed to see the correct uid and
> > gid. ;-)
> > I have another problem and would like to know is there any
> > configuration to trigger logon script when Domain User login to Linux
> > Machine? My understanding if is for Windows, I can use RSAT, go to
> > the User account properties-> Profile-> Logon script and put the file
> > name.
> It all depends what you mean by 'logon script' ?
> If you mean something to create the users home directory, then yes, add:
> session required pam_mkhomedir.so skel=/etc/skel/ umask=0022
> to the end of /etc/pam.d/common-session
> If this isn't what you require, then can you please explain exactly
> what you do require.
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba
More information about the samba