See inline comments:
Yes, you can use the 'Attributes' tab, but I have never done it this
way, so cannot give any help doing it this way. Can you change several
attributes at once or do you have to change them one by one?
>
> 2. I'm not sure I understand your second statement. You say that when
> I assign a UID for an account in the ADUC, the ADUC is doing something
> actively (looking up the next number), at the same time you're saying
> that Samba DCs don't create the attributes where this information
> would be stored. I'm confused. Am I supposed to create those
> attributes (msSFU30MaxUidNumber' and 'msSFU30MaxGidNumber')? All I can
> confirm is that, at the current stage, ADUC is not checking my
> entries. I was able to give the same UID to two different accounts
> without any error or warning messages.
The two attributes in question are available in Samba4 AD, they just
aren't created as standard. Even if you did create them, without the
'UNIX Attribute' tab, I am unsure whether it would help with storing and
creating Unix attributes from windows. I just pointed out how ADUC
before win10 worked.
>
> 3. Since my users will only log in to their windows stations, is it
> really necessary to define a shell and a home directory? Are there any
> benefits of doing that, or drawbacks of omitting?
If they are never going to login to the DC or member server, then they
do not need to have these two attributes, again they are what ADUC adds
as standard.
>
> Thank you so much for bearing with me.
>
> 4. I think I understand the ldif template. If I were to import it
> manually, I would just increase the UID by one each after having used
> it. The GID you selected would be the GID I have assigned to "Domain
> Users", so I would leave it. Correct? And since there are only two
> attributes that need to be changed to add a GID to a group, an ldif
> template would be overkill.
In order: good, yes, yes (but for a windows user only, you do not need
it), probably yes, unless you were to script this on the DC.
>
> 4b) What about the Admin account? Do I treat it as any other account
> (with regards to assigning a UID) or is there something special I have
> to consider?
We are talking Administrator here aren't we, well in which case he is a
bit special (though others say otherwise). On the DC, Administrator is
given the UID of '0' which is also the UID of the 'root' user, so
Administrator is automatically mapped to 'root', but any files &
directories created by Administrator show as belonging to 'root' on the DC.
On a 'member server', you need to do this mapping your self, add this
line to smb.conf:
username map = /etc/samba/samba_usermapping
then create the map file:
nano /etc/samba/samba_usermapping
!root = SAMDOM\Administrator SAMDOM\administrator
Restart samba and you should be good to go.
Rowland