Re: [Samba] samba + virtual users +mysql
Hello Chip, Please if you find a way to do, explain me, nobody was in condition to solve the problem here. Thanks, Pierre Chip Mefford wrote: Perhaps I'm all alone out here, but I don't think so. I have an environment wherein all my users are virtual and live in a chroot jail, and have no shell access at all. The users are authenticated for email against a mysql database. I should like to give them access to a virtual home directory and file server tree via samba using the same model. Digging through the archives and stw, I've seen some echos of this approach, but nothing firm. Can anyone please referr me to some information? Thanks kindly in advance. -- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Fwd: Re: [Samba] Samba with Mysql, Compilation of version 3.0.11]
Hello again, Related to previous bug, i have corrected few things from util.c, 3 char* data structures were defined more than one time so i commented them in code, it seem to compile now... data_path state_path cache_path Thanks anyway. Pierre (C)ollen wrote: pdb_sql.c is the new mysql backend name (was pdb_mysql) so it does get compiled... but this output shows that you still use 3.0.20. and that's not the best version for mysql backends...! i must note that i have made a small mistake regarding the --enable-static=pdb_mysql. it's --with-static-modules=pdb_mysql .!! Greets. Collen Blijenberg Pierre MARTIN wrote: Rectification, the address you gave me have the 3.0.11 :) Thank you alot! Pierre On 9/23/05, *Pierre MARTIN* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Hello Collen! I am actually making serious searchs in the configure script. Here is WHATEVER i give as mysql input args, the compilation output: Compiling passdb/secrets.c Compiling passdb/machine_sid.c Compiling locking/locking.c Compiling locking/brlock.c Compiling locking/posix.c Compiling passdb/pdb_get_set.c Compiling passdb/passdb.c Compiling passdb/pdb_interface.c Compiling passdb/util_sam_sid.c Compiling passdb/pdb_compat.c Compiling passdb/lookup_sid.c Compiling passdb/login_cache.c Compiling passdb/pdb_ldap.c Compiling passdb/pdb_nds.c Compiling passdb/pdb_smbpasswd.c Compiling passdb/pdb_tdb.c Compiling passdb/pdb_guest.c Compiling passdb/pdb_sql.c Compiling lib/system_smbd.c As you can see here, nevermind if i ask for static, shared or magic-cookied mysql plugin, it NEVER gets to compile it! So there should be a misstake in some Makefile or rule file, the problem is at compilation-time! I will try to get the 3.0.11 from somewhere (I did not find it at the link you gave me that is why i took 3.0.09). Please, if you know somebody who can make the change in the makefile scripts, tell me, or if i can get a way to compile pdb_mysql.c alone, i'm interested too. I think now it is pointless to play arround with configure script parametters, because it doesn't propagate correctly directives to the compilation makefiles. N.B.: The path to be given to the configure script seems to be the path to mysql_config BINARY, in the configure script is made a call to it with parametters to get the include path... So don't tell anymore people to symlink if they have compiled from source, just tell the configure script to ask the binary program "mysql_config" (in configure script get the lines with $MYSQL_CONFIG $mysqlconf_args --cflags | sed -e "s/'//g") ... Anyway, thanks a lot for your help, i am a bit closer to find a solution now! I'll try tonight to get the v.11 and your advices in action :) And, when you say if samba complains about not finding the plugin, it does since the begining :O What chmod right 755 are you talking about, i mean on what file? Thanks! Pierre On 9/23/05, *(C)ollen* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: ftp://ftp.samba.org/pub/samba/old-versions/ -- --enable-static=pdb_mysql -> compiles the mysql backend within samba, so no pdb_mysql.so module will be found! --with-shared-modules=pdb_mysql -> compiles mysql backend sepperate, you will find a pdb_mysql.so module.. external is a little slower.. after this, you have to make sure to have set the parameters within smb.conf! also, make the mysql database with the samba layout (example is included with in the source!) be sure samba can access the db. if samba say's can't find plugin or somthing, just ignore it (but besure the chmod rights are ok 0755) Goodluck. Collen MARTIN Pierre wrote: Hello again Collen and everybody. I just tryed to make 3.0.09 compile pdb_mysql with no success. Can somebody please can tell me where to find the 3.0.11 version so i can make it as Collen has it (Because i was not able to make it with 3.0.14 default debian version, neither 3.0.09 neither 3.0.20 .. . doh!) ? Thanks a lot. Pierre (C)ollen wrote: > it is know that the mysql passwd backend is buggy/not working with > samba 3.0.20. (maybe it's fixed in the new release ??) > the fact that you have a mysql.so, tells me that you build the module > as shared library. > here are some thoughts: > > 1) try renaming the module to pdb_mysql.so > 2) build it as static (./configure --with-expsam=mysql > --enable-static
Re: [Samba] Samba with Mysql, Compilation of version 3.0.11
9/23/05, *(C)ollen* < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: ftp://ftp.samba.org/pub/samba/old-versions/ -- --enable-static=pdb_mysql -> compiles the mysql backend within samba, so no pdb_mysql.so module will be found! --with-shared-modules=pdb_mysql -> compiles mysql backend sepperate, you will find a pdb_mysql.so module.. external is a little slower.. after this, you have to make sure to have set the parameters within smb.conf! also, make the mysql database with the samba layout (example is included with in the source!) be sure samba can access the db. if samba say's can't find plugin or somthing, just ignore it (but besure the chmod rights are ok 0755) Goodluck. Collen MARTIN Pierre wrote: Hello again Collen and everybody. I just tryed to make 3.0.09 compile pdb_mysql with no success. Can somebody please can tell me where to find the 3.0.11 version so i can make it as Collen has it (Because i was not able to make it with 3.0.14 default debian version, neither 3.0.09 neither 3.0.20 .. . doh!) ? Thanks a lot. Pierre (C)ollen wrote: > it is know that the mysql passwd backend is buggy/not working with > samba 3.0.20. (maybe it's fixed in the new release ??) > the fact that you have a mysql.so, tells me that you build the module > as shared library. > here are some thoughts: > > 1) try renaming the module to pdb_mysql.so > 2) build it as static (./configure --with-expsam=mysql > --enable-static=mysql) > 3) use a samba version prior to 3.0.20 ( <- 3.0.14 ) > > i couldn't make the mysql module work either, so we're still running > the 11 version... > > Greetz.. > > Collen Blijenberg (C=) > > MARTIN Pierre wrote: > >> Hello everybody, >> For those who have followed the mysql plugin compilation problem, >> here are some new information: >> I have tryed everything to make it work from the debian sources, not >> successfully. >> So i have downloaded the TGZ sources from samba.org <http://samba.org> (version is >> 3.0.20). I have started the basic ./configure >> script with params --with-expsam=xml,mysql >> --with-mysql-prefix=/usr/include/mysql/ >> It worked so i started to make the compilation. It also have compiled >> successfully. But as usual with the debian source version, it did not >> compile any pdb_mysql.so. The only thing i get is a mysql.so lib, but >> it cant be loaded as a plugin... >> >> Any idea is really welcome, since i begin to lose the faith :) >> Bye bye and thank you all! >> Pierre >> >> P.S.: Here is the end of the compilation process: >> Compiling modules/vfs_recycle.c with -fPIC >> Building plugin bin/recycle.so >> Compiling modules/vfs_audit.c with -fPIC >> Building plugin bin/audit.so >> Compiling modules/vfs_extd_audit.c with -fPIC >> Building plugin bin/extd_audit.so >> Compiling modules/vfs_full_audit.c with -fPIC >> Building plugin bin/full_audit.so >> Compiling modules/vfs_netatalk.c with -fPIC >> Building plugin bin/netatalk.so >> Compiling modules/vfs_fake_perms.c with -fPIC >> Building plugin bin/fake_perms.so >> Compiling modules/vfs_default_quota.c with -fPIC >> Building plugin bin/default_quota.so >> Compiling modules/vfs_readonly.c with -fPIC >> Compiling modules/getdate.c with -fPIC >> Building plugin bin/readonly.so >> Compiling modules/vfs_cap.c with -fPIC >> Building plugin bin/cap.so >> Compiling modules/vfs_expand_msdfs.c with -fPIC >> Building plugin bin/expand_msdfs.so >> Compiling modules/vfs_shadow_copy.c with -fPIC >> Building plugin bin/shadow_copy.so >> Compiling passdb/pdb_xml.c with -fPIC >> Building plugin bin/xml.so >> Compiling passdb/pdb_mysql.c with -fPIC >> Building plugin bin/mysql.so >> Compiling modules/CP850.c with -fPIC >> Building plugin bin/CP850.so >> Compiling modules/CP437.c with -fPIC >> Building plugin bin/CP437.so >> >> >> (C)ollen wrote: >> >>> hmm.. try >>> >>> ./configure --with-expsam=mysql --with-shared-modules=pdb_mysql >>> >>> mysql lib's in the: /usr/lib/mysql (symlink will do) >>> mysql headers in the: /usr/include/mysql (symlink will do) >>> >>> you can compile the mysql_backend into samba so there isn't an >&
Re: [Samba] Samba with Mysql, compilation problem.
Hello again Collen and everybody. I just tryed to make 3.0.09 compile pdb_mysql with no success. Can somebody please can tell me where to find the 3.0.11 version so i can make it as Collen has it (Because i was not able to make it with 3.0.14 default debian version, neither 3.0.09 neither 3.0.20... doh!) ? Thanks a lot. Pierre (C)ollen wrote: it is know that the mysql passwd backend is buggy/not working with samba 3.0.20. (maybe it's fixed in the new release ??) the fact that you have a mysql.so, tells me that you build the module as shared library. here are some thoughts: 1) try renaming the module to pdb_mysql.so 2) build it as static (./configure --with-expsam=mysql --enable-static=mysql) 3) use a samba version prior to 3.0.20 ( <- 3.0.14 ) i couldn't make the mysql module work either, so we're still running the 11 version... Greetz.. Collen Blijenberg (C=) MARTIN Pierre wrote: Hello everybody, For those who have followed the mysql plugin compilation problem, here are some new information: I have tryed everything to make it work from the debian sources, not successfully. So i have downloaded the TGZ sources from samba.org (version is 3.0.20). I have started the basic ./configure script with params --with-expsam=xml,mysql --with-mysql-prefix=/usr/include/mysql/ It worked so i started to make the compilation. It also have compiled successfully. But as usual with the debian source version, it did not compile any pdb_mysql.so. The only thing i get is a mysql.so lib, but it cant be loaded as a plugin... Any idea is really welcome, since i begin to lose the faith :) Bye bye and thank you all! Pierre P.S.: Here is the end of the compilation process: Compiling modules/vfs_recycle.c with -fPIC Building plugin bin/recycle.so Compiling modules/vfs_audit.c with -fPIC Building plugin bin/audit.so Compiling modules/vfs_extd_audit.c with -fPIC Building plugin bin/extd_audit.so Compiling modules/vfs_full_audit.c with -fPIC Building plugin bin/full_audit.so Compiling modules/vfs_netatalk.c with -fPIC Building plugin bin/netatalk.so Compiling modules/vfs_fake_perms.c with -fPIC Building plugin bin/fake_perms.so Compiling modules/vfs_default_quota.c with -fPIC Building plugin bin/default_quota.so Compiling modules/vfs_readonly.c with -fPIC Compiling modules/getdate.c with -fPIC Building plugin bin/readonly.so Compiling modules/vfs_cap.c with -fPIC Building plugin bin/cap.so Compiling modules/vfs_expand_msdfs.c with -fPIC Building plugin bin/expand_msdfs.so Compiling modules/vfs_shadow_copy.c with -fPIC Building plugin bin/shadow_copy.so Compiling passdb/pdb_xml.c with -fPIC Building plugin bin/xml.so Compiling passdb/pdb_mysql.c with -fPIC Building plugin bin/mysql.so Compiling modules/CP850.c with -fPIC Building plugin bin/CP850.so Compiling modules/CP437.c with -fPIC Building plugin bin/CP437.so (C)ollen wrote: hmm.. try ./configure --with-expsam=mysql --with-shared-modules=pdb_mysql mysql lib's in the: /usr/lib/mysql (symlink will do) mysql headers in the: /usr/include/mysql (symlink will do) you can compile the mysql_backend into samba so there isn't an external module ! your problem is that samba can't find the header files from mysql (.h) I think that the guy's from debian left the mysql backend out, coz' it's somewhat experimental, and lackes support.. never the less, it works, and we have it up and running for almost 2years now!! have fun Collen Blijenberg (MLHJ) MARTIN Pierre wrote: First i would like to say hello to everybody here, because i am new to this ML. So here is the description of my problem: I began with a clean samba installation from the stable branch few monthes ago, everything was just fine, i have a linux box which was sharing files for another linux workstation and two WinXP laptops. The sharing linux box is a debian stable branch O/S, which is my choice for a long time now. Few weeks ago, i decided to make my sparkling samba installation virtual-users aware, and i began to crawl on various websites, all explaining the smb.conf parametters to give. I figured out that i was just not able to make it run because of a main problem, the apt-get samba gave me a non mysql-powered-samba version :( So i removed the samba package from the computer, and dowloaded the debian source of it. Basic source, untared, and had a look to the debian/rule file. I saw there was any parametters given about mysql building, so i also had a look at the configure script's options. It always compiles the brand new warm .deb packages (after i fixed some lacky dependencies, i had to make a fake mysql-common package by myselve, because i already had mysql installed from sources and did not want to install the deb package, etc...). I'm now totally lost, i have try everything and i can't get this pdb_mysql.so "plugin" ready :( So maybe i have miss something, maybe there is another w
Re: [Samba] pdb_mysql, pdb_pgsql and pdb_xml modules: request for maintainer
Hello Jelmer! Thank you for reading my "topic". First i appologize if i have sent too many mails, i thought it was helpy, i will not anymore :-) I am actually compiling version 3.0.11 since Collen told me it was a good choice for these PDB compilation issues (and i will keep people informed on what i have done if it works). About the mysql compilation problem, i don't think you should discontinue it, i bet many users are using it for convenience purpose, having a little network with many shares makes useless deployment of a big thing as LDAP, and is really easy to get some mysql DB accounts. I am used to do the same with my QMail or VSFTP installation (From source either, just because it was easyier to set up this kind of account storage method). About the compilation problem itselve, i really think it should be a simple thing to solve, i will have a look as soon as time will be helping my side. I really think it only depends on some pre-compilation option. I had a verry quick look at the configure script (i hate to give up), and the only point i have found for now is that the mysql prefix only gives the script the basic path to mysql install, then it tries to get in it "/bin/mysql/mysql_config", which is a small utility giving the some mysql distro-specific/from-source-compilation paths. If i can't sove the problem directly from the samba package (the compilation process is too much complex for me, i'm a c++ developper but i never do big projects :-( ) so if i you discontinue the samba+pdb modules bundles, i will manage to make a tutorial on how to make them work... In advance, excuse my bad english since it is not my kernel language :-) , and keep in touch if i have time to help! Pierre Jelmer Vernooij wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi! The experimental pdb modules (pdb_mysql, pdb_pgsql and pdb_xml) have been a bit neglected during the last few releases of Samba 3 as they haven't been actively maintained. I was the original author and maintainer, but I no longer work on Samba 3 and I no longer use any of the modules in production. I'll remove these modules unless somebody steps up as a maintainer. If there's anyone willing to take over maintainance of either one of these modules, please let me know. Otherwise, I'll put the modules up on my samba.org homepage as a separate tarball for those interested (including some of the patches that have been published). Cheers, Jelmer -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDND9jPa9Uoh7vUnYRApXaAJsE+Zz2kn83jDOQ0BnOrbVfkvRTXACglGIG 6w/LFEbti8VrtM3tY83Ofe0= =9L5h -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba with Mysql, compilation problem.
Hello everybody, For those who have followed the mysql plugin compilation problem, here are some new information: I have tryed everything to make it work from the debian sources, not successfully. So i have downloaded the TGZ sources from samba.org (version is 3.0.20). I have started the basic ./configure script with params --with-expsam=xml,mysql --with-mysql-prefix=/usr/include/mysql/ It worked so i started to make the compilation. It also have compiled successfully. But as usual with the debian source version, it did not compile any pdb_mysql.so. The only thing i get is a mysql.so lib, but it cant be loaded as a plugin... Any idea is really welcome, since i begin to lose the faith :) Bye bye and thank you all! Pierre P.S.: Here is the end of the compilation process: Compiling modules/vfs_recycle.c with -fPIC Building plugin bin/recycle.so Compiling modules/vfs_audit.c with -fPIC Building plugin bin/audit.so Compiling modules/vfs_extd_audit.c with -fPIC Building plugin bin/extd_audit.so Compiling modules/vfs_full_audit.c with -fPIC Building plugin bin/full_audit.so Compiling modules/vfs_netatalk.c with -fPIC Building plugin bin/netatalk.so Compiling modules/vfs_fake_perms.c with -fPIC Building plugin bin/fake_perms.so Compiling modules/vfs_default_quota.c with -fPIC Building plugin bin/default_quota.so Compiling modules/vfs_readonly.c with -fPIC Compiling modules/getdate.c with -fPIC Building plugin bin/readonly.so Compiling modules/vfs_cap.c with -fPIC Building plugin bin/cap.so Compiling modules/vfs_expand_msdfs.c with -fPIC Building plugin bin/expand_msdfs.so Compiling modules/vfs_shadow_copy.c with -fPIC Building plugin bin/shadow_copy.so Compiling passdb/pdb_xml.c with -fPIC Building plugin bin/xml.so Compiling passdb/pdb_mysql.c with -fPIC Building plugin bin/mysql.so Compiling modules/CP850.c with -fPIC Building plugin bin/CP850.so Compiling modules/CP437.c with -fPIC Building plugin bin/CP437.so (C)ollen wrote: hmm.. try ./configure --with-expsam=mysql --with-shared-modules=pdb_mysql mysql lib's in the: /usr/lib/mysql (symlink will do) mysql headers in the: /usr/include/mysql (symlink will do) you can compile the mysql_backend into samba so there isn't an external module ! your problem is that samba can't find the header files from mysql (.h) I think that the guy's from debian left the mysql backend out, coz' it's somewhat experimental, and lackes support.. never the less, it works, and we have it up and running for almost 2years now!! have fun Collen Blijenberg (MLHJ) MARTIN Pierre wrote: First i would like to say hello to everybody here, because i am new to this ML. So here is the description of my problem: I began with a clean samba installation from the stable branch few monthes ago, everything was just fine, i have a linux box which was sharing files for another linux workstation and two WinXP laptops. The sharing linux box is a debian stable branch O/S, which is my choice for a long time now. Few weeks ago, i decided to make my sparkling samba installation virtual-users aware, and i began to crawl on various websites, all explaining the smb.conf parametters to give. I figured out that i was just not able to make it run because of a main problem, the apt-get samba gave me a non mysql-powered-samba version :( So i removed the samba package from the computer, and dowloaded the debian source of it. Basic source, untared, and had a look to the debian/rule file. I saw there was any parametters given about mysql building, so i also had a look at the configure script's options. It always compiles the brand new warm .deb packages (after i fixed some lacky dependencies, i had to make a fake mysql-common package by myselve, because i already had mysql installed from sources and did not want to install the deb package, etc...). I'm now totally lost, i have try everything and i can't get this pdb_mysql.so "plugin" ready :( So maybe i have miss something, maybe there is another way to make it as i wish to be, maybe there is a simple way to indirectly link samba to mysql with pam (I don't know PAM rules at all, i neither don't know how it works). It has been 4 days i'm looking for a solution, mailing random people i find on websites, no answers from them. Please if somebody has any clue, let me know a link, a sound, a color, anything to find a way to make it work... Anything to make it work from the stable .deb packages appreciated too. Thank you a lot! Pierre. P.S.: Here is the current configure parametters i use extracted from my rule file: --cache-file=./config.cache --with-fhs --enable-shared --enable-static --prefix=/usr --sysconfdir=/etc --libdir=/etc/samba --with-privatedir=/etc/samba --with-piddir=/var/run/samba --localstatedir=/var --with-netatalk --with-pam --with-syslog --with-utmp --with-readline --with-pam_smbpass --with-libsmbclient -
Re: [Samba] Re: Samba with Mysql, compilation problem. (Additionnal information)
Hi, Thank you for the help. I have managed to make the ./configure and compilation end with no errors, with the help of Collen who told me to make few symlinks of mysql and some little adds in the configure script. Now i am trying to get the mysql module to work with samba, and i still get the stupid message like "No builtin mysql plugin" or something. I also have try to locate anything named pdb_mysql but there is nothing, so maybe it has been compiled with samba like Collen said! I'm not sure of what to do now, so any help will be greatly appreciated. Thank you all, Pierre paul kölle wrote: MARTIN Pierre wrote: Hey people, i just had a compilation error! I'm pretty happy because it means that i am doing something wrong. It seems that the compiler doesn't find mysql.h include header file. The point is that i have all these includes files in this folder: /usr/local/mysql/include/mysql/ try: CFLAGS="$CFLAGS -I/usr/local/mysql/include/" LDFLAGS="$LDFLAGS -L/usr/local/mysql/lib" ./configure --foo --bar not sure if you have to add the last /mysql/ part also, just try it ;) hth Paul -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba with Mysql, compilation problem.
Hello again, and sorry for the "spam" inconvenience! Well have just added these args to the configure script (i also have symlinked some of the most important mysql bins in /usr/local/bin): *--with-mysql-prefix=/usr/include/mysql/ --with-mysql-exec-prefix=/usr/local/bin/* and it now goes ahead... I will have to go work soon, so i will see if it has been compiling the whole thing including the mysql stuff tonight... Any idea are welcome :) Pierre (C)ollen wrote: hmm.. try ./configure --with-expsam=mysql --with-shared-modules=pdb_mysql mysql lib's in the: /usr/lib/mysql (symlink will do) mysql headers in the: /usr/include/mysql (symlink will do) you can compile the mysql_backend into samba so there isn't an external module ! your problem is that samba can't find the header files from mysql (.h) I think that the guy's from debian left the mysql backend out, coz' it's somewhat experimental, and lackes support.. never the less, it works, and we have it up and running for almost 2years now!! have fun Collen Blijenberg (MLHJ) MARTIN Pierre wrote: First i would like to say hello to everybody here, because i am new to this ML. So here is the description of my problem: I began with a clean samba installation from the stable branch few monthes ago, everything was just fine, i have a linux box which was sharing files for another linux workstation and two WinXP laptops. The sharing linux box is a debian stable branch O/S, which is my choice for a long time now. Few weeks ago, i decided to make my sparkling samba installation virtual-users aware, and i began to crawl on various websites, all explaining the smb.conf parametters to give. I figured out that i was just not able to make it run because of a main problem, the apt-get samba gave me a non mysql-powered-samba version :( So i removed the samba package from the computer, and dowloaded the debian source of it. Basic source, untared, and had a look to the debian/rule file. I saw there was any parametters given about mysql building, so i also had a look at the configure script's options. It always compiles the brand new warm .deb packages (after i fixed some lacky dependencies, i had to make a fake mysql-common package by myselve, because i already had mysql installed from sources and did not want to install the deb package, etc...). I'm now totally lost, i have try everything and i can't get this pdb_mysql.so "plugin" ready :( So maybe i have miss something, maybe there is another way to make it as i wish to be, maybe there is a simple way to indirectly link samba to mysql with pam (I don't know PAM rules at all, i neither don't know how it works). It has been 4 days i'm looking for a solution, mailing random people i find on websites, no answers from them. Please if somebody has any clue, let me know a link, a sound, a color, anything to find a way to make it work... Anything to make it work from the stable .deb packages appreciated too. Thank you a lot! Pierre. P.S.: Here is the current configure parametters i use extracted from my rule file: --cache-file=./config.cache --with-fhs --enable-shared --enable-static --prefix=/usr --sysconfdir=/etc --libdir=/etc/samba --with-privatedir=/etc/samba --with-piddir=/var/run/samba --localstatedir=/var --with-netatalk --with-pam --with-syslog --with-utmp --with-readline --with-pam_smbpass --with-libsmbclient --with-winbind --with-msdfs --with-automount --with-tdbsam --with-ldap --with-python=python2.3 --with-mysql --enable-mysql --with-mysql-prefix=/usr/local/mysql --with-expsam=mysql -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba with Mysql, compilation problem.
Hello Collen, I've just try what you suggested. I have now a new error which is "*Can't find MySQL libraries while MySQL support is requested.*" But now, the configure script returns an error, not the compilation itselve (Since the make command is not started unless configure tells "i'm fine go ahead" :-) ) The configure script was called with these args: *--cache-file=./config.cache --with-fhs --enable-shared --enable-static --prefix=/usr --sysconfdir=/etc --libdir=/etc/samba --with-privatedir=/etc/samba --with-piddir=/var/run/samba --localstatedir=/var --with-netatalk --with-pam --with-syslog --with-utmp --with-readline --with-pam_smbpass --with-libsmbclient --with-winbind --with-msdfs --with-automount --with-tdbsam --with-ldap --with-python=python2.3 --with-expsam=mysql --with-shared-modules=pdb_mysql* My actual filesystem configuration is as follows: * /usr/local/mysql/include/mysql is symlinked to /usr/include/mysql, so i virtualy have mysql.h and other header files in /usr/include/mysql/* * /usr/local/mysql/lib/mysql is symlinked to /usr/lib/mysql, so i also virtually have all mysql libraries in /usr/lib/mysql/* look: "*ls /usr/lib/mysql/*" gives *libdbug.a libmerge.a libmyisammrg.alibmysqlclient.la libmysqlclient.so.14 libmystrings.a libnisam.a libheap.a libmyisam.a libmysqlclient.a libmysqlclient.so libmysqlclient.so.14.0.0 libmysys.a libvio.a* and "*ls /usr/include/mysql/*" *errmsg.hmy_alloc.h my_getopt.h my_no_pthread.h mysqld_error.h mysql_version.h readline.h sslopt-longopts.h keycache.h my_config.h my_global.h my_pthread.h mysql_embed.h my_sys.h sql_common.h sslopt-vars.h m_ctype.h my_dbug.h my_list.hmy_semaphore.h mysql.h my_xml.h sql_state.htypelib.h m_string.h my_dir.h my_net.h mysql_com.h mysql_time.hraid.h sslopt-case.h* But it seems that the configure script doesn't knows where to look in. I'm going to make further tests with the "*--with-mysql-prefix*" and "*--with-mysql-exec-prefix*", giving them some additionnal paths, in fact i dont know what more i can do :'( Anyway, thank you for the help! Take care, Pierre (C)ollen wrote: hmm.. try ./configure --with-expsam=mysql --with-shared-modules=pdb_mysql mysql lib's in the: /usr/lib/mysql (symlink will do) mysql headers in the: /usr/include/mysql (symlink will do) you can compile the mysql_backend into samba so there isn't an external module ! your problem is that samba can't find the header files from mysql (.h) I think that the guy's from debian left the mysql backend out, coz' it's somewhat experimental, and lackes support.. never the less, it works, and we have it up and running for almost 2years now!! have fun Collen Blijenberg (MLHJ) MARTIN Pierre wrote: First i would like to say hello to everybody here, because i am new to this ML. So here is the description of my problem: I began with a clean samba installation from the stable branch few monthes ago, everything was just fine, i have a linux box which was sharing files for another linux workstation and two WinXP laptops. The sharing linux box is a debian stable branch O/S, which is my choice for a long time now. Few weeks ago, i decided to make my sparkling samba installation virtual-users aware, and i began to crawl on various websites, all explaining the smb.conf parametters to give. I figured out that i was just not able to make it run because of a main problem, the apt-get samba gave me a non mysql-powered-samba version :( So i removed the samba package from the computer, and dowloaded the debian source of it. Basic source, untared, and had a look to the debian/rule file. I saw there was any parametters given about mysql building, so i also had a look at the configure script's options. It always compiles the brand new warm .deb packages (after i fixed some lacky dependencies, i had to make a fake mysql-common package by myselve, because i already had mysql installed from sources and did not want to install the deb package, etc...). I'm now totally lost, i have try everything and i can't get this pdb_mysql.so "plugin" ready :( So maybe i have miss something, maybe there is another way to make it as i wish to be, maybe there is a simple way to indirectly link samba to mysql with pam (I don't know PAM rules at all, i neither don't know how it works). It has been 4 days i'm looking for a solution, mailing random people i find on websites, no answers from them. Please if somebody has any clue, let me know a link, a sound, a color, anything to find a way to make it work... Anything to make it work from the stable .deb packages appreciated too. Thank you a lot! Pierre. P.S.: Here is the curren
[Samba] Samba with Mysql, compilation problem. (Additionnal information)
Hey people, i just had a compilation error! I'm pretty happy because it means that i am doing something wrong. It seems that the compiler doesn't find mysql.h include header file. The point is that i have all these includes files in this folder: /usr/local/mysql/include/mysql/ The ./configure call which has failed had: --enable-mysql --with-mysql --with-mysql-prefix=/usr/local/mysql --with-mysql-exec-prefix=/usr/mysql/bin --with-expsam=mysql at the end, i just added the bin suffix... So maybe the version are not compatible for each other? :O MySql version (14.7) Distrib 4.1.14 Samba Version (Which i wish to compile) is 3.0.14a Any advice? And sorry for the bad english! Pierre -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba with Mysql, compilation problem.
First i would like to say hello to everybody here, because i am new to this ML. So here is the description of my problem: I began with a clean samba installation from the stable branch few monthes ago, everything was just fine, i have a linux box which was sharing files for another linux workstation and two WinXP laptops. The sharing linux box is a debian stable branch O/S, which is my choice for a long time now. Few weeks ago, i decided to make my sparkling samba installation virtual-users aware, and i began to crawl on various websites, all explaining the smb.conf parametters to give. I figured out that i was just not able to make it run because of a main problem, the apt-get samba gave me a non mysql-powered-samba version :( So i removed the samba package from the computer, and dowloaded the debian source of it. Basic source, untared, and had a look to the debian/rule file. I saw there was any parametters given about mysql building, so i also had a look at the configure script's options. It always compiles the brand new warm .deb packages (after i fixed some lacky dependencies, i had to make a fake mysql-common package by myselve, because i already had mysql installed from sources and did not want to install the deb package, etc...). I'm now totally lost, i have try everything and i can't get this pdb_mysql.so "plugin" ready :( So maybe i have miss something, maybe there is another way to make it as i wish to be, maybe there is a simple way to indirectly link samba to mysql with pam (I don't know PAM rules at all, i neither don't know how it works). It has been 4 days i'm looking for a solution, mailing random people i find on websites, no answers from them. Please if somebody has any clue, let me know a link, a sound, a color, anything to find a way to make it work... Anything to make it work from the stable .deb packages appreciated too. Thank you a lot! Pierre. P.S.: Here is the current configure parametters i use extracted from my rule file: --cache-file=./config.cache --with-fhs --enable-shared --enable-static --prefix=/usr --sysconfdir=/etc --libdir=/etc/samba --with-privatedir=/etc/samba --with-piddir=/var/run/samba --localstatedir=/var --with-netatalk --with-pam --with-syslog --with-utmp --with-readline --with-pam_smbpass --with-libsmbclient --with-winbind --with-msdfs --with-automount --with-tdbsam --with-ldap --with-python=python2.3 --with-mysql --enable-mysql --with-mysql-prefix=/usr/local/mysql --with-expsam=mysql -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba