[Samba] can i change the pwd bby parameter with pdbedit?

2005-10-28 Thread Rodrigo De la Pena

hello, 

i need to change the password of my users using an script, not by
prompt, but y tried the pdbedit and smbpasswd commands and didn't work,
they prompt for password, is there a flag or something to set the
password in the command to avoid the prompt? i read man pages of these
commands and there are nothing to do what i need.


thank you



-- 
Rodrigo De la Peña
Soporte Corporativo
Calipso Comunicaciones

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


Re: [Samba] Authentication problem with Mysql backend

2005-10-28 Thread Rodrigo De la Pena

thann you Andrew for your help, it works fine

i add the users an open the tcp 139 and 445 and udp 137 and everything
went fine.



On Thu, 2005-10-27 at 10:23 +1000, Andrew Bartlett wrote:
 On Wed, 2005-10-26 at 14:44 -0500, Rodrigo De la Pena wrote:
  i'm using samba-3.0.20b, 
  
  did you create the unix user-account aswell ??
  do i have to create the accounts in the OS to use them with mysql? 
  i create the account rodelapena whith its passwd and it failed by
  NT_STATUS_BAD_NETWORK_NAME, in theory the authentication worked, but it
  wont be necessary to create an OS account to could use it in mysql, am i
  wrong??.
  
  i made the changes to the smb.conf that you suggested me before the
  creation of the OS account and authentication failed again. 
 
 Yes, all Samba users must exist in the OS.  This is why I am mystified
 by the number of people who want to use MySQL to back Samba :-)
 
 I strongly suggest following the pdb_ldap route, and use nss_ldap to
 provide the users to the OS.
 
 Andrew Bartlett
 
-- 
Rodrigo De la Peña
Soporte Corporativo
Calipso Comunicaciones

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


Re: [Samba] Authentication problem with Mysql backend

2005-10-26 Thread Rodrigo De la Pena
i'm using samba-3.0.20b, 

did you create the unix user-account aswell ??
do i have to create the accounts in the OS to use them with mysql? 
i create the account rodelapena whith its passwd and it failed by
NT_STATUS_BAD_NETWORK_NAME, in theory the authentication worked, but it
wont be necessary to create an OS account to could use it in mysql, am i
wrong??.

i made the changes to the smb.conf that you suggested me before the
creation of the OS account and authentication failed again. 

thanks.

On Wed, 2005-10-26 at 09:14 +0200, Collen Blijenberg wrote:
 Whoh man...
 
 did you create the unix user-account aswell ??
 
 also try to change these settings:
 
 - encrypt passwords = YES
 - passdb backend = mysql:mysql
 - #mysql:username column = username:
 - #mysql:lanman pass column = lm_pw:
 - #mysql:nt pass column = nt_pw:
 - #mysql:plain pass column = plain_pw:
 - #mysql:unknown_3 column = NULL
 
 also what version of samba do you use ??
 
 
 
 Rodrigo De la Pena wrote:
  hi,
  
  /
  i'm trying to configure samba with the mysql backend but it doesn't
  work. my smb.conf file is this:
  /
  #BOF
  [global]
  security = user
  workgroup = CABRERA
  encrypt passwords = no
  ;passdb backend = mysql:/usr/local/samba/lib/pdb/mysql.so
  passdb backend = mysql:mysql
  mysql:mysql host = localhost
  mysql:mysql user = samba
  mysql:mysql password = abmas
  mysql:mysql database = samba
  mysql:mysql table = user
  
  mysql:username column = username:
  mysql:lanman pass column = lm_pw:
  mysql:nt pass column = nt_pw:
  ;mysql:plain pass column = plain_pw:
  mysql:unknown_3 column = NULL
  
  #EOF
  
  /
  when i run smbclient it fails
  /
  
  [EMAIL PROTECTED] ~]# smbclient  //localhost/rodelapena -U rodelapena -d 10
  /
  the dir exists in the route showed up. //home2/rodelapena/
  
  
  i don't know what is going on, the pdbedit command fails when i try to
  create an user but doesn't when i update it.
  
  I'm very new in samba, if you can help me with this problem i'll thank
  you ever.
  
  Thanks a lot.
  /
  
  
  
  
 
-- 
Rodrigo De la Peña
Soporte Corporativo
Calipso Comunicaciones

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


[Samba] Authentication problem with Mysql backend

2005-10-25 Thread Rodrigo De la Pena
 option IPTOS_LOWDELAY = 0
socket option IPTOS_THROUGHPUT = 0
socket option SO_SNDBUF = 50436
socket option SO_RCVBUF = 87680
socket option SO_SNDLOWAT = 1
socket option SO_RCVLOWAT = 1
socket option SO_SNDTIMEO = 0
socket option SO_RCVTIMEO = 0
 session request ok
write_socket(4,183)
write_socket(4,183) wrote 183
got smb length of 85
size=85
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=49153
smb_tid=0
smb_pid=13401
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]=7 (0x7)
smb_vwv[ 1]=12801 (0x3201)
smb_vwv[ 2]=  256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]=   65 (0x41)
smb_vwv[ 5]=0 (0x0)
smb_vwv[ 6]=  256 (0x100)
smb_vwv[ 7]=23040 (0x5A00)
smb_vwv[ 8]=   52 (0x34)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]=32995 (0x80E3)
smb_vwv[11]=32768 (0x8000)
smb_vwv[12]=61789 (0xF15D)
smb_vwv[13]=46233 (0xB499)
smb_vwv[14]=50649 (0xC5D9)
smb_vwv[15]=11265 (0x2C01)
smb_vwv[16]=1 (0x1)
smb_bcc=16
[000] 43 00 41 00 42 00 52 00  45 00 52 00 41 00 00 00  C.A.B.R.
E.R.A...
size=85
smb_com=0x72
smb_rcls=0
smb_reh=0
smb_err=0
smb_flg=136
smb_flg2=49153
smb_tid=0
smb_pid=13401
smb_uid=0
smb_mid=1
smt_wct=17
smb_vwv[ 0]=7 (0x7)
smb_vwv[ 1]=12801 (0x3201)
smb_vwv[ 2]=  256 (0x100)
smb_vwv[ 3]= 1024 (0x400)
smb_vwv[ 4]=   65 (0x41)
smb_vwv[ 5]=0 (0x0)
smb_vwv[ 6]=  256 (0x100)
smb_vwv[ 7]=23040 (0x5A00)
smb_vwv[ 8]=   52 (0x34)
smb_vwv[ 9]=64768 (0xFD00)
smb_vwv[10]=32995 (0x80E3)
smb_vwv[11]=32768 (0x8000)
smb_vwv[12]=61789 (0xF15D)
smb_vwv[13]=46233 (0xB499)
smb_vwv[14]=50649 (0xC5D9)
smb_vwv[15]=11265 (0x2C01)
smb_vwv[16]=1 (0x1)
smb_bcc=16
[000] 43 00 41 00 42 00 52 00  45 00 52 00 41 00 00 00  C.A.B.R.
E.R.A...
Serverzone is 18000
Password:
write_socket(4,164)
write_socket(4,164) wrote 164
got smb length of 35
size=35
smb_com=0x73
smb_rcls=109
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=49153
smb_tid=0
smb_pid=13401
smb_uid=0
smb_mid=2
smt_wct=0
smb_bcc=0
size=35
smb_com=0x73
smb_rcls=109
smb_reh=0
smb_err=49152
smb_flg=136
smb_flg2=49153
smb_tid=0
smb_pid=13401
smb_uid=0
smb_mid=2
smt_wct=0
smb_bcc=0
lang_tdb_init: loading /usr/local/samba/var/locks/lang_en_US.UTF-8.tdb
session setup failed: NT_STATUS_LOGON_FAILURE

/
i created the user rodelapena in mysql:
/

mysql select * from user;
++-+--+
+--+---++-
+-++-+---
+--+--+---+--+-
+-+-+--+--
+--
+--+--
+---+---++---+---
+---++-+-+
| logon_time | logoff_time | kickoff_time | pass_last_set_time |
pass_can_change_time | pass_must_change_time | username   | domain  |
nt_username | nt_fullname| home_dir| dir_drive |
logon_script | profile_path | acct_desc | workstations | unknown_str |
munged_dial | uid | gid  | user_sid |
group_sid| lm_pw| nt_pw
| acct_ctrl | unknown_3 | logon_divs | hours_len | unknown_5 | unknown_6
| bad_password_count | logon_count | logon_hours |
++-+--+
+--+---++-
+-++-+---
+--+--+---+--+-
+-+-+--+--
+--
+--+--
+---+---++---+---
+---++-+-+
|   NULL |NULL | NULL | 1129134562 |
1129134562 |2147483647 | rodelapena | CABRERA | admin
| Rodrigo De la Pena | //home2/rodelapena/ | Z:| NULL |
NULL | NULL  | NULL | NULL| NULL|
502 |0 | S-1-5-21-3648153577-3102470278-178895188 |
S-1-5-21-3648153577-3102470278-178895188-513 |
1B85CB90BF277B6BCAE10E534CAEEE0E | 81ADF7E68947CFE8733384295EAD6334 |
16 |  NULL |   NULL | NULL |  NULL |  1260 |
NULL |NULL |NULL

[Samba] samba + virtual users +mysql

2005-10-12 Thread Rodrigo De la Pena


hi, i'm trying to use samaba 3.0.20 with mysql authentication but it
fails when i try to connect with smbclient, can i get help from the new
people who take care of the pdb modules? i want to ask them about my
configuration problems.

thanks


-- 
Rodrigo De la Peña
Soporte Corporativo
Calipso Comunicaciones

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