On Fri, 8 Sep 2023 13:05:26 +0200
Arnaud FLORENT via samba <samba at lists.samba.org> wrote:
> Hi Rowloand
>
>
> thanks for your support
>
>
> see? answers below
>
>
>
> Le 08/09/2023 ? 12:14, Rowland Penny via samba a ?crit?:
> > On Fri, 8 Sep 2023 10:41:34 +0200
> > Arnaud FLORENT via samba <samba at lists.samba.org> wrote:
> >
> >> Hi every one
> >>
> >>
> >> we are running samba 4.16 on ubuntu 20.04 from
> >> http://www.corpit.ru/mjt
> >>
> >> server is running in NT mode PDC
> >>
> >> and log.rpcd_spoolss get filled with messages like below
> >>
> >> event after setting log level=0 in smb.conf
> >>
> >> [2023/09/08 10:29:58,? 0]
> >>
../../lib/krb5_wrap/krb5_samba.c:3683(smb_krb5_init_context_common)
> >> ? smb_krb5_init_context_common: Krb5 context initialization
> >> failed (N'est pas un dossier)
> >> [2023/09/08 10:29:58,? 0]
> >>
../../lib/krb5_wrap/krb5_samba.c:3683(smb_krb5_init_context_common)
> >> ? smb_krb5_init_context_common: Krb5 context initialization
> >> failed (N'est pas un dossier)
> >>
> >>
> >> anybody have similar behaviour?
> >>
> >> is there a config change that would prevent those messages?
> >>
> >>
> >> "N'est pas un dossier" is the french for "is
not a folder"
> >>
> >> what could the path requested ?
> >>
> >>
> >> Thanks.
> >
> > As you are running an NT4-style classic PDC, there is absolutely no
> > reason to have any krb5 components installed, an NT4-style domain
> > does not use kerberos.
> that is what i think also.
> >
> > Please post the global part of your smb.conf
>
> [global]
>
> ; defaults 'server/client min protocol' have been changed to
SMB2_02
> since samba 4.11
> client min protocol = NT1
> server min protocol = NT1
>
> # required for xp remote shutdown
> client ipc signing = auto
>
> log level = 0
>
> server role = classic primary domain controller
>
>
> netbios name = kwartz9-dev
> workgroup = MONDOMAINE
> server string = Serveur KWARTZ %L
>
> smb ports = 139
> server max protocol = NT1
>
> netbios aliases = tour_cd admin_groupes
> config file = /etc/samba/smb.conf.%L
>
> include = /etc/samba/ldap.include
>
> utmp = yes
> utmp directory = /var/run
> wtmp directory = /var/log
> ; utmp = no in /etc/samba/utmp.127.0.0.1
> ; prevent utmp log from owncloud
> include = /etc/samba/utmp.%i
>
>
> # ajout automatique des machines (compte samba + dans postes clients
> si n<E9>cessaire)
> add machine script = /usr/sbin/kwartz-addmachine %u %I
>
> # script de logon par d<E9>faut.
> logon script = .logon.PDC.bat
>
> # This sets the default profile path. Set per user paths with pdbedit
> # profil local par d<E9>faut, fix<E9> par utilisateur dans base
LDAP
> <E0> \\%L\Profils\%U si itin<E9>rant
> logon path > logon drive = H:
> # logon drive peut <EA>tre red<E9>fini par winadmin dans ce
fichier
> include = /home/kwartz/samba/netlogon/lecteurNT.txt
>
> hide files = /desktop.ini/ntuser.ini/NTUSER.*/Thumbs.db/.winprofile*/
>
> # logon home = \\%L\%U\.win9xprofil ne peut <EA>tre mis de
fa<E7>on
> globale sinon H: connect<E9> <E0> \\%L\%U\.win9xprofil sous XP
> include= /etc/samba/include.%a
>
>
> > and a list of the
> > packages you installed.
>
> quite long list, as this server hosts a lot of services...
>
> here is the samba part
>
> please let me know if you need other packages.
>
> ii? ldb-tools 2:2.5.3+samba4.16.11+dfsg-1??????????????? amd64???????
> LDAP-like embedded database - tools
> ii? libldb2:amd64 2:2.5.3+samba4.16.11+dfsg-1???????????????
> amd64??????? LDAP-like embedded database - shared library
> ii? libsmbclient:amd64 2:4.16.11+dfsg-1??????????????????????????
> amd64??????? shared library for communication with SMB/CIFS servers
> ii? libwbclient0:amd64 2:4.16.11+dfsg-1??????????????????????????
> amd64??????? Samba winbind client library
> ii? python3-ldb 2:2.5.3+samba4.16.11+dfsg-1
> amd64 Python 3 bindings for LDB
> ii? python3-samba 2:4.16.11+dfsg-1??????????????????????????
> amd64??????? Python 3 bindings for Samba
> ii? samba 2:4.16.11+dfsg-1?????????????????????????? amd64???????
> SMB/CIFS file, print, and login server for Unix
> ii? samba-common 2:4.16.11+dfsg-1
> all common files used by both the Samba server and client
> ii? samba-common-bin 2:4.16.11+dfsg-1??????????????????????????
> amd64??????? Samba common files used by both the server and the client
> ii? samba-dsdb-modules:amd64
> 2:4.16.11+dfsg-1 amd64??????? Samba Directory Services Database
> ii? samba-libs:amd64 2:4.16.11+dfsg-1??????????????????????????
> amd64??????? Samba core libraries
> ii? samba-vfs-modules:amd64
> 2:4.16.11+dfsg-1 amd64??????? Samba Virtual FileSystem plugins
> ii? smbclient 2:4.16.11+dfsg-1?????????????????????????? amd64
> command-line SMB/CIFS clients for Unix
> ii? winbind 2:4.16.11+dfsg-1?????????????????????????? amd64???????
> service to resolve user and group information from Windows NT servers
>
>
There doesn't appear to be anything wrong with your smb.conf , but you
do not need these packages for an NT4-style PDC:
ldb-tools libldb2 python3-ldb python3-samba
Rowland