[Samba] Getting user info

2004-12-21 Thread Lars Roland
Hi all

I am looking for a way to get samba to display all avalibel
information for a given user (like email, name, ou). I am aware that
this is not information directly accesible though active directory
unless you use ldap. But I was thinking that someone in here must know
a way to retirve such info given a specific domain username.


Regards.

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


[Samba] Samba getting user info from NT PDC

2003-02-11 Thread Pierrick Brossin
Hi!

My boss asked me to be able to share some directories on a FreeBSD Samba server
with users already created (and used) on a NT 4.0 PDC server.

So I followed http://www.sugoi.org/bits/index.php?bit_id=10

I just replaced the Windows 2k part by adding the NetBIOS name of the machine to
the NT PDC.

When I did the smbpasswd trick it worked like charm:

testsmb# smbpasswd -j CH-DOMAIN -r PDC
2003/02/11 10:11:23 : change_trust_account_password: Changed password for domain
CH-DOMAIN.
Joined domain CH-DOMAIN

The trouble is when I make a share on my Samba server and I try to access it
from a Windows machine connected to the NT PDC it keeps asking the password and
never enters the share.

What I need to do is to share a directory. Try to enter it from a Windows
machine which is connected to the NT PDC. Samba asks the NT PDC if the user is
valid and if so it enters the share.
But it doesn't work at all.

Any idea ?

Thanx !

Here is my smb config file:

# Global parameters
[global]
workgroup = CH-DOMAIN
netbios name = TESTSMB
server string = TESTSMB Server
interfaces = 10.41.0.39/24
security = DOMAIN
password server = PDC
encrypt passwords = yes
update encrypted = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
*passwd:*all*authentication*tokens*updated*successfully*
remote announce = 10.41.0.255
log file = /var/log/log.%m
max log size = 50
load printers = no
os level = 0
preferred master = False
local master = no
domain master = False
wins support = no
wins server = 10.41.0.16
hosts allow = 10.41.0.
dns proxy = no

[www]
comment = www root directory
path = /usr/local/www/data/
browseable = yes
writable = yes

-- 
Pierrick Brossin
IT Swiss - QUARK Media House
6a Puits Godet, 2000 Neuchatel, Switzerland
Mail Prof: [EMAIL PROTECTED] Mail Priv: [EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



RE: [Samba] Samba getting user info from NT PDC

2003-02-11 Thread Simeonidis, Steve
Make sure the same username exists on the SAMBA server with the
correct permissions to the share.

send you SAMBA configuration file.

Thanks


Steve Simeonidis
Network Engineer, Spherion Education
Spherion Group Ltd

Making the Workplace Work Better

1st Floor, 493 St. Kilda Rd,
Melbourne VIC 3004, 
Australia
+61 3 9243 2382
[EMAIL PROTECTED]



-Original Message-
From: Pierrick Brossin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 9:22 PM
To: [EMAIL PROTECTED]
Subject: [Samba] Samba getting user info from NT PDC


Hi!

My boss asked me to be able to share some directories on a FreeBSD Samba
server
with users already created (and used) on a NT 4.0 PDC server.

So I followed http://www.sugoi.org/bits/index.php?bit_id=10

I just replaced the Windows 2k part by adding the NetBIOS name of the
machine to
the NT PDC.

When I did the smbpasswd trick it worked like charm:

testsmb# smbpasswd -j CH-DOMAIN -r PDC
2003/02/11 10:11:23 : change_trust_account_password: Changed password for
domain
CH-DOMAIN.
Joined domain CH-DOMAIN

The trouble is when I make a share on my Samba server and I try to access it
from a Windows machine connected to the NT PDC it keeps asking the password
and
never enters the share.

What I need to do is to share a directory. Try to enter it from a Windows
machine which is connected to the NT PDC. Samba asks the NT PDC if the user
is
valid and if so it enters the share.
But it doesn't work at all.

Any idea ?

Thanx !

Here is my smb config file:

# Global parameters
[global]
workgroup = CH-DOMAIN
netbios name = TESTSMB
server string = TESTSMB Server
interfaces = 10.41.0.39/24
security = DOMAIN
password server = PDC
encrypt passwords = yes
update encrypted = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password*
%n\n
*passwd:*all*authentication*tokens*updated*successfully*
remote announce = 10.41.0.255
log file = /var/log/log.%m
max log size = 50
load printers = no
os level = 0
preferred master = False
local master = no
domain master = False
wins support = no
wins server = 10.41.0.16
hosts allow = 10.41.0.
dns proxy = no

[www]
comment = www root directory
path = /usr/local/www/data/
browseable = yes
writable = yes

-- 
Pierrick Brossin
IT Swiss - QUARK Media House
6a Puits Godet, 2000 Neuchatel, Switzerland
Mail Prof: [EMAIL PROTECTED] Mail Priv: [EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

The information contained in this email and any attachments to it:

(a) may be confidential and if you are not the intended recipient, any interference 
with, 
use, disclosure or copying of this material is unauthorised and prohibited; and

(b) may contain personal information of the recipient and/or the sender as defined 
under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to 
collect, hold and use such information and any personal information contained in a 
response to this email, for any reasonable purpose in the ordinary course of 
Spherion's 
business, including forwarding this email internally or disclosing it to a third 
party. All 
personal information collected by Spherion will be handled in accordance with 
Spherion's Privacy Policy. If you have received this email in error, please notify the 
sender and delete it.

(c) you agree not to employ or arrange employment for any candidate(s) supplied in 
this email and any attachments without first entering into a contractual agreement 
with 
Spherion. You further agree not to divulge any information contained in this document 
to any person(s) or entities without the express permission of Spherion.


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



RE: [Samba] Samba getting user info from NT PDC

2003-02-11 Thread Simeonidis, Steve
Sorry, you have a ttached your conf file.

Try using password server = *

Try login to the share using smbclient //TESTSMB/www -U username,
enable debug level and check the SAMBA log files for errors.

Thanks


Steve Simeonidis
Network Engineer, Spherion Education
Spherion Group Ltd

Making the Workplace Work Better

1st Floor, 493 St. Kilda Rd,
Melbourne VIC 3004, 
Australia
+61 3 9243 2382
[EMAIL PROTECTED]



-Original Message-
From: Pierrick Brossin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 11, 2003 9:22 PM
To: [EMAIL PROTECTED]
Subject: [Samba] Samba getting user info from NT PDC


Hi!

My boss asked me to be able to share some directories on a FreeBSD Samba
server
with users already created (and used) on a NT 4.0 PDC server.

So I followed http://www.sugoi.org/bits/index.php?bit_id=10

I just replaced the Windows 2k part by adding the NetBIOS name of the
machine to
the NT PDC.

When I did the smbpasswd trick it worked like charm:

testsmb# smbpasswd -j CH-DOMAIN -r PDC
2003/02/11 10:11:23 : change_trust_account_password: Changed password for
domain
CH-DOMAIN.
Joined domain CH-DOMAIN

The trouble is when I make a share on my Samba server and I try to access it
from a Windows machine connected to the NT PDC it keeps asking the password
and
never enters the share.

What I need to do is to share a directory. Try to enter it from a Windows
machine which is connected to the NT PDC. Samba asks the NT PDC if the user
is
valid and if so it enters the share.
But it doesn't work at all.

Any idea ?

Thanx !

Here is my smb config file:

# Global parameters
[global]
workgroup = CH-DOMAIN
netbios name = TESTSMB
server string = TESTSMB Server
interfaces = 10.41.0.39/24
security = DOMAIN
password server = PDC
encrypt passwords = yes
update encrypted = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password*
%n\n
*passwd:*all*authentication*tokens*updated*successfully*
remote announce = 10.41.0.255
log file = /var/log/log.%m
max log size = 50
load printers = no
os level = 0
preferred master = False
local master = no
domain master = False
wins support = no
wins server = 10.41.0.16
hosts allow = 10.41.0.
dns proxy = no

[www]
comment = www root directory
path = /usr/local/www/data/
browseable = yes
writable = yes

-- 
Pierrick Brossin
IT Swiss - QUARK Media House
6a Puits Godet, 2000 Neuchatel, Switzerland
Mail Prof: [EMAIL PROTECTED] Mail Priv: [EMAIL PROTECTED]
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

The information contained in this email and any attachments to it:

(a) may be confidential and if you are not the intended recipient, any interference 
with, 
use, disclosure or copying of this material is unauthorised and prohibited; and

(b) may contain personal information of the recipient and/or the sender as defined 
under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to 
collect, hold and use such information and any personal information contained in a 
response to this email, for any reasonable purpose in the ordinary course of 
Spherion's 
business, including forwarding this email internally or disclosing it to a third 
party. All 
personal information collected by Spherion will be handled in accordance with 
Spherion's Privacy Policy. If you have received this email in error, please notify the 
sender and delete it.

(c) you agree not to employ or arrange employment for any candidate(s) supplied in 
this email and any attachments without first entering into a contractual agreement 
with 
Spherion. You further agree not to divulge any information contained in this document 
to any person(s) or entities without the express permission of Spherion.


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



RE: [Samba] Samba getting user info from NT PDC

2003-02-11 Thread bkrusic
Hi,

1 caveat for this to work is that the smb user must
have an /etc/passwd entry.  It can be null login null 
pass and null home dir (all the gecos feilds can be
blank) but the name must exist.  I also had to tweak
the uid/gid feilds too.

Atleast thats what I had to do with v2.2.7.
Bri-

__
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba



Re: [Samba] Samba getting user info from NT PDC

2003-02-11 Thread Pierrick Brossin
RE: [Samba] Samba getting user info from NT PDCThanx for your answer.

It worked after I added the username to the samba server...
I read that on samba.org just after I sent the mail to the mailing list !

Now, someone told me I could use winbind to avoid having to add the users to the local 
machine..

I'll see that on thursday afternoon or friday.

Cya
  - Original Message - 
  From: Simeonidis, Steve 
  To: 'Pierrick Brossin' ; [EMAIL PROTECTED] 
  Sent: Tuesday, February 11, 2003 10:53 PM
  Subject: RE: [Samba] Samba getting user info from NT PDC


  Sorry, you have a ttached your conf file. 

  Try using password server = * 

  Try login to the share using smbclient //TESTSMB/www -U username, 
  enable debug level and check the SAMBA log files for errors. 

  Thanks 



  Steve Simeonidis 
  Network Engineer, Spherion Education 
  Spherion Group Ltd 

  Making the Workplace Work Better 

  1st Floor, 493 St. Kilda Rd, 
  Melbourne VIC 3004, 
  Australia 
  +61 3 9243 2382 
  [EMAIL PROTECTED] 




  -Original Message- 
  From: Pierrick Brossin [mailto:[EMAIL PROTECTED]] 
  Sent: Tuesday, February 11, 2003 9:22 PM 
  To: [EMAIL PROTECTED] 
  Subject: [Samba] Samba getting user info from NT PDC 



  Hi! 

  My boss asked me to be able to share some directories on a FreeBSD Samba server 
  with users already created (and used) on a NT 4.0 PDC server. 

  So I followed http://www.sugoi.org/bits/index.php?bit_id=10 

  I just replaced the Windows 2k part by adding the NetBIOS name of the machine to 
  the NT PDC. 

  When I did the smbpasswd trick it worked like charm: 

  testsmb# smbpasswd -j CH-DOMAIN -r PDC 
  2003/02/11 10:11:23 : change_trust_account_password: Changed password for domain 
  CH-DOMAIN. 
  Joined domain CH-DOMAIN 

  The trouble is when I make a share on my Samba server and I try to access it 
  from a Windows machine connected to the NT PDC it keeps asking the password and 
  never enters the share. 

  What I need to do is to share a directory. Try to enter it from a Windows 
  machine which is connected to the NT PDC. Samba asks the NT PDC if the user is 
  valid and if so it enters the share. 
  But it doesn't work at all. 

  Any idea ? 

  Thanx ! 

  Here is my smb config file: 

  # Global parameters 
  [global] 
  workgroup = CH-DOMAIN 
  netbios name = TESTSMB 
  server string = TESTSMB Server 
  interfaces = 10.41.0.39/24 
  security = DOMAIN 
  password server = PDC 
  encrypt passwords = yes 
  update encrypted = yes 
  unix password sync = yes 
  passwd program = /usr/bin/passwd %u 
  passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n 
  *passwd:*all*authentication*tokens*updated*successfully* 
  remote announce = 10.41.0.255 
  log file = /var/log/log.%m 
  max log size = 50 
  load printers = no 
  os level = 0 
  preferred master = False 
  local master = no 
  domain master = False 
  wins support = no 
  wins server = 10.41.0.16 
  hosts allow = 10.41.0. 
  dns proxy = no 

  [www] 
  comment = www root directory 
  path = /usr/local/www/data/ 
  browseable = yes 
  writable = yes 

  -- 
  Pierrick Brossin 
  IT Swiss - QUARK Media House 
  6a Puits Godet, 2000 Neuchatel, Switzerland 
  Mail Prof: [EMAIL PROTECTED] Mail Priv: [EMAIL PROTECTED] 
  -- 
  To unsubscribe from this list go to the following URL and read the 
  instructions:  http://lists.samba.org/mailman/listinfo/samba 

The information contained in this email and any attachments to it:

(a) may be confidential and if you are not the intended recipient, any interference 
with, 
use, disclosure or copying of this material is unauthorised and prohibited; and

(b) may contain personal information of the recipient and/or the sender as defined 
under the Privacy Act 1988 (Cth). Consent is hereby given by the recipient(s) to 
collect, hold and use such information and any personal information contained in a 
response to this email, for any reasonable purpose in the ordinary course of 
Spherion's 
business, including forwarding this email internally or disclosing it to a third 
party. All 
personal information collected by Spherion will be handled in accordance with 
Spherion's Privacy Policy. If you have received this email in error, please notify the 
sender and delete it.

(c) you agree not to employ or arrange employment for any candidate(s) supplied in 
this email and any attachments without first entering into a contractual agreement 
with 
Spherion. You further agree not to divulge any information contained in this document 
to any person(s) or entities without the express permission of Spherion.




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



RE: [Samba] Samba getting user info from NT PDC

2003-02-11 Thread Simeonidis, Steve
winbind seems to work OK, the only problem that I had with that was
length of the groups (characters).
 
eg.
 
group
DOMAIN+Everyone
 
Trying to give a linux directory DOMAIN+Everyone rights ls -l displays
only
the first 8 characters DOMAIN+E of the group, if you have alot of groups
it makes it difficult to 
figure out which one is which.
I'm not sure if there is an easy way to fix that.
 
 
Thanks 
 


Steve Simeonidis 
Network Engineer, Spherion Education 
Spherion Group Ltd 

Making the Workplace Work Better 

1st Floor, 493 St. Kilda Rd, 
Melbourne VIC 3004, 
Australia 
+61 3 9243 2382 
[EMAIL PROTECTED] 

-Original Message-
From: Pierrick Brossin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 12, 2003 9:11 AM
To: Simeonidis, Steve; [EMAIL PROTECTED]
Subject: Re: [Samba] Samba getting user info from NT PDC


Thanx for your answer.
 
It worked after I added the username to the samba server...
I read that on samba.org just after I sent the mail to the mailing list !
 
Now, someone told me I could use winbind to avoid having to add the users to
the local machine..
 
I'll see that on thursday afternoon or friday.
 
Cya

- Original Message - 
From: Simeonidis, Steve mailto:[EMAIL PROTECTED]  
To: 'Pierrick Brossin' mailto:[EMAIL PROTECTED]  ;
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  
Sent: Tuesday, February 11, 2003 10:53 PM
Subject: RE: [Samba] Samba getting user info from NT PDC


Sorry, you have a ttached your conf file. 

Try using password server = * 

Try login to the share using smbclient //TESTSMB/www -U username, 
enable debug level and check the SAMBA log files for errors. 

Thanks 


Steve Simeonidis 
Network Engineer, Spherion Education 
Spherion Group Ltd 

Making the Workplace Work Better 

1st Floor, 493 St. Kilda Rd, 
Melbourne VIC 3004, 
Australia 
+61 3 9243 2382 
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]  



-Original Message- 
From: Pierrick Brossin [ mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] ] 
Sent: Tuesday, February 11, 2003 9:22 PM 
To: [EMAIL PROTECTED] 
Subject: [Samba] Samba getting user info from NT PDC 


Hi! 

My boss asked me to be able to share some directories on a FreeBSD Samba
server 
with users already created (and used) on a NT 4.0 PDC server. 

So I followed http://www.sugoi.org/bits/index.php?bit_id=10
http://www.sugoi.org/bits/index.php?bit_id=10  

I just replaced the Windows 2k part by adding the NetBIOS name of the
machine to 
the NT PDC. 

When I did the smbpasswd trick it worked like charm: 

testsmb# smbpasswd -j CH-DOMAIN -r PDC 
2003/02/11 10:11:23 : change_trust_account_password: Changed password for
domain 
CH-DOMAIN. 
Joined domain CH-DOMAIN 

The trouble is when I make a share on my Samba server and I try to access it

from a Windows machine connected to the NT PDC it keeps asking the password
and 
never enters the share. 

What I need to do is to share a directory. Try to enter it from a Windows 
machine which is connected to the NT PDC. Samba asks the NT PDC if the user
is 
valid and if so it enters the share. 
But it doesn't work at all. 

Any idea ? 

Thanx ! 

Here is my smb config file: 

# Global parameters 
[global] 
workgroup = CH-DOMAIN 
netbios name = TESTSMB 
server string = TESTSMB Server 
interfaces = 10.41.0.39/24 
security = DOMAIN 
password server = PDC 
encrypt passwords = yes 
update encrypted = yes 
unix password sync = yes 
passwd program = /usr/bin/passwd %u 
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password*
%n\n 
*passwd:*all*authentication*tokens*updated*successfully* 
remote announce = 10.41.0.255 
log file = /var/log/log.%m 
max log size = 50 
load printers = no 
os level = 0 
preferred master = False 
local master = no 
domain master = False 
wins support = no 
wins server = 10.41.0.16 
hosts allow = 10.41.0. 
dns proxy = no 

[www] 
comment = www root directory 
path = /usr/local/www/data/ 
browseable = yes 
writable = yes 

-- 
Pierrick Brossin 
IT Swiss - QUARK Media House 
6a Puits Godet, 2000 Neuchatel, Switzerland 
Mail Prof: [EMAIL PROTECTED] Mail Priv: [EMAIL PROTECTED] 
-- 
To unsubscribe from this list go to the following URL and read the 
instructions:  http://lists.samba.org/mailman/listinfo/samba
http://lists.samba.org/mailman/listinfo/samba  


The information contained in this email and any attachments to it:



(a) may be confidential and if you are not the intended recipient, any
interference with, 

use, disclosure or copying of this material is unauthorised and prohibited;
and



(b) may contain personal information of the recipient and/or the sender as
defined 

under the Privacy Act 1988 (Cth). Consent is hereby given by the
recipient(s) to 

collect, hold and use such information and any personal information
contained