[Samba] how to automatically create user homedir
Hello all, Im using samba 3.0.11 and openldap. I need a way to auto create my users home when they connect to their HOME share. How can i do that?! PS: i tried the preexec directive but it didnt work! :o| Thanks! + | Luís Miguel Ferreira da Silva | Network Administrator @ISPGaya | Instituto Superior Politécnico Gaya | Rua António Rodrigues da Rocha, 291/341 | Sto. Ovídio 4400-025 V. N. de Gaia | Tel: +351 223745730/3/5 | GSM: +351 912671471 +351 936371253 + Este email foi enviado via o webmail do ISPGaya Instituto Superior Politécnico Gaya -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] ldap crashes right after samba updates password
Hello all, This week i successfully managed to create a openldap server/domain using openldap and samba 3.0.11. Alltough everything is working correctly, when i change the password on the server via the "smbpasswd" command (the one which comes by default with samba) or by a windows machine, my openldap crashes. Here is a output of a debug session of openldap: ldap_read: want=8, got=8 : 30 4b 02 01 03 77 46 800K...wF. ldap_read: want=69, got=69 : 17 31 2e 33 2e 36 2e 31 2e 34 2e 31 2e 34 32 30 .1.3.6.1.4.1.420 0010: 33 2e 31 2e 31 31 2e 31 81 2b 30 29 80 21 75 69 3.1.11.1.+0).!ui 0020: 64 3d 6c 6d 73 2c 6f 75 3d 55 73 65 72 73 2c 64 d=lms,ou=Users,d 0030: 63 3d 69 73 70 67 61 79 61 2c 64 63 3d 70 74 82 c=ispgaya,dc=pt. 0040: 04 78 70 74 6f .xpto ber_get_next: tag 0x30 len 75 contents: ber_dump: buf=0x08141d80 ptr=0x08141d80 end=0x08141dcb len=75 : 02 01 03 77 46 80 17 31 2e 33 2e 36 2e 31 2e 34 ...wF..1.3.6.1.4 0010: 2e 31 2e 34 32 30 33 2e 31 2e 31 31 2e 31 81 2b .1.4203.1.11.1.+ 0020: 30 29 80 21 75 69 64 3d 6c 6d 73 2c 6f 75 3d 55 0).!uid=lms,ou=U 0030: 73 65 72 73 2c 64 63 3d 69 73 70 67 61 79 61 2c sers,dc=ispgaya, 0040: 64 63 3d 70 74 82 04 78 70 74 6f dc=pt..xpto ber_get_next ldap_read: want=8 error=Resource temporarily unavailable ber_get_next on fd 12 failed errno=11 (Resource temporarily unavailable) do_extended ber_scanf fmt ({m) ber: ber_dump: buf=0x08141d80 ptr=0x08141d83 end=0x08141dcb len=72 daemon: select: listen=6 active_threads=2 tvp=NULL : 77 46 80 17 31 2e 33 2e 36 2e 31 2e 34 2e 31 2e wF..1.3.6.1.4.1. 0010: 34 32 30 33 2e 31 2e 31 31 2e 31 81 2b 30 29 80 4203.1.11.1.+0). 0020: 21 75 69 64 3d 6c 6d 73 2c 6f 75 3d 55 73 65 72 !uid=lms,ou=User 0030: 73 2c 64 63 3d 69 73 70 67 61 79 61 2c 64 63 3d s,dc=ispgaya,dc= 0040: 70 74 82 04 78 70 74 6fpt..xpto ber_scanf fmt (m) ber: ber_dump: buf=0x08141d80 ptr=0x08141d9e end=0x08141dcb len=45 : 00 2b 30 29 80 21 75 69 64 3d 6c 6d 73 2c 6f 75 .+0).!uid=lms,ou 0010: 3d 55 73 65 72 73 2c 64 63 3d 69 73 70 67 61 79 =Users,dc=ispgay 0020: 61 2c 64 63 3d 70 74 82 04 78 70 74 6fa,dc=pt..xpto do_extended: oid=1.3.6.1.4.1.4203.1.11.1 ber_scanf fmt ({) ber: ber_dump: buf=0x08141da0 ptr=0x08141da0 end=0x08141dcb len=43 : 30 29 80 21 75 69 64 3d 6c 6d 73 2c 6f 75 3d 55 0).!uid=lms,ou=U 0010: 73 65 72 73 2c 64 63 3d 69 73 70 67 61 79 61 2c sers,dc=ispgaya, 0020: 64 63 3d 70 74 82 04 78 70 74 6f dc=pt..xpto ber_scanf fmt (m) ber: ber_dump: buf=0x08141da0 ptr=0x08141da2 end=0x08141dcb len=41 : 80 21 75 69 64 3d 6c 6d 73 2c 6f 75 3d 55 73 65 .!uid=lms,ou=Use 0010: 72 73 2c 64 63 3d 69 73 70 67 61 79 61 2c 64 63 rs,dc=ispgaya,dc 0020: 3d 70 74 82 04 78 70 74 6f=pt..xpto ber_scanf fmt (m) ber: ber_dump: buf=0x08141da0 ptr=0x08141dc5 end=0x08141dcb len=6 : 00 04 78 70 74 6f ..xpto ==> ldbm_back_exop_passwd: "uid=lms,ou=Users,dc=ispgaya,dc=pt" Segmentation fault I was trying to set "xpto" as my password. The "funny" thing is that: a) the password gets changed all the same (allthough slapd crashes) b) i can change the password without any problem via the smbldap-passwd (from idealx). Can anybody help me with this? Im using trustix 2.2 with: [EMAIL PROTECTED] /# rpm -qa | grep samba samba-common-3.0.11-2tr samba-3.0.11-2tr samba-client-3.0.11-2tr [EMAIL PROTECTED] /# rpm -qa | grep ldap openldap-2.1.30-2tr openldap-libs-2.1.30-2tr nss_ldap-220-1tr openldap-devel-2.1.30-2tr ldapclients-common-175-1tr openldap-servers-2.1.30-2tr openldap-utils-2.1.30-2tr [EMAIL PROTECTED] /# PS: does anybody know of a administration interface which as the hability to encode the sambaLMPassword and the sambaNTPassword directly onto openldap? Thanks in advance, + | Luís Miguel Ferreira da Silva | Network Administrator @ISPGaya | Instituto Superior Politécnico Gaya | Rua António Rodrigues da Rocha, 291/341 | Sto. Ovídio 4400-025 V. N. de Gaia | Tel: +351 223745730/3/5 | GSM: +351 912671471 +351 936371253 + Este email foi enviado via o webmail do ISPGaya Instituto Superior Politécnico Gaya -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] pdbedit - question on migration what about mysql?
Hello all, Well, what about mysql? :o) [EMAIL PROTECTED] /usr/local/samba/bin# ./pdbedit -i mysql Connecting to database server, host: 192.168.4.36, user: samba, password: X, database: samba, port: 3306 Connecting to database server, host: 192.168.4.36, user: samba, password: X, database: samba, port: 3306 No identifier specified. Check the Samba HOWTO Collection for details pdb backend mysql did not correctly init (error was NT_STATUS_INVALID_PARAMETER) Loading mysql failed! Can't initialize passdb backend. [EMAIL PROTECTED] /usr/local/samba/bin# PS: when i do a pdbedit -L all the accounts get listed! PS2: i also want to export onto a ldapsam db :oP Best, Luís Quoting John H Terpstra <[EMAIL PROTECTED]>: On Wednesday 30 March 2005 12:37, jonlists wrote: question on pdbedit - when using it for a migration - existing data is stored in tdbsam. pbdedit -i tdbsam -e ldapsam It wants to take existing machine accounts and put them into an ou=Computers. I'd rather it put them in ou=People. OK. How have you configured this in smb.conf and in the smbldap-tools scripts? - John T. Samba version is 3.09 Thanks... Jon Johnston Creative Business Solutions IBM, Microsoft, Novell/Suse, Sophos Consultants http://www.cbsol.com blog:http://bingo.cbsol.com -- John H Terpstra Samba-Team Member Phone: +1 (650) 580-8668 Author: The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556 Samba-3 by Example, ISBN: 0131472216 Hardening Linux, ISBN: 0072254971 Other books in production. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba + | Luís Miguel Ferreira da Silva | Network Administrator @ISPGaya | Instituto Superior Politécnico Gaya | Rua António Rodrigues da Rocha, 291/341 | Sto. Ovídio 4400-025 V. N. de Gaia | Tel: +351 223745730/3/5 | GSM: +351 912671471 +351 936371253 + Este email foi enviado via o webmail do ISPGaya Instituto Superior Politécnico Gaya -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] changing from samba back to windows...JUST TO TEST OFF COURSE! ; o)
Hello list, Shame on me! I need to import my users database onto a windows PDC so i can test a situation im with at my company. How can i easily dump my samba users and export them onto windows?? Thanks in advance, + | Luís Miguel Ferreira da Silva | Network Administrator @ISPGaya | Instituto Superior Politécnico Gaya | Rua António Rodrigues da Rocha, 291/341 | Sto. Ovídio 4400-025 V. N. de Gaia | Tel: +351 223745730/3/5 | GSM: +351 912671471 +351 936371253 + Este email foi enviado via o webmail do ISPGaya Instituto Superior Politécnico Gaya -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
SOLVED! Re: [Samba] problem with listing users on winXP/2k+3
Hello all, I havent got any replies on this matter but, since this can interest any future users, i leave the solution for the problem i reported! After a *lot* of tests [which involved installing a winXP and win2k+3 without any patches], i came to find that the problem was related to Windows and *not* samba related! Allthough the users arent listed on windows [via the typical gui], i could list them all via the "net user /domain" command! I was also able to add a share to a specific user using rmtshare (from the NT resource kit) and cacls (for managing Access Lists). Hope this helps anybody! ;o) Best, Luís Silva Quoting Luís Miguel Silva <[EMAIL PROTECTED]>: Hello list, Some days ago i sent an email to this ML about a problem im having with listing users on winXP/2k+3 computers. The thing is our samba PDC has +1600 users and, this time i counted, there only appear on the "security advanced settings" list box (where we select users that can read/write/execute on a windows directory share), about 500/550 users. There is no evident reason for it to happen! The first account that gets listed starts with aa* and the last one which appears is "zmonteiro" (our last user). Now, after some more tests, i found out that this is only happening on winXP professional SP2 and win2003 server. I took some screenshots so anybody that is willing to help me can check out my problem: 1º http://lms.ispgaya.pt/goodies/sambaXP/erro_XP_cant_find.JPG 2º http://lms.ispgaya.pt/goodies/sambaXP/jaam_windows_2000.jpg on the first image we can see a logged in user on my domain (jaam) and, allthough c:\documents and settings\jaam\Desktop got automatically assigned ISPGAYA\jaam as its owner, that user cant be found when we look for it on the domain! (which is pretty stupid and weird). the second image shows us the user "jaam" being found on my domain! (on a windows 2000 professional). I dont quite understand what is happening here! I assume this is a winXP/2k+3 related problem but that isnt quite a answer for our network (since we have more then 100 winXP workstations and less then 15 win 2000 workstations)! Can anybody share some info on this? My smb.conf is available here: http://lms.ispgaya.pt/goodies/sambaXP/smb.conf I can list two different users on my MySQL database: mysql> select * from user where nt_username='jaam'; ++-+--++--+---+--+-+-+---+-+---+--+--+---+--+-+-+---+--+-++--+--+---+---++---+---+---+ | 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 | ++-+--++--+---+--+-+-+---+-+---+--+--+---+--+-+-+---+--+-++--+--+---+---++---+---+---+ | 0 | 0 |0 | 1065279625 | 1065279625 |2147483647 | jaam | ISPGAYA | jaam| Jose Augusto Monteiro | /home/docentes/jaam | | | | | | | | 12313 | 1103 | S-1-5-21-3707862455-3475833780-3540448979-12313 | S-1-5-21-3707862455-3475833780-3540448979-1103 | B44F950F3A6EDE20AAD3AADDB51404EE | 759B5CA8DAADDA7D067BBA0A886C7BA | 16 |
[Samba] problem with listing users on winXP/2k+3
Hello list, Some days ago i sent an email to this ML about a problem im having with listing users on winXP/2k+3 computers. The thing is our samba PDC has +1600 users and, this time i counted, there only appear on the "security advanced settings" list box (where we select users that can read/write/execute on a windows directory share), about 500/550 users. There is no evident reason for it to happen! The first account that gets listed starts with aa* and the last one which appears is "zmonteiro" (our last user). Now, after some more tests, i found out that this is only happening on winXP professional SP2 and win2003 server. I took some screenshots so anybody that is willing to help me can check out my problem: 1º http://lms.ispgaya.pt/goodies/sambaXP/erro_XP_cant_find.JPG 2º http://lms.ispgaya.pt/goodies/sambaXP/jaam_windows_2000.jpg on the first image we can see a logged in user on my domain (jaam) and, allthough c:\documents and settings\jaam\Desktop got automatically assigned ISPGAYA\jaam as its owner, that user cant be found when we look for it on the domain! (which is pretty stupid and weird). the second image shows us the user "jaam" being found on my domain! (on a windows 2000 professional). I dont quite understand what is happening here! I assume this is a winXP/2k+3 related problem but that isnt quite a answer for our network (since we have more then 100 winXP workstations and less then 15 win 2000 workstations)! Can anybody share some info on this? My smb.conf is available here: http://lms.ispgaya.pt/goodies/sambaXP/smb.conf I can list two different users on my MySQL database: mysql> select * from user where nt_username='jaam'; ++-+--++--+---+--+-+-+---+-+---+--+--+---+--+-+-+---+--+-++--+--+---+---++---+---+---+ | 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 | ++-+--++--+---+--+-+-+---+-+---+--+--+---+--+-+-+---+--+-++--+--+---+---++---+---+---+ | 0 | 0 |0 | 1065279625 | 1065279625 |2147483647 | jaam | ISPGAYA | jaam| Jose Augusto Monteiro | /home/docentes/jaam | | | | | | | | 12313 | 1103 | S-1-5-21-3707862455-3475833780-3540448979-12313 | S-1-5-21-3707862455-3475833780-3540448979-1103 | B44F950F3A6EDE20AAD3AADDB51404EE | 759B5CA8DAADDA7D067BBA0A886C7BA |16 | NULL |168 |21 | NULL | NULL | ++-+--++--+---+--+-+-+---+-+---+--+--+---+--+-+-+---+--+-++--+--+---+---++---+---+---+ 1 row in set (0.02 sec) mysql> select * from user where nt_username='tma'; ++-+--++--+---+--+-+-+-+-+---+--+--+---+--+-+-+---+--+-++--+--+---+---++---+---+---+
Re: [Samba] Very HUGE binaries!?
The problem you are describing is most likely to be related to static compiling (vs dynamic compiling). Are you sure you are not going static? ;o) Best, Luís Quoting Toni Verdu Carbo <[EMAIL PROTECTED]>: Hi! I've been compiling Samba 3.0.x on a Solaris 2.6 server using GCC 3.4.1 without any problem until recently... The problem started with 3.0.12 version, and reproduced in 3.0.13. Doing "configure" and then "make" produces with these two versions VERY HUGE binaries! I'm talking about more than 50 Megabytes binaries in some cases... With 3.0.11 and before I had much smaller binaries, doing exactly the same procedure to compile. I haven't changed anything on the compiler side... I've seen that the huge binaries are due to the fact that debugging symbols are being included on them. So, removing the compiler -g flag in Makefile solves the problem (or stripping the binaries, of course). But I would like to know what changed from version 3.0.11 to 3.0.12 that causes such HUGE binaries even if the --enable-debug is supposed to be "NO" by default?? (I even triend "configure --disable-degug" with no results). Thanks! Toni -- Toni Verdu Carbo Departament d'Electronica, Informatica i Automatica (dEIA) Escola Politecnica Superior (EPS)- Universitat de Girona (UdG) Girona - Catalunya - Spain - Europe - Earth - Milky Way - Universe ;^D -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba + | Luís Miguel Ferreira da Silva | Network Administrator @ISPGaya | Instituto Superior Politécnico Gaya | Rua António Rodrigues da Rocha, 291/341 | Sto. Ovídio 4400-025 V. N. de Gaia | Tel: +351 223745730/3/5 | GSM: +351 912671471 +351 936371253 + Este email foi enviado via o webmail do ISPGaya Instituto Superior Politécnico Gaya -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] problem with sharing a directory
Hello list, Im a samba 3.x user with mysql authentication. It is all working wonderfull and im using it right after the stable version 3.0 was released! When i try to share a directory on windows and specify which user from my samba domain is able to perform actions on that directory, not all users get listed! This is very weird since only a quarter (maybe? not even remotly sure since we have more then 900 users). The only "abnormal" stuff im doing is adding the users with a application coded by me. I added a user with smbpasswd and then saw which are the fields in the mysql database that get filled. Since i dont know how to generate all the fields (especially some stuff like SSID or stuff like that), i copy the same exact information on those fields to every user. It all works good! the domain logon and smb shares! I dont really think the problem is that but...im completly loose on what to try next? Does anybody have/had a similiar problem? Can anybody help me? I tried to google for my problem but i really dont know "where"/"what" to look for! ;o) Best, + | Luís Miguel Ferreira da Silva | Network Administrator @ISPGaya | Instituto Superior Politécnico Gaya | Rua António Rodrigues da Rocha, 291/341 | Sto. Ovídio 4400-025 V. N. de Gaia | Tel: +351 223745730/3/5 | GSM: +351 912671471 +351 936371253 + Este email foi enviado via o webmail do ISPGaya Instituto Superior Politécnico Gaya -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba + port forwarding..
Hello everybody, Im setting up a firewall for a samba server. The firewall ip is: 192.168.0.1 The smb server behind it is: 192.168.1.1 I set up some port forwardings for the following: 137,138,139 tcp/udp 192.168.0.1 -> 192.168.1.1 Allthough im able to list the shares, i cant log on to the server. I allways get NT_STATUS_LOGON_FAILURE Do i have to change anything on the smb server configuration file so it "declares" it is the firewall host? Best, +----- | Luís Miguel Silva | Network Administrator@ ISPGaya.pt | Rua António Rodrigues da Rocha, 291/341 | Sto. Ovídio 4400-025 V. N. de Gaia | Portugal | T: +351 22 3745730/3/5 F: +351 22 3745738 | G: +351 93 6371253 E: [EMAIL PROTECTED] | H: http://lms.ispgaya.pt/ +- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] Problems with netlogon
Hello all, Im having some trouble with netlogon. I created a script called todos.bat that isnt getting executed when the users logon. My configuration is the following: domain logons = yes logon script=todos.bat %U name resolve order = host wins lmhosts bcast wins support = yes dns proxy = yes [NETLOGON] comment = Network Logon Service path = /home/samba/netlogon writable = no force create mode=0644 force directory mode = 0775 Can somebody help me? Best, +- | Luís Miguel Silva | Network Administrator@ ISPGaya.pt | Rua António Rodrigues da Rocha, 291/341 | Sto. Ovídio 4400-025 V. N. de Gaia | Portugal | T: +351 22 3745730/3/5 F: +351 22 3745738 | G: +351 93 6371253 E: [EMAIL PROTECTED] | H: http://lms.ispgaya.pt/ +- Este email foi enviado através do site http://webmail.ispgaya.pt/ Instituto Superior Politécnico Gaya -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
[Samba] urgent help needed! pam_smb auth any password...
Hello all, I need *urgent* help with this one! I have a samba 3.0 server which auths on mysql, the confs are the following: [global] netbios name = AUTH workgroup = COMPANY security = user domain logons = yes domain master = yes local master = yes os level = 69 passdb backend = mysql:mysql mysql:mysql host = 192.168.1.1 mysql:mysql user = samba mysql:mysql password = whocares mysql:mysql database = samba domain logons = yes logon script=/home/samba/netlogon/todos.bat %U name resolve order = host wins lmhosts bcast wins support = yes dns proxy = yes logon path= logon home= [netlogon] comment = Network Logon Service path = /home/samba/netlogon guest ok = yes writable = no share modes = no All the other samba servers auth nicely on samba 3.0, and im able to logon the domain, but... when i try to auth an account with pam_smb, i can ALLWAYS connect! It accepts ANY login/password pair! I read the pam_smb "warning" which said: This version contains a bug-fix that stops pam_smb from authenticating against servers in share mode i.e. Win 95 or samba in share mode. If you had a share mode server by mistake in your pam_smb.conf anyone could log in to any a/c on your machine with no password !!! I allready installed this version...and checked the code and it doesnt seem to do no good. Can anybody help me with this? My pam_smb version is 1.1.7 Thanks in advance, +----- | Luís Miguel Silva | Network Administrator@ ISPGaya.pt | Rua António Rodrigues da Rocha, 291/341 | Sto. Ovídio 4400-025 V. N. de Gaia | Portugal | T: +351 22 3745730/3/5 F: +351 22 3745738 | G: +351 93 6371253 E: [EMAIL PROTECTED] | H: http://lms.ispgaya.pt/ +- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] pdb_mysql question...
Hello everybody, Thanks to Jelmers help im now able to use mysql support sucessfully (thanks again Jelmer). I now need a way to generate NT4/LM hashes so i can insert new accounts without using smbpasswd. Has anybody got a script/windows program/cgi/whatever to do this? I cant find any function to generate a NT4/LM hash! My problem is im coding a windows program to generate/manage all the users on the system and i want to be able to do it in ONE single step! Its pretty stupid having to add the users on the windows machine and then go to the server terminal and execute smbpasswd -a user password (heh..sorry for my bad english, i hope i made my self clear :o) Thanks in advance, +- | Luís Miguel Silva | Network Administrator@ ISPGaya.pt | Rua António Rodrigues da Rocha, 291/341 | Sto. Ovídio 4400-025 V. N. de Gaia | Portugal | T: +351 22 3745730/3/5 F: +351 22 3745738 | G: +351 93 6371253 E: [EMAIL PROTECTED] | H: http://lms.ispgaya.pt/ +- -Mensagem original- De: Jelmer Vernooij [mailto:[EMAIL PROTECTED] nome de Jelmer Vernooij Enviada: sábado, 27 de Setembro de 2003 17:55 Para: Luís Miguel Silva Cc: [EMAIL PROTECTED] Assunto: Re: [Samba] pdb_mysql question... Hi, On Sat, Sep 27, 2003 at 05:54:56PM +0100, Luís Miguel Silva wrote about 'RE: [Samba] pdb_mysql question...': > However..im getting another problem. > I thought "smbpasswd -a user password" would create the user on the db...but it > doesnt: > [EMAIL PROTECTED] /usr/local/samba/bin# ./smbpasswd -a user password > Connecting to database server, host: localhost, user: samba, password: ambas, > database: samba, port: 3306 > Failed initialise SAM_ACCOUNT for user user. > Failed to modify password entry for user user > [EMAIL PROTECTED] /usr/local/samba/bin# > (on the mysql server i see this:) > 030927 17:48:28 42 Connect [EMAIL PROTECTED] on samba > 42 Query SELECT > 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,user_sid,group_sid,lm_pw,nt_pw,NULL,acct_ctrl,unknown_3,logon_divs,hours_len,unknown_5,unknown_6 > FROM user WHERE username = 'user' > Which evidently tells me it is trying to GET the account before changing it! It checks whether the account already exists. Oh, make sure there is a unix account named 'user' before you add a Samba account with such a name. > Poking around the binaries i saw this new one: > [EMAIL PROTECTED] /usr/local/samba/bin# ./pdbedit -a user > Server's Role (logon server) NOT ADVISED with domain-level security > Connecting to database server, host: localhost, user: samba, password: ambas, > database: samba, port: 3306 > Connecting to database server, host: localhost, user: samba, password: ambas, > database: samba, port: 3306 > could not create account to add new user user > [EMAIL PROTECTED] /usr/local/samba/bin# > and on the mysql server i see: > 030927 17:50:11 45 Connect [EMAIL PROTECTED] on samba > 46 Connect [EMAIL PROTECTED] on samba > It just connects and logs off! Probably because there's no unix account for the user yet... > How do i had a user/change its password? > Is there any official howto on how to (sucessfully) use pdb_mysql??? Read the HOWTO collection from the tarball and/or read the version generated out of CVS at http://samba.vernstok.nl/. Jelmer -- Jelmer Vernooij <[EMAIL PROTECTED]> http://samba.org/~jelmer/ http://samba.vernstok.nl/ Last CVS commit: Fri Sep 26 12:22:04 2003 (1d 4h 30m ago) Bugs in bugzilla: 14 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba
RE: [Samba] pdb_mysql question...
Hello Jelmer, Thanks for the quick response! It now loads the plugin correctly :o) However..im getting another problem. I thought "smbpasswd -a user password" would create the user on the db...but it doesnt: [EMAIL PROTECTED] /usr/local/samba/bin# ./smbpasswd -a user password Connecting to database server, host: localhost, user: samba, password: ambas, database: samba, port: 3306 Failed initialise SAM_ACCOUNT for user user. Failed to modify password entry for user user [EMAIL PROTECTED] /usr/local/samba/bin# (on the mysql server i see this:) 030927 17:48:28 42 Connect [EMAIL PROTECTED] on samba 42 Query SELECT 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,user_sid,group_sid,lm_pw,nt_pw,NULL,acct_ctrl,unknown_3,logon_divs,hours_len,unknown_5,unknown_6 FROM user WHERE username = 'user' Which evidently tells me it is trying to GET the account before changing it! Poking around the binaries i saw this new one: [EMAIL PROTECTED] /usr/local/samba/bin# ./pdbedit -a user Server's Role (logon server) NOT ADVISED with domain-level security Connecting to database server, host: localhost, user: samba, password: ambas, database: samba, port: 3306 Connecting to database server, host: localhost, user: samba, password: ambas, database: samba, port: 3306 could not create account to add new user user [EMAIL PROTECTED] /usr/local/samba/bin# and on the mysql server i see: 030927 17:50:11 45 Connect [EMAIL PROTECTED] on samba 46 Connect [EMAIL PROTECTED] on samba It just connects and logs off! How do i had a user/change its password? I created the mysql account with: grant all privileges on samba.* to [EMAIL PROTECTED] identified by 'ambas' with grant option; It *should* have enough privileges! Is there any official howto on how to (sucessfully) use pdb_mysql??? Thanks! +--------- | Luís Miguel Silva | Network Administrator@ ISPGaya.pt | Rua António Rodrigues da Rocha, 291/341 | Sto. Ovídio 4400-025 V. N. de Gaia | Portugal | T: +351 22 3745730/3/5 F: +351 22 3745738 | G: +351 93 6371253 E: [EMAIL PROTECTED] | H: http://lms.ispgaya.pt/ +- -Mensagem original- De: Jelmer Vernooij [mailto:[EMAIL PROTECTED] nome de Jelmer Vernooij Enviada: sábado, 27 de Setembro de 2003 17:36 Para: Luís Miguel Silva Cc: [EMAIL PROTECTED] Assunto: Re: [Samba] pdb_mysql question... Hi, On Sat, Sep 27, 2003 at 05:35:15PM +0100, Luís Miguel Silva wrote about '[Samba] pdb_mysql question...': > Iam trying to install samba 3.0 with pdb_mysql support though im getting some > trouble i cant understand. > After reading the output of ./configure --help, i used the following configure args: > ./configure --with-expsam=xml,mysql --with-pam --with-pam_smbpass > make > make install > then i took a look at ./examples/pdb/mysql/smb.conf and: > [EMAIL PROTECTED] /usr/src/installs/samba-3.0.0/examples/pdb/mysql# cat smb.conf > [global] > netbios name = FOOBAR > workgroup = TESTGROUP > security = domain > domain logons = yes > domain master = yes > passdb backend = plugin:/usr/local/samba/lib/pdb_mysql.so:mysql > mysql:mysql host = rhonwyn > mysql:mysql user = samba > mysql:mysql password = ambas > mysql:mysql database = samba > [EMAIL PROTECTED] /usr/src/installs/samba-3.0.0/examples/pdb/mysql# ls -l > /usr/local/samba/lib/pdb_mysql.so > /bin/ls: /usr/local/samba/lib/pdb_mysql.so: No such file or directory > [EMAIL PROTECTED] /usr/src/installs/samba-3.0.0/examples/pdb/mysql# ls -l > /usr/local/samba/lib/pdb/mysql.so > -rwxr-xr-x1 root root 270098 Sep 27 17:15 > /usr/local/samba/lib/pdb/mysql.so* > [EMAIL PROTECTED] /usr/src/installs/samba-3.0.0/examples/pdb/mysql# > So i made up a simple test with: > [EMAIL PROTECTED] /usr/src/installs/samba-3.0.0/examples/pdb/mysql# cat > /usr/local/samba/lib/smb.conf > [global] > netbios name = FOOBAR > workgroup = TESTGROUP > security = domain > domain logons = yes > domain master = yes > passdb backend = plugin:/usr/local/samba/lib/pdb/mysql.so:mysql > mysql:mysql host = localhost > mysql:mysql user = samba > mysql:mysql password = ambas > mysql:mysql database = samba > [EMAIL PROTECTED] /usr/src/installs/samba-3.0.0/examples/pdb/mysql# > It booted up correctly but when i try to had a user i get: > [EMAIL PROTECTED] /usr/local/samba/bin# ./smbpasswd -a lms > New SMB password: > Retype new SMB password: > No builtin nor plugin backend for plugin found > Loading plugin:/usr/local/samba/lib/pdb/mysql.so:mysql failed! > Failed initialise SAM_ACCOUNT for user l
[Samba] pdb_mysql question...
Hello everybody, First of all, congratulations on samba 3.0 :o) Iam trying to install samba 3.0 with pdb_mysql support though im getting some trouble i cant understand. After reading the output of ./configure --help, i used the following configure args: ./configure --with-expsam=xml,mysql --with-pam --with-pam_smbpass make make install then i took a look at ./examples/pdb/mysql/smb.conf and: [EMAIL PROTECTED] /usr/src/installs/samba-3.0.0/examples/pdb/mysql# cat smb.conf [global] netbios name = FOOBAR workgroup = TESTGROUP security = domain domain logons = yes domain master = yes passdb backend = plugin:/usr/local/samba/lib/pdb_mysql.so:mysql mysql:mysql host = rhonwyn mysql:mysql user = samba mysql:mysql password = ambas mysql:mysql database = samba [EMAIL PROTECTED] /usr/src/installs/samba-3.0.0/examples/pdb/mysql# ls -l /usr/local/samba/lib/pdb_mysql.so /bin/ls: /usr/local/samba/lib/pdb_mysql.so: No such file or directory [EMAIL PROTECTED] /usr/src/installs/samba-3.0.0/examples/pdb/mysql# ls -l /usr/local/samba/lib/pdb/mysql.so -rwxr-xr-x1 root root 270098 Sep 27 17:15 /usr/local/samba/lib/pdb/mysql.so* [EMAIL PROTECTED] /usr/src/installs/samba-3.0.0/examples/pdb/mysql# So i made up a simple test with: [EMAIL PROTECTED] /usr/src/installs/samba-3.0.0/examples/pdb/mysql# cat /usr/local/samba/lib/smb.conf [global] netbios name = FOOBAR workgroup = TESTGROUP security = domain domain logons = yes domain master = yes passdb backend = plugin:/usr/local/samba/lib/pdb/mysql.so:mysql mysql:mysql host = localhost mysql:mysql user = samba mysql:mysql password = ambas mysql:mysql database = samba [EMAIL PROTECTED] /usr/src/installs/samba-3.0.0/examples/pdb/mysql# It booted up correctly but when i try to had a user i get: [EMAIL PROTECTED] /usr/local/samba/bin# ./smbpasswd -a lms New SMB password: Retype new SMB password: No builtin nor plugin backend for plugin found Loading plugin:/usr/local/samba/lib/pdb/mysql.so:mysql failed! Failed initialise SAM_ACCOUNT for user lms. Failed to modify password entry for user lms [EMAIL PROTECTED] /usr/local/samba/bin# Can anybody tell me how to solve this? i cant find this "error" mentioned anywhere on the net. I need to upgrade a server to use this auth in a couple of days so im pretty desperate. Thanks in advance, +----- | Luís Miguel Silva | Network Administrator@ ISPGaya.pt | Rua António Rodrigues da Rocha, 291/341 | Sto. Ovídio 4400-025 V. N. de Gaia | Portugal | T: +351 22 3745730/3/5 F: +351 22 3745738 | G: +351 93 6371253 E: [EMAIL PROTECTED] | H: http://lms.ispgaya.pt/ +- -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba