Re: [Samba] Question on number of winbindd demons
On Fri, Nov 23, 2007 at 02:56:40PM +0100, Jens Nissen wrote: I forgot to mention: Samba Version is 3.026a! Original-Nachricht Datum: Fri, 23 Nov 2007 14:28:41 +0100 Von: Jens Nissen [EMAIL PROTECTED] An: samba@lists.samba.org Betreff: [Samba] Question on number of winbindd demons Winbindd is supposed to have 2 processes running according to the documentation. When I start my samba server (security=ADS), I can see at least 4 Winbindd demons? (A) Is this intended? Yes. (B) How can I limit the number of winbindd processes? You can't but they also will not grow except if you add trusted domains to your domain. Volker pgprIA5WhAFRU.pgp Description: PGP signature -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Strange file permissions
Hi I have a samba server with tdbsam passwords, and a share, PROJECTS, which is accessed by various XP home clients, the usenames and passwords being manually synced to the samba ones (less than 10 users, and only 4 workstations). There is one win2K machine, which is a domain member. Subdirectories on PROJECTS have g+s set, so only users, who are members of specific Linux groups, have access to the files in them. Recently, a laptop with XP professional has been connected, and the user on it can access the correct directories, but when he edits or creates a file, the group owner and file permissions are wrong: /home/projects/cp/CP 2007# ls -alt total 2932 drwxrwsrw- 4 daniel cp 4096 2007-11-24 12:35 . -r 1 haffers BUILTIN\users 197120 2007-11-24 12:34 CP 11 Nova.xls -rw-rw-rw- 1 haffers BUILTIN\users 199168 2007-11-23 19:47 CP 10 Octa.xls drwxrwsrwx 2 daniel cp 4096 2007-11-23 19:34 FORMS 2007 -rw-rw-rw- 1 haffers BUILTIN\users 299520 2007-11-23 19:20 2007 ANALYSIS.xls drwxrws--- 26 dnl cp 4096 2007-11-23 15:37 .. -r 1 haffers BUILTIN\users 197120 2007-11-23 14:40 CP 10 Oct.xls -rwxrwx--- 1 haffers cp196608 2007-11-18 18:51 CP 11 Nov.xls -rwxrwx--- 1 haffers cp192512 2007-11-18 17:47 CP 09 Sep.xls The files he creates are therefore unusable until permissions are changed. Various searches on the internet and reading of the Samba documentation have failed give me any idea on why this is happening, or how to put it right. How is Samba managing to not respecting the Linux g+s bit? How do I make this system work correctly? Can you assist? Background information: The log-on of the user on the XP professional machine: # tail -14 andylap.old [2007/11/24 01:32:01, 1] smbd/service.c:close_cnum(1150) andylap (192.168.0.168) closed connection to service projects [2007/11/24 11:13:20, 2] smbd/sesssetup.c:setup_new_vc_session(799) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2007/11/24 11:13:20, 2] smbd/sesssetup.c:setup_new_vc_session(799) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2007/11/24 11:13:20, 2] lib/access.c:check_access(323) Allowed connection from (192.168.0.168) [2007/11/24 11:13:20, 2] smbd/reply.c:reply_tcon_and_X(711) Serving IPC$ as a Dfs root [2007/11/24 11:13:20, 2] auth/auth.c:check_ntlm_password(309) check_ntlm_password: authentication for user [haffers] - [haffers] - [haffers] succeeded [2007/11/24 11:13:20, 2] smbd/utmp.c:sys_utmp_update(419) utmp_update: uname:/var/run/utmp wname:/var/log/wtmp # head -24 andylap [2007/11/24 11:13:20, 2] lib/access.c:check_access(323) Allowed connection from (192.168.0.168) [2007/11/24 11:13:20, 1] smbd/service.c:make_connection_snum(950) andylap (192.168.0.168) connect to service projects initially as user haffers (uid=529, gid=502) (pid 17358) [2007/11/24 11:13:20, 2] smbd/reply.c:reply_tcon_and_X(711) Serving projects as a Dfs root [2007/11/24 11:13:20, 2] smbd/utmp.c:sys_utmp_update(419) utmp_update: uname:/var/run/utmp wname:/var/log/wtmp [2007/11/24 11:13:20, 1] smbd/service.c:close_cnum(1150) andylap (192.168.0.168) closed connection to service projects [2007/11/24 11:13:20, 2] auth/auth.c:check_ntlm_password(309) check_ntlm_password: authentication for user [haffers] - [haffers] - [haffers] succeeded [2007/11/24 11:13:20, 2] smbd/utmp.c:sys_utmp_update(419) utmp_update: uname:/var/run/utmp wname:/var/log/wtmp [2007/11/24 11:13:20, 2] lib/access.c:check_access(323) Allowed connection from (192.168.0.168) [2007/11/24 11:13:20, 1] smbd/service.c:make_connection_snum(950) andylap (192.168.0.168) connect to service projects initially as user haffers (uid=529, gid=502) (pid 17358) [2007/11/24 11:13:20, 2] smbd/reply.c:reply_tcon_and_X(711) Serving projects as a Dfs root [2007/11/24 11:14:36, 2] lib/access.c:check_access(323) Allowed connection from (192.168.0.168) [2007/11/24 11:14:36, 2] smbd/reply.c:reply_tcon_and_X(711) Serving IPC$ as a Dfs root The most recent problem file in that log: /var/log/samba# grep Nova andylap unix_mode(cp/CP 2007/CP 11 Nova.xls) inheriting from cp/CP 2007 unix_mode(cp/CP 2007/CP 11 Nova.xls) inherit mode 42776 haffers opened file cp/CP 2007/CP 11 Nova.xls read=Yes write=No (numopen=3) unix_mode(cp/CP 2007/CP 11 Nova.xls) inheriting from cp/CP 2007 unix_mode(cp/CP 2007/CP 11 Nova.xls) inherit mode 42776 haffers opened file cp/CP 2007/CP 11 Nova.xls read=No write=No (numopen=4) haffers closed file cp/CP 2007/CP 11 Nova.xls (numopen=3) haffers closed file cp/CP 2007/CP 11 Nova.xls (numopen=2) unix_mode(cp/CP 2007/CP 11 Nova.xls) inheriting from cp/CP 2007 unix_mode(cp/CP 2007/CP 11 Nova.xls) inherit mode 42776 haffers opened file cp/CP 2007/CP 11 Nova.xls read=Yes write=No (numopen=3) haffers closed file cp/CP 2007/CP 11 Nova.xls (numopen=2) unix_mode(cp/CP 2007/CP 11 Nova.xls) inheriting from cp/CP 2007
[Samba] Re: Domain server unavailable
Walmiro Muzzi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all. I'm having a serious problem with my samba/ldap server. It was working well till the last week and today stops definitly. Nothing has changed. Now my network is down and nobody can log in. Are you using OpenLDAP? If so, run it in debug mode and watch the output for errors. That should give you a clue re: what is happening. Check you samba log files to look for clues. How long was the network up and running? -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Share root directory appears in subdirectories. (Well, can't actually see it but can cd into it, even if its not there.) (Serious bug?)
Additionally to the problems I reported earlier, I'Ve discovered another problem with my server/client setup. find reports find: WARNING: Hard link count is wrong for ./foo: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched. in one directory and if I browse this directorya and I see completely wrong files in it (Actually, I seem to see the contents of the upper level directory). This problem doesn't appear with Win2K clients and the filesystem itself is OK. Samba Version 3.0.24 on the server (Debian Etch), according to smbd -V. As mount helper I use mount.cifs, compiled from samba-3.0.26a. The kernels on the server and client are the Debian default kernels (2.6.18-5-486 and 2.6.18-5-686). The directory structure looks like: /dir1/dir2/dir3 where dir2 is the mountpoint. If I 'cd' into dir4 from dir3, I see the contest of dir2. It may have to do with the fact, that the name of dir4 is the same as dir2 ... Example: /coffee/cup$ ls Dir contents of cup /coffee/cup$ cd foo /coffee/cup/foo$ ls cup, water /coffee/cup/foo$ cd cup /coffee/cup/foo/cup$ ls The contents of /coffee/cup and not of /coffee/cup/foo/cup are shown and I can even access those wrong files! This seems to be a definite bug in either Samba or the filesystem driver. This may even be a security hole in some way. (Can't think of any now, but who knows.) I played around a bit and found the following out: The problem appears when a directory has the same name as the mount point. I can even 'cd' into a directory which isn't there: (Mount point is gstorage, share name is gstorage too, don't know if this matters, I haven't investigated it) /cifsmounts/gstorage$ cd anydir /cifsmounts/gstorage/anydir$ cd gstorage /cifsmounts/gstorage/anydir/gstorage$ Crazy. I seem to be in the root of the share again(!), even if the directory gstorage doesn't exist in 'anydir'. I called it anydir, because it works from any directory (but it must be one level below the share root). In /cifsmounts/gstorage/anydir/gstorage I can see the contents of the root of the share, again. If there is a dir with the share name the contents are overridden, like described above. I've tried this on a client running 2.6.22.10. Same problem from this one too. Seems to be either an undisovered kernel or Samba Bug. mfg Wiesner Thomas -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] INTERNAL ERROR: Signal 11 in pid xxxx (3.0.26a)
Hello, I have a problem with samba 3.0.26a (from ports) on FreeBSD (amd64, SMP, 6.2 RELEASE). My log.smbd looks like below: --- samba starts normally: [2007/11/24 16:55:22, 0] smbd/server.c:main(944) smbd version 3.0.26a started. Copyright Andrew Tridgell and the Samba Team 1992-2007 --- but an error is reported: [2007/11/24 16:55:22, 0] /usr/ports/net/samba3/work/samba-3.0.26a/source/lib/pidfile.c:pidfile_create(112) ERROR: smbd is already running. File /var/run/smbd.pid exists and process id 1961 is running. --- /var/run/smbd.pid exists, becase the error is created after unexpected system shutdown... --- next I can see in log.smbd: [2007/11/24 16:59:53, 0] lib/util_tdb.c:tdb_log(662) tdb(/var/db/samba/gencache.tdb): tdb_reopen: open failed (No such file or directory) [2007/11/24 16:59:53, 0] smbd/server.c:open_sockets_smbd(572) tdb_reopen_all failed. [2007/11/24 16:59:53, 0] lib/util.c:smb_panic(1632) PANIC (pid 2621): tdb_reopen_all failed. [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(41) === [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(42) INTERNAL ERROR: Signal 11 in pid 2621 (3.0.26a) Please read the Trouble-Shooting section of the Samba3-HOWTO [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(44) From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(45) === [2007/11/24 16:59:53, 0] lib/util.c:smb_panic(1632) PANIC (pid 2621): internal error [2007/11/24 16:59:53, 0] lib/util_tdb.c:tdb_log(662) tdb(/var/db/samba/gencache.tdb): tdb_reopen: open failed (No such file or directory) [2007/11/24 16:59:53, 0] smbd/server.c:open_sockets_smbd(572) tdb_reopen_all failed. [2007/11/24 16:59:53, 0] lib/util.c:smb_panic(1632) PANIC (pid 2622): tdb_reopen_all failed. [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(41) === [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(42) INTERNAL ERROR: Signal 11 in pid 2622 (3.0.26a) Please read the Trouble-Shooting section of the Samba3-HOWTO [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(44) From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(45) --- the error is repeated about 100 times ... and it is still repeated. Next I can see in the top a lot of run smbd processes. System load grows and smbd makes it unresponsible. Connection with ssh is impossible, I can only use (with problems) console. Command killall -9 smbd helps, system goes back to normal work. I can run samba again but I must use the following procedure: - cd /usr/ports/net/samba3 - make deinstall Samba is now deinstalled. Next I must delete the directory /var/db/samba an I can do: - make reinstall And after start samba works properly until next unexpected system restart :( If I do only: - make deinstall reinstall Without deleting /var/db/samba, than the samba will start and procedure described on the start of this message will be repeated :( It is problem with FreeBSD on amd64? Or the problem with samba 3.0.26a? I reverted to samba 3.0.24 to check if the problem back... Regards, Marcin K. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Share root directory appears in subdirectories. (Well, can't actually see it but can cd into it, even if its not there.) (Serious bug?)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Wiesner Thomas wrote: Additionally to the problems I reported earlier, I'Ve discovered another problem with my server/client setup. find reports find: WARNING: Hard link count is wrong for ./foo: this may be a bug in your filesystem driver. Automatically turning on find's -noleaf option. Earlier results may have failed to include directories that should have been searched. I'm running samba Version 3.0.25c-SVN-build-23735 on FC5. Ext3 with journaling in ordered mode. No problems with duplicate name subdirs linking back to share point contents. I think you might want to interpret this error message exactly the way it reads. If I saw this on my system, I would lose confidence in the integrity of the filesystem. Regards, Doug -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFHSKZzFqWysr/jOHMRAr73AKDR1HYI5IDdlzdjfbDlu8qO/aHPLQCgrJ4D 6P5Kci7WYqrE9YYoXQzOiAo= =W4jA -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] INTERNAL ERROR: Signal 11 in pid xxxx (3.0.26a)
[EMAIL PROTECTED] wrote: Hello, I have a problem with samba 3.0.26a (from ports) on FreeBSD (amd64, SMP, 6.2 RELEASE). My log.smbd looks like below: --- samba starts normally: [2007/11/24 16:55:22, 0] smbd/server.c:main(944) smbd version 3.0.26a started. Copyright Andrew Tridgell and the Samba Team 1992-2007 --- but an error is reported: [2007/11/24 16:55:22, 0] /usr/ports/net/samba3/work/samba-3.0.26a/source/lib/pidfile.c:pidfile_create(112) ERROR: smbd is already running. File /var/run/smbd.pid exists and process id 1961 is running. --- /var/run/smbd.pid exists, becase the error is created after unexpected system shutdown... What os the unexpected system shutdown? Power failure? Reset button after system freeze? --- next I can see in log.smbd: [2007/11/24 16:59:53, 0] lib/util_tdb.c:tdb_log(662) tdb(/var/db/samba/gencache.tdb): tdb_reopen: open failed (No such file or directory) [2007/11/24 16:59:53, 0] smbd/server.c:open_sockets_smbd(572) tdb_reopen_all failed. [2007/11/24 16:59:53, 0] lib/util.c:smb_panic(1632) PANIC (pid 2621): tdb_reopen_all failed. [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(41) The filesystem didn't flush it's buffers on shutdown. Unexpectedly, files are missing and/or corrupted that should be there on startup. === [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(42) INTERNAL ERROR: Signal 11 in pid 2621 (3.0.26a) Please read the Trouble-Shooting section of the Samba3-HOWTO [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(44) From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(45) === [2007/11/24 16:59:53, 0] lib/util.c:smb_panic(1632) PANIC (pid 2621): internal error [2007/11/24 16:59:53, 0] lib/util_tdb.c:tdb_log(662) tdb(/var/db/samba/gencache.tdb): tdb_reopen: open failed (No such file or directory) [2007/11/24 16:59:53, 0] smbd/server.c:open_sockets_smbd(572) tdb_reopen_all failed. [2007/11/24 16:59:53, 0] lib/util.c:smb_panic(1632) PANIC (pid 2622): tdb_reopen_all failed. [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(41) === [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(42) INTERNAL ERROR: Signal 11 in pid 2622 (3.0.26a) Please read the Trouble-Shooting section of the Samba3-HOWTO [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(44) From: http://www.samba.org/samba/docs/Samba3-HOWTO.pdf [2007/11/24 16:59:53, 0] lib/fault.c:fault_report(45) --- the error is repeated about 100 times ... and it is still repeated. Next I can see in the top a lot of run smbd processes. System load grows and smbd makes it unresponsible. Connection with ssh is impossible, I can only use (with problems) console. Command killall -9 smbd helps, system goes back to normal work. I can run samba again but I must use the following procedure: - cd /usr/ports/net/samba3 - make deinstall Samba is now deinstalled. Next I must delete the directory /var/db/samba an I can do: - make reinstall And after start samba works properly until next unexpected system restart :( You need to fix this and ensure you're using a journaled file system with whatever option is available for the safest, most conservative journaling mode. If I do only: - make deinstall reinstall Without deleting /var/db/samba, than the samba will start and procedure described on the start of this message will be repeated :( You should be able to delete /var/db/samba (plus maybe the pid file) and restart samba. Samba will create any tdb files it needs like the initial startup. It is problem with FreeBSD on amd64? Or the problem with samba 3.0.26a? I reverted to samba 3.0.24 to check if the problem back... Regards, Doug -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] samba as a pdc problems
hi, still having a problem adding a new user with the win2k usrmgr.exe: I get the following log entries: Cannot lock password file: already locked. [2007/11/24 15:21:46, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2415) _samr_create_user: Running the command `/usr/sbin/useradd -m 'akop'' gave 5 looking at the useradd source, the gave 5 is a return code equivalent of the Cannot lock password file: already locked. error message above i am not sure what I, as the user do, to effect the locking sequence between smbd and useradd. it would appear that the password file is locked when useradd is run. is this a bug in smbd? thanks, jon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jon H. Peterson Sent: Tuesday, November 20, 2007 11:14 PM To: samba@lists.samba.org Subject: [Samba] samba as a pdc problems hi, so you know, I am new to samba and Linux. opensuse 10.1; samba 3.0.22; windows xp/sp2 client Running: smbd, nmbd, dns server; NOT running: winbindd; ldap Digitally encrypt or sign secure channel data (always) is Disabled in xp. what works: -browsing editing files on the Linux server from xp client -joining the domain (home.local) from xp -starting the win2k version of usrmgr.exe on xp -(note: the win2003 version of usrmgr.exe does NOT work at all) -all functions/networking tests given in Using Samba, 3rd Ed., O'Reilly. -swat on linux server problems: 1 - cannot log on to winxp with domain set to home.local ...domain home.local is not available this message is almost instantaneous after clicking OK on the Log On to Windows dialog. I left this one in because it might help someone to know the answer: I set ntlmv2 on in smb.conf and the logon when just fine--wow this has taken forever to figure out. 2 - when using the user manager, usrmgr.exe the following occurs: a - can display user properties with no problem. when trying to change the Description field of a user, windows said Access Denied. At the same time the log.smbd showed ...Unable to open/create TDB passwd. this sounds like a permissions problem for smbd, so I changed the permissions on passdb.tdb to -rwxrwx-. Tried it again and the problem changes to Group name could not be found. It appears, however, that the Description field change was completed successfully (via pdbedit -L -v). b - when trying to add a new user: Windows error: The user name could not be found. The log file showed: [2007/11/20 17:33:20, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2415) _samr_create_user: Running the command `/usr/sbin/useradd -m 'akop'' gave 5 This looks like another permissions problem with smbd as running this command by hand when signed on as root works just fine. I can post anything appropriate: logs, configs, etc. just didn't want to post unnecessary noise to the list. Any help or ideas would be most appreciated. Thanks, Jon -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Wondering if there is an option like banner
Well while the global option security is still set as server, it will prompt for a user and a password, I do have it set to a guest account, which I designated to nobody but the user must know this and this is why I'm looking for an easy embedded way to let hem be aware of it. On 11/23/07, Koenraad Lelong [EMAIL PROTECTED] wrote: Max León schreef: Hi everyone, I have been googling quite a bit and going through the samba documentation looking for something like a banner for a share and nothing came up. I need to setup a public share on a server that is currently running with server security, so I addedd the nobody account to the smbpasswd with null password, but I want to set a banner on the share that let people know this. Is this possible? Running samba 3.0.26a on slackware 12.0 Thanks so much. There is a comment field for the share. Regards, Koenraad Lelong. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] _net_auth2: creds_server_check failed Error
Hi All I am trying to add my NAS server to the domain but i getthing this error. _net_auth2: creds_server_check failed. Rejecting auth request from client NAS1 machine account NAS1$ It used to be working fine till a recent reboot of the NAS machine. I am using SAMBA + LDAP and i have also tried to removing and adding the machine still no luck. openldap-2.3.27-5 nss_ldap-253-3 php-ldap-5.1.6-15.el5 openldap-servers-2.3.27-5 openldap-devel-2.3.27-5 nss_ldap-253-3 openldap-clients-2.3.27-5 openldap-2.3.27-5 smbldap-tools-0.9.3-1.el5.rf samba-client-3.0.23c-2.el5.2.0.2 samba-3.0.23c-2.el5.2.0.2 samba-common-3.0.23c-2.el5.2.0.2 Anyone Please advise. _ Edit your photos like a pro with Photo Gallery. http://www.get.live.com/wl/all -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Installation problem of SAMBA 3.0.23a on HP-UX 11.23
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A compile of Samba requires HP's AnsiC (non-bundled) compiler, or GCC. At least, I'm pretty sure that's the case. Anyhow, CIFS/9000 is pretty up-to-date these days. You might consider not bothering and just installing that from HP. =R Béland wrote: To whom it concern, There was no problem at all with the installation of the Depot. Before running the ./configure command I'm setting the following variables like this (as it's mentionned in the README file) : export CFLAGS=-O -DWITH_SYSLOG -DGUEST_ACCOUNT=\\\smbnull\\\ export CPPFLAGS=-I/opt/iexpress/openldap/include export LDFLAGS=-L/opt/iexpress/openldap/lib Here is the 'configure' command that I'm using (as it's mentionned in the README file) ./configure \ --sbindir=\${BINDIR} \ --with-krb5 \ --with-ldap \ --with-ldapsam \ --with-ads \ --with-libiconv=/usr/local \ --with-quotas \ --prefix=/usr/local/samba \ --with-acl-support \ --with-winbind \ --with-pam \ --with-sendfile-support \ --with-shared-modules=idmap_rid \ --disable-pie \ --with-aio-support And here is the output of that command : SAMBA VERSION: 3.0.23a checking for gcc... no checking for cc... cc checking for C compiler default output file name... configure: error: C compiler cannot create executables See `config.log' for more details. And here is the output of the config.log : This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by configure, which was generated by GNU Autoconf 2.59. Invocation command line was $ ./configure --sbindir=${BINDIR} --with-krb5 --with-ldap --with-ldapsam --wit h-ads --with-libiconv=/usr/local --with-quotas --prefix=/usr/local/samba --with- acl-support --with-winbind --with-pam --with-sendfile-support --with-shared-modu les=idmap_rid --disable-pie --with-aio-support ## - ## ## Platform. ## ## - ## hostname = trsoracle01 uname -m = ia64 uname -r = B.11.23 uname -s = HP-UX uname -v = U /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /usr/bin PATH: /usr/sbin PATH: /sbin ## --- ## ## Core tests. ## ## --- ## configure:1901: checking for gcc configure:1930: result: no configure:1981: checking for cc configure:1997: found /usr/bin/cc configure:2007: result: cc configure:2171: checking for C compiler version configure:2174: cc --version /dev/null 5 (Bundled) cc: HP aC++/ANSI C B3910B A.05.50 [May 15 2003] configure:2177: $? = 0 configure:2179: cc -v /dev/null 5 configure:2182: $? = 0 configure:2184: cc -V /dev/null 5 (Bundled) cc: HP aC++/ANSI C B3910B A.05.50 [May 15 2003] configure:2187: $? = 0 configure:2210: checking for C compiler default output file name configure:2213: cc -O -DWITH_SYSLOG -DGUEST_ACCOUNT=\smbnull\ -D_SAMBA_BUILD_ -I/opt/iexpress/openldap/include -L/opt/iexpress/openldap/lib conftest.c 5 (Bundled) cc: warning 922: -O is unsupported in the bundled compiler, ignored. Error 100: command line, line 0 # String and character constants cannot span lines. configure:2216: $? = 2 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME | #define PACKAGE_TARNAME | #define PACKAGE_VERSION | #define PACKAGE_STRING | #define PACKAGE_BUGREPORT | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2254: error: C compiler cannot create executables See `config.log' for more details. ## ## ## Cache variables. ## ## ## ac_cv_env_CC_set='' ac_cv_env_CC_value='' ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-O -DWITH_SYSLOG -DGUEST_ACCOUNT=\smbnull\' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value=-I/opt/iexpress/openldap/include ac_cv_env_CPP_set='' ac_cv_env_CPP_value='' ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value=-L/opt/iexpress/openldap/lib ac_cv_env_build_alias_set='' ac_cv_env_build_alias_value='' ac_cv_env_host_alias_set='' ac_cv_env_host_alias_value='' ac_cv_env_target_alias_set='' ac_cv_env_target_alias_value='' ac_cv_prog_ac_ct_CC=cc libc_cv_fpie=no ## - ## ## Output variables. ## ## - ## ACL_LIBS='' AR='' AUTH_LIBS='' AUTH_MODULES='' AUTH_STATIC='' AWK='' BROKEN_CC='' BUILD_INIPARSER='' BUILD_POPT='' CC='cc' CFLAGS='-O -DWITH_SYSLOG -DGUEST_ACCOUNT=\smbnull\ -D_SAMBA_BUILD_' CHARSET_MODULES='' CHARSET_STATIC='' CIFSMOUNT_PROGS='' CONFIG_LIBS='' CPP='' CPPFLAGS='-I/opt/iexpress/openldap/include' CUPS_CONFIG='' DEFS='' DYNEXP='' ECHO_C='ECHO_N='' ECHO_T='' EGREP='' EXEEXT=''
Build status as of Sun Nov 25 00:00:02 2007
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2007-11-24 00:00:46.0 + +++ /home/build/master/cache/broken_results.txt 2007-11-25 00:01:03.0 + @@ -1,4 +1,4 @@ -Build status as of Sat Nov 24 00:00:02 2007 +Build status as of Sun Nov 25 00:00:02 2007 Build counts: Tree Total Broken Panic @@ -7,7 +7,7 @@ ccache 27 8 0 ctdb 0 0 0 distcc 1 0 0 -ldb 27 11 0 +ldb 28 11 0 libreplace 27 11 0 lorikeet-heimdal 24 15 0 pidl 17 5 0
[SCM] Samba Shared Repository - branch v3-2-test updated - initial-v3-2-unstable-367-g85a84f7
The branch, v3-2-test has been updated via 85a84f72ffc440fb71744cb72de2dba07793123c (commit) from 49949f0b85007c7c2b3c340c12f3d18909862135 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit 85a84f72ffc440fb71744cb72de2dba07793123c Author: Volker Lendecke [EMAIL PROTECTED] Date: Sat Nov 24 16:32:38 2007 +0100 Remove a static --- Summary of changes: source/utils/net_usershare.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) Changeset truncated at 500 lines: diff --git a/source/utils/net_usershare.c b/source/utils/net_usershare.c index 658c008..19fa8fa 100644 --- a/source/utils/net_usershare.c +++ b/source/utils/net_usershare.c @@ -41,7 +41,7 @@ struct { static const char *get_us_error_code(enum usershare_err us_err) { - static pstring out; + char *result; int idx = 0; while (us_errs[idx].us_errstr != NULL) { @@ -51,8 +51,10 @@ static const char *get_us_error_code(enum usershare_err us_err) idx++; } - slprintf(out, sizeof(out), Usershare error code (0x%x), (unsigned int)us_err); - return out; + result = talloc_asprintf(talloc_tos(), Usershare error code (0x%x), +(unsigned int)us_err); + SMB_ASSERT(result != NULL); + return result; } /* The help subsystem for the USERSHARE subcommand */ -- Samba Shared Repository
svn commit: samba r26106 - in branches/SAMBA_4_0/source/lib/ldb: . tests/python
Author: jelmer Date: 2007-11-25 02:58:12 + (Sun, 25 Nov 2007) New Revision: 26106 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=26106 Log: Add targets for building, installing and checking python bindings. Modified: branches/SAMBA_4_0/source/lib/ldb/ branches/SAMBA_4_0/source/lib/ldb/Makefile.in branches/SAMBA_4_0/source/lib/ldb/setup.py branches/SAMBA_4_0/source/lib/ldb/tests/python/ Changeset: Property changes on: branches/SAMBA_4_0/source/lib/ldb ___ Name: svn:ignore - *.d bin lib *.po *.gc?? Makefile config.cache config.status ldb.pc configure config.log autom4te.cache apidocs + *.d bin lib *.po *.gc?? Makefile config.cache config.status ldb.pc configure config.log autom4te.cache apidocs _trial_temp Modified: branches/SAMBA_4_0/source/lib/ldb/Makefile.in === --- branches/SAMBA_4_0/source/lib/ldb/Makefile.in 2007-11-25 02:29:59 UTC (rev 26105) +++ branches/SAMBA_4_0/source/lib/ldb/Makefile.in 2007-11-25 02:58:12 UTC (rev 26106) @@ -99,6 +99,12 @@ SOLIB = lib/libldb.$(SHLIBEXT).0.9.0 STATICLIB = lib/libldb.a +lib/$(SONAME): $(SOLIB) + ln -fs $ $@ + +lib/libldb.$(SHLIBEXT): $(SOLIB) + ln -fs $ $@ + $(SOLIB): $(OBJS) $(SHLD) $(SHLD_FLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LIBS) $(TALLOC_LIBS) $(TDB_LIBS) $(LDAP_LIBS) @[EMAIL PROTECTED](SONAME) @@ -170,22 +176,23 @@ doxygen: test -z $(DOXYGEN) || (cd $(srcdir) $(DOXYGEN)) -clean: +clean:: rm -f *.o */*.o *.gcov */*.gc?? tdbtest.ldb* rm -f $(BINS) $(TDB_OBJ) $(TALLOC_OBJ) $(STATICLIB) $(NSS_LIB) $(SOLIB) + rm -f $(POPT_OBJ) rm -f man/*.1 man/*.3 man/*.html rm -f $(EXAMPLES) rm -rf apidocs/ rm -rf tests/schema/ -distclean: clean +distclean:: clean rm -f *~ */*~ rm -rf bin lib rm -f config.log config.status config.cache include/config.h rm -f ldb.pc rm -f Makefile -realdistclean: distclean +realdistclean:: distclean rm -f configure.in include/config.h.in check:: test check-soloading @@ -201,7 +208,7 @@ installcheck: install test -install: all +install:: all mkdir -p $(DESTDIR)$(includedir) $(DESTDIR)$(libdir)/pkgconfig $(DESTDIR)$(libdir) $(bindir) cp $(srcdir)/include/ldb.h $(srcdir)/include/ldb_errors.h $(DESTDIR)$(includedir) cp $(STATICLIB) $(SOLIB) $(DESTDIR)$(libdir) @@ -224,8 +231,15 @@ ctags `find $(srcdir) -name *.[ch]` # Python bindings -build-python: +build-python: lib/libldb.$(SHLIBEXT) ./setup.py build install-python: ./setup.py install --prefix=$(prefix) + +check-python: build-python + # FIXME: This isn't portable + LD_LIBRARY_PATH=lib PYTHONPATH=.:build/lib.linux-i686-2.4/ trial tests/python/api.py + +clean-python: + ./setup.py clean Modified: branches/SAMBA_4_0/source/lib/ldb/setup.py === --- branches/SAMBA_4_0/source/lib/ldb/setup.py 2007-11-25 02:29:59 UTC (rev 26105) +++ branches/SAMBA_4_0/source/lib/ldb/setup.py 2007-11-25 02:58:12 UTC (rev 26106) @@ -10,5 +10,5 @@ license=LGPLv3, keywords=[ldap,ldb,db,ldif], ext_modules=[Extension('_ldb', ['ldb.i'], include_dirs=['include'], - libraries=['ldb','ldap'])], + library_dirs=[lib], libraries=['ldb','ldap'])], ) Property changes on: branches/SAMBA_4_0/source/lib/ldb/tests/python ___ Name: svn:ignore + *.pyc
svn commit: samba r26108 - in branches/SAMBA_4_0/source/lib/tdb: .
Author: jelmer Date: 2007-11-25 03:06:50 + (Sun, 25 Nov 2007) New Revision: 26108 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=26108 Log: Add makefile rules for building, installing and checking python bindings. Modified: branches/SAMBA_4_0/source/lib/tdb/ branches/SAMBA_4_0/source/lib/tdb/Makefile.in branches/SAMBA_4_0/source/lib/tdb/setup.py Changeset: Property changes on: branches/SAMBA_4_0/source/lib/tdb ___ Name: svn:ignore - *.pc configure + build *.pyc _trial_temp config.log *.pc configure Modified: branches/SAMBA_4_0/source/lib/tdb/Makefile.in === --- branches/SAMBA_4_0/source/lib/tdb/Makefile.in 2007-11-25 03:04:04 UTC (rev 26107) +++ branches/SAMBA_4_0/source/lib/tdb/Makefile.in 2007-11-25 03:06:50 UTC (rev 26108) @@ -68,10 +68,10 @@ ar -rv libtdb.a $(TDB_OBJ) libtdb.$(SHLIBEXT): $(SOLIB) - ln -s $ $@ + ln -fs $ $@ $(SONAME): $(SOLIB) - ln -s $ $@ + ln -fs $ $@ $(SOLIB): $(TDB_OBJ) $(SHLD) $(SHLD_FLAGS) -o $@ $(TDB_OBJ) @[EMAIL PROTECTED](SONAME) @@ -110,3 +110,16 @@ realdistclean: distclean rm -f configure include/config.h.in + +build-python: libtdb.$(SHLIBEXT) + ./setup.py build + +install-python: + ./setup.py install --prefix=$(prefix) + +check-python: build-python + # FIXME: Should be more portable: + LD_LIBRARY_PATH=. PYTHONPATH=.:build/lib.linux-i686-2.4 trial python/tests/simple.py + +clean-python: + ./setup.py clean Modified: branches/SAMBA_4_0/source/lib/tdb/setup.py === --- branches/SAMBA_4_0/source/lib/tdb/setup.py 2007-11-25 03:04:04 UTC (rev 26107) +++ branches/SAMBA_4_0/source/lib/tdb/setup.py 2007-11-25 03:06:50 UTC (rev 26108) @@ -1,8 +1,10 @@ #!/usr/bin/python from distutils.core import setup from distutils.extension import Extension + setup(name='tdb', version='1.0', + url=http://tdb.samba.org/;, ext_modules=[Extension('_tdb', ['tdb.i'], include_dirs=['include'], - libraries=['tdb'], swig_opts=[-noproxydel])], - ) + library_dirs=[.], libraries=['tdb'], swig_opts=[-noproxydel])], +)
svn commit: samba r26109 - in branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4: .
Author: jelmer Date: 2007-11-25 03:50:05 + (Sun, 25 Nov 2007) New Revision: 26109 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=26109 Log: Use new SWIG helpers in autogenerated DCE/RPC SWIG files. Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/SWIG.pm Changeset: Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/SWIG.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/SWIG.pm 2007-11-25 03:06:50 UTC (rev 26108) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/SWIG.pm 2007-11-25 03:50:05 UTC (rev 26109) @@ -23,8 +23,8 @@ $ret .= $tabs. $p . \n; } -sub indent() { $tabs.=\t; } -sub deindent() { $tabs = substr($tabs,0,-1); } +sub indent() { $tabs.= ; } +sub deindent() { $tabs = substr($tabs,0,-2); } sub IgnoreInterface($$) { @@ -41,29 +41,22 @@ my ($basename,$if) = @_; pidl \%inline {; - pidl struct $if-{NAME} { struct dcerpc_pipe *pipe; };; + pidl typedef struct $if-{NAME} { struct dcerpc_pipe *pipe; } $if-{NAME};; pidl }; pidl ; pidl \%extend $if-{NAME} {; indent(); - pidl $if-{NAME} (const char *binding, struct cli_credentials *cred = NULL, TALLOC_CTX *mem_ctx = NULL, struct event_context *event = NULL); + pidl NTSTATUS $if-{NAME} (const char *binding, struct cli_credentials *cred, TALLOC_CTX *mem_ctx, struct event_context *event, struct $if-{NAME} **result); pidl {; indent; - pidl struct $if-{NAME} *ret = talloc(mem_ctx, struct $if-{NAME});; - pidl NTSTATUS status;; + pidl *result = talloc(mem_ctx, struct $if-{NAME});; pidl ; - pidl status = dcerpc_pipe_connect(mem_ctx, ret-pipe, binding, ndr_table_$if-{NAME}, cred, event);; - pidl if (NT_STATUS_IS_ERR(status)) {; - pidl \tntstatus_exception(status);; - pidl \treturn NULL;; - pidl }; - pidl ; - pidl return ret;; + pidl return dcerpc_pipe_connect(mem_ctx, (*result)-pipe, binding, ndr_table_$if-{NAME}, cred, event);; deindent; pidl }; pidl ; pidl ~$if-{NAME}() {; - pidl \ttalloc_free(self);; + pidl \ttalloc_free(\$self);; pidl }; pidl ; @@ -76,8 +69,8 @@ my $name = $fn-{NAME}; $name =~ s/^$if-{NAME}_//g; $name =~ s/^$basename\_//g; - $args .= TALLOC_CTX *mem_ctx = NULL; - pidl mapTypeName($fn-{RETURN_TYPE}) . $name($args); + $args .= TALLOC_CTX *mem_ctx, . mapTypeName($fn-{RETURN_TYPE}) . *result; + pidl NTSTATUS $name($args); pidl {; indent; pidl struct $fn-{NAME} r;; @@ -94,12 +87,7 @@ pidl ; pidl status = dcerpc_$fn-{NAME}(self-pipe, mem_ctx, r);; pidl if (NT_STATUS_IS_ERR(status)) {; - pidl \tntstatus_exception(status);; - if (defined($fn-{RETURN_TYPE})) { - pidl \treturn r.out.result;; - } else { - pidl \treturn;; - } + pidl \treturn status;; pidl }; pidl ; pidl /* Set out arguments */; @@ -112,8 +100,9 @@ } if (defined($fn-{RETURN_TYPE})) { - pidl return r.out.result;; + pidl *result = r.out.result;; } + pidl return NT_STATUS_OK;; deindent; pidl }; pidl ; @@ -144,19 +133,12 @@ pidl \%{; pidl #include \includes.h\; - pidl #include \auth/credentials/credentials.h\; pidl #include \$header\; pidl #include \$gen_header\; pidl %}; - pidl \%import \samba.i\; + pidl \%import \../rpc/dcerpc.i\; + pidl \%import \../../libcli/util/errors.i\; pidl ; - pidl \%inline {; - pidl void ntstatus_exception(NTSTATUS status); - pidl {; - pidl \t/* FIXME */; - pidl }; - pidl }; - pidl ; foreach (@$ndr) { IgnoreInterface($basename, $_) if ($_-{TYPE} eq INTERFACE); }
svn commit: samba r26110 - in branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4: .
Author: jelmer Date: 2007-11-25 04:53:54 + (Sun, 25 Nov 2007) New Revision: 26110 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=26110 Log: Create separate function for connecting, add helper for creating result typemaps. Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/SWIG.pm Changeset: Modified: branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/SWIG.pm === --- branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/SWIG.pm 2007-11-25 03:50:05 UTC (rev 26109) +++ branches/SAMBA_4_0/source/pidl/lib/Parse/Pidl/Samba4/SWIG.pm 2007-11-25 04:53:54 UTC (rev 26110) @@ -36,6 +36,22 @@ } } +sub GenerateResultTypemap($) +{ + my $name = shift; + pidl %typemap(in,numinputs=0) $name*result ($name tmp) {; + indent; + pidl \$1 = tmp;; + deindent; + pidl }; + pidl ; + pidl %typemap(argout) $name*result {; + indent; + pidl \$result = SWIG_NewPointerObj(*\$1, \$1_descriptor, 0);; + deindent; + pidl }; +} + sub ParseInterface($$) { my ($basename,$if) = @_; @@ -46,12 +62,16 @@ pidl ; pidl \%extend $if-{NAME} {; indent(); - pidl NTSTATUS $if-{NAME} (const char *binding, struct cli_credentials *cred, TALLOC_CTX *mem_ctx, struct event_context *event, struct $if-{NAME} **result); + pidl $if-{NAME} () {; + indent; + pidl return talloc(NULL, struct $if-{NAME});; + deindent; + pidl }; + pidl ; + pidl NTSTATUS connect (const char *binding, struct cli_credentials *cred, struct event_context *event); pidl {; indent; - pidl *result = talloc(mem_ctx, struct $if-{NAME});; - pidl ; - pidl return dcerpc_pipe_connect(mem_ctx, (*result)-pipe, binding, ndr_table_$if-{NAME}, cred, event);; + pidl return dcerpc_pipe_connect(\$self, \$self-pipe, binding, ndr_table_$if-{NAME}, cred, event);; deindent; pidl }; pidl ; @@ -85,7 +105,7 @@ } pidl ; - pidl status = dcerpc_$fn-{NAME}(self-pipe, mem_ctx, r);; + pidl status = dcerpc_$fn-{NAME}(\$self-pipe, mem_ctx, r);; pidl if (NT_STATUS_IS_ERR(status)) {; pidl \treturn status;; pidl };