Re: [Samba] winbind - samba4

2012-12-13 Thread Thomas Simmons
Hello Clodonil,

I just got to this point in my testing. Be sure you link the files to
/lib64 if you are running a 64 bit version of CentOS. I was having the same
problem and realized the files needed to go in /lib64.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] winbind - samba4

2012-12-13 Thread Clodonil Trigo
Hello Thomas,

That was it. I made a link in / lib64 and resolved.


Clodonil


2012/12/13 Thomas Simmons twsn...@gmail.com

 I just got to this point in my testing. Be sure you link the files to
 /lib64 if you are running a 64 bit version of CentOS. I was having the same
 problem and realized the files needed to go in /lib64.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] winbind - samba4

2012-12-05 Thread Clodonil Trigo
Hi Andrew,

The pipe is in /usr/local/samba/var/run/winbindd. The winbind this working
because the wbinfo returns successfully. I think that is something between
the centos
and the lib's winbind.


Clodonil

Prof. Msc. Clodonil H. Trigo
www.nisled.org
E-mail: clodo...@nisled.org

Classificação: () Confidencial (X) Interna
As informações contidas nesta mensagem e respectivos anexos são de
interesse exclusivo a quem foram dirigidos, podendo ser confidenciais,
portanto fica proibida sua retenção, distribuição, divulgação, reprodução
ou utilização, sob as penas da lei. Caso tenha recebido esta mensagem por
engano, pedimos a gentileza de informar ao seu autor, eliminando-a de sua
caixa de entrada, registros ou sistema de controle.



2012/12/4 Andrew Bartlett abart...@samba.org

 On Mon, 2012-12-03 at 22:11 +0200, Hleb Valoshka wrote:
  On 12/3/12, Clodonil Trigo clodo...@nisled.org wrote:
   I am using centos 6.3 and did the migration from samba3 to Samba4.
 More the
   getent passwd does not return users.
   I made the link:
   ln-s /usr/local/samba/lib/libnss_winbind.so.2 / lib/libnss_winbind.so
   ln-s /lib/libnss_winbind.so /lib/libnss_winbind.so.2
 
  I had similar problem but with Debian package, so I'm not sure that
  I'll help you (debian samba4 package is rather interesting thing) but
  in my case the problem was that libnss_winbind expects socket to be in
  /tmp/.winbind/ (or .winbindd? Check with strings.) while winbind
  component stores it in /var/run/samba4/winbind/ (I don't know the
  correct path for your case). Try to make bind mount of socket
  directory or set correct path in smb.conf.

 If the package is expecting a different path, then it is almost
 certainly also expecting a different version of the winbind pipe
 protocol, so this would not help.

 Andrew Bartlett

 --
 Andrew Bartletthttp://samba.org/~abartlet/
 Authentication Developer, Samba Team   http://samba.org


 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] winbind - samba4

2012-12-05 Thread Hleb Valoshka
On 12/5/12, Clodonil Trigo clodo...@nisled.org wrote:
 The pipe is in /usr/local/samba/var/run/winbindd. The winbind this working
 because the wbinfo returns successfully. I think that is something between
 the centos and the lib's winbind.

Yep, I wasn't correct: in Debian one can have the opposite issue --
working nss but not wbinfo. Sorry :(
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] winbind - samba4

2012-12-05 Thread Clodonil Trigo
Hello,

I solved the problem;

solution:

# ln-s / usr/local/samba/lib/libnss_winbind.so.2 / lib64/libnss_winbind.so
# ln-s / lib / libnss_winbind.so / lib/libnss_winbind.so.2

to:

# ln-s / usr/local/samba/lib/libnss_winbind.so.2 / lib64/libnss_winbind.so
# ln-s / lib64/libnss_winbind.so / lib64/libnss_winbind.so.2

success with getent.

thank you,

Migration completed successfully

Clodonil



Prof. Msc. Clodonil H. Trigo
www.nisled.org
E-mail: clodo...@nisled.org

Classificação: () Confidencial (X) Interna
As informações contidas nesta mensagem e respectivos anexos são de
interesse exclusivo a quem foram dirigidos, podendo ser confidenciais,
portanto fica proibida sua retenção, distribuição, divulgação, reprodução
ou utilização, sob as penas da lei. Caso tenha recebido esta mensagem por
engano, pedimos a gentileza de informar ao seu autor, eliminando-a de sua
caixa de entrada, registros ou sistema de controle.



2012/12/5 Hleb Valoshka 375...@gmail.com

 On 12/5/12, Clodonil Trigo clodo...@nisled.org wrote:
  The pipe is in /usr/local/samba/var/run/winbindd. The winbind this
 working
  because the wbinfo returns successfully. I think that is something
 between
  the centos and the lib's winbind.

 Yep, I wasn't correct: in Debian one can have the opposite issue --
 working nss but not wbinfo. Sorry :(
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] winbind - samba4

2012-12-04 Thread Clodonil Trigo
Hi Hleb,

I did not think the process of winbind, I believe it is internal to samba.
I did several test before migrating to the samba3 Samba4 and had success in
all cases. More time to make real the problem gave winbind.

What line you changed in smb.conf?


Prof. Msc. Clodonil H. Trigo
www.nisled.org
E-mail: clodo...@nisled.org

Classificação: () Confidencial (X) Interna
As informações contidas nesta mensagem e respectivos anexos são de
interesse exclusivo a quem foram dirigidos, podendo ser confidenciais,
portanto fica proibida sua retenção, distribuição, divulgação, reprodução
ou utilização, sob as penas da lei. Caso tenha recebido esta mensagem por
engano, pedimos a gentileza de informar ao seu autor, eliminando-a de sua
caixa de entrada, registros ou sistema de controle.



2012/12/3 Hleb Valoshka 375...@gmail.com

 On 12/3/12, Clodonil Trigo clodo...@nisled.org wrote:
  I am using centos 6.3 and did the migration from samba3 to Samba4. More
 the
  getent passwd does not return users.
  I made the link:
  ln-s /usr/local/samba/lib/libnss_winbind.so.2 / lib/libnss_winbind.so
  ln-s /lib/libnss_winbind.so /lib/libnss_winbind.so.2

 I had similar problem but with Debian package, so I'm not sure that
 I'll help you (debian samba4 package is rather interesting thing) but
 in my case the problem was that libnss_winbind expects socket to be in
 /tmp/.winbind/ (or .winbindd? Check with strings.) while winbind
 component stores it in /var/run/samba4/winbind/ (I don't know the
 correct path for your case). Try to make bind mount of socket
 directory or set correct path in smb.conf.
 --
 To unsubscribe from this list go to the following URL and read the
 instructions:  https://lists.samba.org/mailman/options/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] winbind - samba4

2012-12-04 Thread Clodonil Trigo
I used this howto. Several tests made ​​prior to migration, and in any case
worked.

Its make a debug this?


Clodonil

2012/12/3 Rowland Penny rpe...@f2s.com

 Hi, I take it that you have followed the upgrade howto at:
 https://wiki.samba.org/index.**php/Samba4/samba-tool/domain/**
 classicupgrade/HOWTOhttps://wiki.samba.org/index.php/Samba4/samba-tool/domain/classicupgrade/HOWTO
 If you haven't, go there and see if you have missed a step.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] winbind - samba4

2012-12-04 Thread Rowland Penny

On 04/12/12 11:52, Clodonil Trigo wrote:
I used this howto. Several tests made ​​prior to migration, and in any 
case worked.


Its make a debug this?


Clodonil

2012/12/3 Rowland Penny rpe...@f2s.com mailto:rpe...@f2s.com

Hi, I take it that you have followed the upgrade howto at:

https://wiki.samba.org/index.php/Samba4/samba-tool/domain/classicupgrade/HOWTO
If you haven't, go there and see if you have missed a step.



--
This message has been scanned for viruses and
dangerous content by *MailScanner* http://www.mailscanner.info/, and is
believed to be clean. 


This is strange, wbinfo -u shows all your users in samba 4, but getent 
returns nothing, getent should at least return your unix users, i.e. 
root etc.
I take it that after the classicupgrade you have turned samba3 off, so 
could this be Selinux?


Rowland

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] winbind - samba4

2012-12-04 Thread Clodonil Trigo
Yes, this Samba4 running. Add users normally. All other features of Samba4
this OK.
Only winbind not.

The Winbind there is pid or socket?

Clodonil

Prof. Msc. Clodonil H. Trigo
www.nisled.org
E-mail: clodo...@nisled.org

Classificação: () Confidencial (X) Interna
As informações contidas nesta mensagem e respectivos anexos são de
interesse exclusivo a quem foram dirigidos, podendo ser confidenciais,
portanto fica proibida sua retenção, distribuição, divulgação, reprodução
ou utilização, sob as penas da lei. Caso tenha recebido esta mensagem por
engano, pedimos a gentileza de informar ao seu autor, eliminando-a de sua
caixa de entrada, registros ou sistema de controle.



2012/12/4 Rowland Penny rpe...@f2s.com

  On 04/12/12 13:13, Clodonil Trigo wrote:

 Olá Rowland,

  Yes, the command getent returns the users of the  /etc/passwd, more not
 return of Samba4.

  look selinux:

  [root@lost samba]# cat /etc/selinux/config
   SELINUX=disabled
  SELINUXTYPE=targeted


  I do not know what can be.


  Clodonil


 2012/12/4 Rowland Penny rpe...@f2s.com

 This is strange, wbinfo -u shows all your users in samba 4, but getent
 returns nothing, getent should at least return your unix users, i.e. root
 etc.
 I take it that after the classicupgrade you have turned samba3 off, so
 could this be Selinux?



 --
 This message has been scanned for viruses and
 dangerous content by *MailScanner* http://www.mailscanner.info/, and is
 believed to be clean.

 OK, are sure that Samba4 is running? what does 'ps ax | grep samba'
 return? and does 'ps ax | grep winbind' return anything?


 Rowland


 --
 This message has been scanned for viruses and
 dangerous content by *MailScanner* http://www.mailscanner.info/, and is
 believed to be clean.

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] winbind - samba4

2012-12-04 Thread Rowland Penny

On 04/12/12 14:17, Clodonil Trigo wrote:
Yes, this Samba4 running. Add users normally. All other features of 
Samba4 this OK.

Only winbind not.

The Winbind there is pid or socket?

Clodonil

Prof. Msc. Clodonil H. Trigo
www.nisled.org http://www.nisled.org
E-mail: clodo...@nisled.org mailto:clodo...@nisled.org

Classificação: () Confidencial (X) Interna
As informações contidas nesta mensagem e respectivos anexos são de 
interesse exclusivo a quem foram dirigidos, podendo ser confidenciais, 
portanto fica proibida sua retenção, distribuição, divulgação, 
reprodução ou utilização, sob as penas da lei. Caso tenha recebido 
esta mensagem por engano, pedimos a gentileza de informar ao seu 
autor, eliminando-a de sua caixa de entrada, registros ou sistema de 
controle.




2012/12/4 Rowland Penny rpe...@f2s.com mailto:rpe...@f2s.com

On 04/12/12 13:13, Clodonil Trigo wrote:

Olá Rowland,

Yes, the command getent returns the users of the  /etc/passwd,
more not return of Samba4.

look selinux:

[root@lost samba]# cat /etc/selinux/config
SELINUX=disabled
SELINUXTYPE=targeted


I do not know what can be.


Clodonil


2012/12/4 Rowland Penny rpe...@f2s.com mailto:rpe...@f2s.com

This is strange, wbinfo -u shows all your users in samba 4,
but getent returns nothing, getent should at least return
your unix users, i.e. root etc.
I take it that after the classicupgrade you have turned
samba3 off, so could this be Selinux?



-- 
This message has been scanned for viruses and

dangerous content by *MailScanner*
http://www.mailscanner.info/, and is
believed to be clean.

OK, are sure that Samba4 is running? what does 'ps ax | grep
samba' return? and does 'ps ax | grep winbind' return anything?


Rowland


-- 
This message has been scanned for viruses and

dangerous content by *MailScanner* http://www.mailscanner.info/,
and is
believed to be clean.



--
This message has been scanned for viruses and
dangerous content by *MailScanner* http://www.mailscanner.info/, and is
believed to be clean. 

Please post the output of 'ps ax | grep samba' and 'ps ax | grep winbind'

Winbindd is a pipe and should be in /usr/local/samba/var/run/winbindd

Also could you please post your /usr/local/samba/etc/smb.conf

Rowland


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] winbind - samba4

2012-12-04 Thread Clodonil Trigo
Hi,

Commands:

[root@lost var]# ps ax | grep samba
23756 ?S  0:00 /usr/local/samba/sbin/samba
23757 ?S  0:38 /usr/local/samba/sbin/samba
23758 ?S  0:03 /usr/local/samba/sbin/samba
23761 ?S  0:00 /usr/local/samba/sbin/smbd --option=server role
check:inhibit=yes --foreground
23803 ?S  0:00 /usr/local/samba/sbin/smbd --option=server role
check:inhibit=yes --foreground
23818 ?S  1:04 /usr/local/samba/sbin/smbd --option=server role
check:inhibit=yes --foreground
23826 ?S  0:36 /usr/local/samba/sbin/smbd --option=server role
check:inhibit=yes --foreground


[root@lost var]# ps ax | grep winbind
30147 pts/2S+ 0:00 grep winbind


/usr/local/samba/etc/smb.conf

[global]
workgroup = KEEPERS.BRASIL
realm = KEEPERSBRASIL.COM
netbios name = LOST
server role = active directory domain controller
server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbind,
ntp_signd, kcc, dnsupdate
idmap_ldb:use rfc2307=Yes

[usuarios]
path = /V01/Dados/usuarios
read only = No
create mask = 2777
directory mask = 2777


[netlogon]
path = /usr/local/samba4-migracao/var/locks/sysvol/keepersbrasil.com/scripts
read only = No

[sysvol]
path = /usr/local/samba4-migracao/var/locks/sysvol
read only = No


Clodonil

2012/12/4 Rowland Penny rpe...@f2s.com

 'ps ax | grep samba
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] winbind - samba4

2012-12-04 Thread Rowland Penny

On 04/12/12 14:44, Clodonil Trigo wrote:

Hi,

Commands:

[root@lost var]# ps ax | grep samba
23756 ?S  0:00 /usr/local/samba/sbin/samba
23757 ?S  0:38 /usr/local/samba/sbin/samba
23758 ?S  0:03 /usr/local/samba/sbin/samba
23761 ?S  0:00 /usr/local/samba/sbin/smbd --option=server 
role check:inhibit=yes --foreground
23803 ?S  0:00 /usr/local/samba/sbin/smbd --option=server 
role check:inhibit=yes --foreground
23818 ?S  1:04 /usr/local/samba/sbin/smbd --option=server 
role check:inhibit=yes --foreground
23826 ?S  0:36 /usr/local/samba/sbin/smbd --option=server 
role check:inhibit=yes --foreground



[root@lost var]# ps ax | grep winbind
30147 pts/2S+ 0:00 grep winbind


/usr/local/samba/etc/smb.conf

[global]
workgroup = KEEPERS.BRASIL
realm = KEEPERSBRASIL.COM http://KEEPERSBRASIL.COM
netbios name = LOST
server role = active directory domain controller
server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, 
winbind, ntp_signd, kcc, dnsupdate

idmap_ldb:use rfc2307=Yes

[usuarios]
path = /V01/Dados/usuarios
read only = No
create mask = 2777
directory mask = 2777


[netlogon]
path = 
/usr/local/samba4-migracao/var/locks/sysvol/keepersbrasil.com/scripts 
http://keepersbrasil.com/scripts

read only = No

[sysvol]
path = /usr/local/samba4-migracao/var/locks/sysvol
read only = No


Clodonil

2012/12/4 Rowland Penny rpe...@f2s.com mailto:rpe...@f2s.com

'ps ax | grep samba



--
This message has been scanned for viruses and
dangerous content by *MailScanner* http://www.mailscanner.info/, and is
believed to be clean. 

Well, I am lost now, you only have the samba  smbd daemons running.
The users must be there as wbinfo -u shows them.
Selinux is Disabled (I take it that the server has been restarted since 
selinux was disabled)
Is there anything in any of the logs? /var/log/messages 
/usr/local/samba/var/log.samba
Have you tried joining another unix pc to the domain and running getent 
from there?


Rowland


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] winbind - samba4

2012-12-04 Thread Hleb Valoshka
On 12/4/12, Clodonil Trigo clodo...@nisled.org wrote:

 I did not think the process of winbind, I believe it is internal to samba.

There is no separate winbindd process in samba4. There are several
*.so providing this service.

 I did several test before migrating to the samba3 Samba4 and had success in
 all cases. More time to make real the problem gave winbind.

But have you tried?

 What line you changed in smb.conf?

I'm still using bind mount :) But option you need is winbindd socket
directory.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] winbind - samba4

2012-12-04 Thread Andrew Bartlett
On Mon, 2012-12-03 at 22:11 +0200, Hleb Valoshka wrote:
 On 12/3/12, Clodonil Trigo clodo...@nisled.org wrote:
  I am using centos 6.3 and did the migration from samba3 to Samba4. More the
  getent passwd does not return users.
  I made the link:
  ln-s /usr/local/samba/lib/libnss_winbind.so.2 / lib/libnss_winbind.so
  ln-s /lib/libnss_winbind.so /lib/libnss_winbind.so.2
 
 I had similar problem but with Debian package, so I'm not sure that
 I'll help you (debian samba4 package is rather interesting thing) but
 in my case the problem was that libnss_winbind expects socket to be in
 /tmp/.winbind/ (or .winbindd? Check with strings.) while winbind
 component stores it in /var/run/samba4/winbind/ (I don't know the
 correct path for your case). Try to make bind mount of socket
 directory or set correct path in smb.conf.

If the package is expecting a different path, then it is almost
certainly also expecting a different version of the winbind pipe
protocol, so this would not help.

Andrew Bartlett

-- 
Andrew Bartletthttp://samba.org/~abartlet/
Authentication Developer, Samba Team   http://samba.org


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] winbind - samba4

2012-12-03 Thread Rowland Penny

On 03/12/12 12:07, Clodonil Trigo wrote:

Hi,

I am using centos 6.3 and did the migration from samba3 to Samba4. More the
getent passwd does not return users.

I made the link:
ln-s /usr/local/samba/lib/libnss_winbind.so.2 / lib/libnss_winbind.so
ln-s /lib/libnss_winbind.so /lib/libnss_winbind.so.2

And change in /etc/nsswitch:

passwd: files winbind
shadow: files
group: files winbind

When I run the command:

/usr/local/samba/bin/wbinfo-u

Returns correctly.

Can anyone help me.

Hi, have you tried restarting Samba4?

Rowland

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] winbind - samba4

2012-12-03 Thread Rowland Penny

On 03/12/12 17:01, Clodonil Trigo wrote:

On 03/12/12 12:07, Clodonil Trigo wrote:
* Hi, I am using centos 6.3 and did the migration from samba3 to Samba4. More the** getent passwd does not return users. I made the link:** ln-s 
/usr/local/samba/lib/libnss_winbind.so.2 / lib/libnss_winbind.so** ln-s /lib/libnss_winbind.so /lib/libnss_winbind.so.2 And change in /etc/nsswitch: passwd: files 
winbind** shadow: files** group: files winbind When I run the command: /usr/local/samba/bin/wbinfo-u Returns correctly. 
Can anyone help me.*Hi, have you tried restarting Samba4?

Rowland
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.**

I did restart, but it did not work. The Samba4 is working normal. Only
getent not.

Clodonil
Hi, I take it that you have followed the upgrade howto at: 
https://wiki.samba.org/index.php/Samba4/samba-tool/domain/classicupgrade/HOWTO

If you haven't, go there and see if you have missed a step.

Rowland

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] winbind - samba4

2012-12-03 Thread Hleb Valoshka
On 12/3/12, Clodonil Trigo clodo...@nisled.org wrote:
 I am using centos 6.3 and did the migration from samba3 to Samba4. More the
 getent passwd does not return users.
 I made the link:
 ln-s /usr/local/samba/lib/libnss_winbind.so.2 / lib/libnss_winbind.so
 ln-s /lib/libnss_winbind.so /lib/libnss_winbind.so.2

I had similar problem but with Debian package, so I'm not sure that
I'll help you (debian samba4 package is rather interesting thing) but
in my case the problem was that libnss_winbind expects socket to be in
/tmp/.winbind/ (or .winbindd? Check with strings.) while winbind
component stores it in /var/run/samba4/winbind/ (I don't know the
correct path for your case). Try to make bind mount of socket
directory or set correct path in smb.conf.
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba