On Fri, 26 Oct 2018 12:57:52 +0100 Rowland Penny via samba <samba at lists.samba.org> wrote:> On Fri, 26 Oct 2018 13:50:44 +0200 > Corrado Ravinetto via samba <samba at lists.samba.org> wrote: > > > > > > > Il 26/10/2018 13:45, Rowland Penny via samba ha scritto: > > > ldbsearch -Hldap://$(hostname -s) -k yes -P > > > '(&(samaccountname=Domain Users)(gidNumber=*))' gidNumber | grep > > > gidNumber | awk '{print $NF}' > > > > sorry but nothing happen > > > > [root at dc1 ~]# ldbsearch -H ldap://$(hostname -s) -k yes -P > > '(&(samaccountname=Domain Users)(gidNumber=*))' gidNumber | grep > > gidNumber | awk '{print $NF}' > > [root at dc1 ~]# > > > > > > Then 'Domain Users' does not have a gidNumber: > > root at dc4:~# ldbsearch -H ldap://$(hostname -s) -k yes -P > '(&(samaccountname=*)(gidNumber=*))' gidNumber | grep gidNumber | awk > '{print $NF}' | sort | head -n 1 10000 > > That is from one of my DC's > > Rowland > >OOPS, wrong cut and paste, should have been: root at dc4:~# ldbsearch -H ldap://$(hostname -s) -k yes -P '(&(samaccountname=Domain Users)(gidNumber=*))' gidNumber | grep gidNumber | awk '{print $NF}' 10000 Rowland
Il 26/10/2018 14:03, Rowland Penny via samba ha scritto:> ldbsearch -Hldap://$(hostname -s) -k yes -P '(&(samaccountname=Domain Users)(gidNumber=*))' gidNumber | grep gidNumber | awk '{print $NF}'[root at dc1 ~]# wbinfo --group-info='domain users' LXCERRUTI\domain users:x:100: [root at dc1 ~]# ldbsearch -H ldap://$(hostname -s) -k yes -P '(&(samaccountname=Domain Users)(gidNumber=*))' gidNumber | grep gidNumber | awk '{print $NF}' [root at dc1 ~]# nothing :-( -- *Corrado Ravinetto * Sistemi informativi corrado.ravinetto at lanificiocerruti.com <mailto:corrado.ravinetto at lanificiocerruti.com> T: +39 015 3591283 Lanificio F.lli CERRUTI *Lanificio F.lli Cerruti S.p.A. * Via Cernaia 40, 13900 - Biella (BI) Italy www.lanificiocerruti.com <http://www.lanificiocerruti.com/> Twitter <https://twitter.com/Lan_Cerruti> Facebook <https://www.facebook.com/LanificioCerruti> Instagram <https://www.instagram.com/lanificiocerruti/> Rispetta l'ambiente, non stampare questa mail se non necessario Respect the environment, don't print unless necessary
On Fri, 26 Oct 2018 14:25:52 +0200 Corrado Ravinetto via samba <samba at lists.samba.org> wrote:> > > Il 26/10/2018 14:03, Rowland Penny via samba ha scritto: > > ldbsearch -Hldap://$(hostname -s) -k yes -P > > '(&(samaccountname=Domain Users)(gidNumber=*))' gidNumber | grep > > gidNumber | awk '{print $NF}' > > [root at dc1 ~]# wbinfo --group-info='domain users' > LXCERRUTI\domain users:x:100: > [root at dc1 ~]# ldbsearch -H ldap://$(hostname -s) -k yes -P > '(&(samaccountname=Domain Users)(gidNumber=*))' gidNumber | grep > gidNumber | awk '{print $NF}' > [root at dc1 ~]# > > nothing :-( >Then either you do not have the ldb-tools package installed or Domain users does not have a gidNumber attribute. Lets step back a bit, you upgraded from a PDC, is this correct ? Please post the smb.conf from the PDC. Rowland