Re: [Samba] Samba memory usage - how big is it?
Hallo, Volker, Du (Volker.Lendecke) meintest am 13.11.08: [...] No, that sounds like a memleak. 13.6MB is way too much, I would expect more like 3-5MB. First shot: Can you issue a smbcontrol smbd-pid pool-usage where smbd-pid is the process ID of such a large smbd, and send the output? Does smbcontrol smbd-pid pool-usage | grep total reach for a quick diagnosis, or would it show only 13.6 MB? I've tried my entry (just now only 1 W98 client uses smbd), and it tells total 11314 bytes in 182 blocks). Viele Gruesse! Helmut -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 09:15:00AM +0100, Helmut Hullen wrote: First shot: Can you issue a smbcontrol smbd-pid pool-usage where smbd-pid is the process ID of such a large smbd, and send the output? Does smbcontrol smbd-pid pool-usage | grep total reach for a quick diagnosis, or would it show only 13.6 MB? I've tried my entry (just now only 1 W98 client uses smbd), and it tells total 11314 bytes in 182 blocks). It should also show the entries that consume the memory. For me it starts with full talloc report on 'null_context' (total 11696 bytes in 244 blocks) msg_pool_usage contains527 bytes in 3 blocks (ref 0) char contains512 bytes in 1 blocks (ref 0) .name contains 15 bytes in 1 blocks (ref 0) struct messaging_array contains 84 bytes in 4 blocks (ref 0) librpc/gen_ndr/ndr_messaging.c:152 contains 24 bytes in 2 blocks (ref 0) DATA_BLOB: ../librpc/ndr/ndr_basic.c:824 contains 0 bytes in 1 blocks (ref 0) struct ndr_pullcontains 52 bytes in 1 blocks (ref 0) NT_USER_TOKEN contains772 bytes in 2 blocks (ref 0) lib/util_nttoken.c:49 contains748 bytes in 1 blocks (ref 0) And so on. Volker pgp8jQlt0cOGD.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
Re: [Samba] Samba memory usage - how big is it?
Hallo, Volker, Du (Volker.Lendecke) meintest am 13.11.08: First shot: Can you issue a smbcontrol smbd-pid pool-usage where smbd-pid is the process ID of such a large smbd, and send the output? Does smbcontrol smbd-pid pool-usage | grep total reach for a quick diagnosis, or would it show only 13.6 MB? I've tried my entry (just now only 1 W98 client uses smbd), and it tells total 11314 bytes in 182 blocks). It should also show the entries that consume the memory. For me it starts with full talloc report on 'null_context' (total 11696 bytes in 244 blocks) msg_pool_usage contains527 bytes in 3 blocks (ref 0) char contains512 [...] Yes - I've seen the full list. But: does it reach for a quick diagnosis only to look at the total line? The list has many long lines, it's hard to read on a text screen (ok, the midnight commander may help). Viele Gruesse! Helmut -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 09:35:00AM +0100, Helmut Hullen wrote: full talloc report on 'null_context' (total 11696 bytes in 244 blocks) msg_pool_usage contains527 bytes in 3 blocks (ref 0) char contains512 [...] Yes - I've seen the full list. But: does it reach for a quick diagnosis only to look at the total line? The list has many long lines, it's hard to read on a text screen (ok, the midnight commander may help). less -S also does... I need the whole list, or rather the entry that repeats most, contributing most of the memory usage. That list should compress pretty well under bzip2 -9. Volker pgpNoiNPlICWM.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] Samba hangs after WAN link to trusted domain is cut
Hello, Wondering if this is a known behaviour in samba. I have 2 domains (say DOM_A and DOM_B) with DOM_B trusting DOM_A (one way relation). DOM_A and DOM_B are located in two different nets (and locations) and are connected through a VPN. What happens is that if the VPN goes down, samba PDC at DOM_B seems to be hung (can't provide auth to clients anymore), and this remains even after the VPN link is restored. I don't have so much data to add to this threads, except this : After the VPN went down, I did try to start a service on one client (being connected on the PDC console) by using the net -U admin -W DOM_B rpc service start MyService, and the command failed indicating no domain controller was available. By checking the nmbd logs, I could notice some browsing issue as both PDCs are configured with : remote browse sync = Address of the other domain PDC remote announce = Address of the other domain PDC After I commented out both line at DOM_B PDC, the failure disappeared (as far as I could test). So now my question is : is this kind of a feature (implied by remote browse sync) of did I misconfigured something. Thanks François -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba memory usage - how big is it?
Hi, thank you for the reply. I have set my server to run into 'init 3', trying to decrease any resources as low as possible so (server stop to response again - had to restart it) so I cannot go to system monitor again. But I have captured the result of smbcontrol command. (see attachment). Thanx again. PS. To keep my server alive I have to restart samba each 3-8 minute. :| Regards, [EMAIL PROTECTED] src]# smbcontrol 8843 pool-usage full talloc report on 'null_context' (total 9711 bytes in 159 blocks) msg_pool_usage contains527 bytes in 3 blocks (ref 0) char contains512 bytes in 1 blocks (ref 0) .name contains 15 bytes in 1 blocks (ref 0) NT_USER_TOKEN contains636 bytes in 2 blocks (ref 0) auth/auth_util.c:2176 contains612 bytes in 1 blocks (ref 0) struct messaging_context contains 28 bytes in 2 blocks (ref 0) struct messaging_callback contains 20 bytes in 1 blocks (ref 0) reference to: struct passwd connection_struct contains 3748 bytes in 10 blocks (ref 0) struct notify_context contains 82 bytes in 4 blocks (ref 0) struct sys_notify_context contains 12 bytes in 1 blocks (ref 0) struct tdb_wrapcontains 42 bytes in 2 blocks (ref 0) /var/lib/samba/notify.tdb contains 26 bytes in 1 blocks (ref 0) vfs_handle_struct contains784 bytes in 1 blocks (ref 0) vfs_handle_struct contains784 bytes in 1 blocks (ref 0) struct share_paramscontains 4 bytes in 1 blocks (ref 0) connection_struct contains 2076 bytes in 1 blocks (ref 0) .name contains 18 bytes in 1 blocks (ref 0) NT_USER_TOKEN contains636 bytes in 2 blocks (ref 0) auth/auth_util.c:2176 contains612 bytes in 1 blocks (ref 0) auth_serversupplied_info contains 1112 bytes in 8 blocks (ref 0) gid_t contains 16 bytes in 1 blocks (ref 0) NT_USER_TOKEN contains636 bytes in 2 blocks (ref 0) DOM_SIDcontains612 bytes in 1 blocks (ref 0) lib/data_blob.c:73 contains 16 bytes in 1 blocks (ref 0) lib/data_blob.c:73 contains 16 bytes in 1 blocks (ref 0) DOM_SIDcontains340 bytes in 1 blocks (ref 0) martin.soecontains 12 bytes in 1 blocks (ref 0) struct samucontains506 bytes in 20 blocks (ref 0) lib/data_blob.c:73 contains 16 bytes in 1 blocks (ref 0) lib/data_blob.c:73 contains 16 bytes in 1 blocks (ref 0) contains 1 bytes in 1 blocks (ref 0) contains 1 bytes in 1 blocks (ref 0) martin.soecontains 12 bytes in 1 blocks (ref 0) \\tamin7\martin.soe\profile contains 29 bytes in 1 blocks (ref 0) \\tamin7\martin.soe\profile contains 29 bytes in 1 blocks (ref 0) logon.exe contains 10 bytes in 1 blocks (ref 0) H: contains 3 bytes in 1 blocks (ref 0) \\tamin7\martin.soe contains 21 bytes in 1 blocks (ref 0) \\tamin7\martin.soe contains 21 bytes in 1 blocks (ref 0) martin.soecontains 12 bytes in 1 blocks (ref 0) martin.soecontains 12 bytes in 1 blocks (ref 0) tamin7 contains 7 bytes in 1 blocks (ref 0) martin.soecontains 12 bytes in 1 blocks (ref 0) uint32 contains 8 bytes in 1 blocks (ref 0) struct bitmap contains 8 bytes in 1 blocks (ref 0) uint32 contains 8 bytes in 1 blocks (ref 0) struct bitmap contains 8 bytes in 1 blocks (ref 0) struct samucontains588 bytes in 21 blocks (ref 0) reference to: struct passwd DOM_SIDcontains 68 bytes in 1 blocks (ref 0) LDAPMessage * contains 4 bytes in 1 blocks (ref 0) lib/data_blob.c:73 contains 16 bytes in 1 blocks (ref 0) lib/data_blob.c:73 contains 16 bytes in 1 blocks (ref 0) martin.soecontains 12 bytes in 1 blocks (ref
Re: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 04:19:40PM +0700, FC Mario Patty wrote: Hi, thank you for the reply. I have set my server to run into 'init 3', trying to decrease any resources as low as possible so (server stop to response again - had to restart it) so I cannot go to system monitor again. But I have captured the result of smbcontrol command. (see attachment). Thanx again. PS. To keep my server alive I have to restart samba each 3-8 minute. :| Wow, that's bad. If you sent the complete smbcontrol output, then this one did not help. The next step is to run smbd under valgrind (hopefully you're running Linux/x86...) and see the output of valgrind --tool=memcheck --trace-children=yes Volker pgpY18BV0tOnp.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
Re: [Samba] Samba memory usage - how big is it?
Hi Volker, That was the whole output I sent. And now regarding to valgrind, we're running x86 here so that would not be a problem. But, I've never used that tool before. Should I stop samba first or ...? It's a production server so I'm scare to ruin something here with my stupid action. :| Thank-you. Regards, On Thu, Nov 13, 2008 at 4:26 PM, Volker Lendecke [EMAIL PROTECTED]wrote: Wow, that's bad. If you sent the complete smbcontrol output, then this one did not help. The next step is to run smbd under valgrind (hopefully you're running Linux/x86...) and see the output of valgrind --tool=memcheck --trace-children=yes Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba memory usage - how big is it?
Yes, you're right. But that was faster than having to restart the server. :( But again, how to run samba under valgrind? I tried valgrind --tool=memcheck --trace-children=yes smbd but samba won't run except valgrind. :( On Thu, Nov 13, 2008 at 4:45 PM, Volker Lendecke [EMAIL PROTECTED]wrote: On Thu, Nov 13, 2008 at 04:38:41PM +0700, FC Mario Patty wrote: That was the whole output I sent. And now regarding to valgrind, we're running x86 here so that would not be a problem. But, I've never used that tool before. Should I stop samba first or ...? It's a production server so I'm scare to ruin something here with my stupid action. :| Well, having to restart the box every 3 minutes has destroyed the service anyway. Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 04:50:48PM +0700, FC Mario Patty wrote: Yes, you're right. But that was faster than having to restart the server. :( But again, how to run samba under valgrind? I tried valgrind --tool=memcheck --trace-children=yes smbd but samba won't run except valgrind. :( Hmm. smbd should run under the process name memcheck, although it will be a lot slower than normal. But that is the only way to figure out what is going on. Volker pgpl3bd9eboRm.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
Re: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 04:38:41PM +0700, FC Mario Patty wrote: That was the whole output I sent. And now regarding to valgrind, we're running x86 here so that would not be a problem. But, I've never used that tool before. Should I stop samba first or ...? It's a production server so I'm scare to ruin something here with my stupid action. :| Well, having to restart the box every 3 minutes has destroyed the service anyway. Volker pgpQ4KAppFuOq.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
Re: [Samba] samba authentication PAM/LDAP
On Thu, Nov 13, 2008 at 4:22 AM, Volker Lendecke [EMAIL PROTECTED]wrote: On Wed, Nov 12, 2008 at 03:41:12PM -0700, Christian McHugh wrote: On Wed, Nov 12, 2008 at 03:53:51PM -0500, Lenny Shovsky wrote: Can Samba authenticate directly ( through pam_ldap ? ) via LDAP, which only has Unix uids password hashes ? Thank you. No. You need to store the NT hashes somewhere, either in LDAP or in another passdb backend. What about the nss winbind backend? Couldn't you setup nss_ldap and pam_ldap, and still run a samba server with the nss winbind backend? Sure. But someone in the end must have the NT hashes. In the case of winbind it's a domain controller. Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba dear all Does NT hashes require even if we use kerberos for authentication?. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba memory usage - how big is it?
Thank you for your reply. Please see attachment. PS. I cannot get all the output since I cannot scroll up the console. :| Regards, On Thu, Nov 13, 2008 at 5:34 PM, Volker Lendecke [EMAIL PROTECTED]wrote: On Thu, Nov 13, 2008 at 05:27:55PM +0700, FC Mario Patty wrote: Hi, I have run valgrind and get the result. Please see attachment. Thank you. Aeh, ok, sorry. The argument list you need is: valgrind --tool=memcheck --leak-check=yes -v --num-callers=20 --trace-children=yes I had forgotten the leak-check. Volker --10663--24130 args, avg 0.87 setup instrs each (6256 bytes) --10663--0% clear the stack (53415 bytes) --10663--8130 retvals, 29% of reg-reg movs avoided (4574 bytes) ==10714== Memcheck, a memory error detector for x86-linux. ==10714== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al. ==10714== Using valgrind-2.2.0, a program supervision framework for x86-linux. ==10714== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al. ==10714== Valgrind library directory: /usr/lib/valgrind ==10714== Command line ==10714==initlog ==10714==-q ==10714==-n ==10714==/etc/init.d/smb ==10714==-s ==10714==nmbd startup ==10714==-e ==10714==1 ==10714== Startup, with flags: ==10714==--tool=memcheck ==10714==--leak-check=yes ==10714==-v ==10714==--num-callers=20 ==10714==--trace-children=yes ==10714==--exec=/sbin/initlog ==10714== Contents of /proc/version: ==10714== Linux version 2.6.9-22.ELsmp ([EMAIL PROTECTED]) (gcc version 3.4.4 20050721 (Red Hat 3.4.4-2)) #1 SMP Mon Sep 19 18:32:14 EDT 2005 ==10714== Reading syms from /sbin/initlog (0x8048000) ==10714==object doesn't have a symbol table ==10714==object doesn't have any debug info ==10714== Reading syms from /lib/ld-2.3.4.so (0x1B8E4000) ==10714==object doesn't have any debug info ==10714== Reading syms from /usr/lib/valgrind/stage2 (0xB000) ==10714== Reading syms from /lib/ld-2.3.4.so (0xB100) ==10714==object doesn't have any debug info ==10714== Reading syms from /usr/lib/valgrind/vgskin_memcheck.so (0xB7C91000) ==10714== Reading syms from /lib/tls/libc-2.3.4.so (0xB7EBA000) ==10714==object doesn't have any debug info ==10714== Reading syms from /lib/libdl-2.3.4.so (0xB7FE5000) ==10714==object doesn't have any debug info ==10714== Reading suppressions file: /usr/lib/valgrind/default.supp ==10714== REDIRECT soname:libc.so.6(__GI___errno_location) to soname:libpthread.so.0(__errno_location) ==10714== REDIRECT soname:libc.so.6(__errno_location) to soname:libpthread.so.0(__errno_location) ==10714== REDIRECT soname:libc.so.6(__GI___h_errno_location) to soname:libpthread.so.0(__h_errno_location) ==10714== REDIRECT soname:libc.so.6(__h_errno_location) to soname:libpthread.so.0(__h_errno_location) ==10714== REDIRECT soname:libc.so.6(__GI___res_state) to soname:libpthread.so.0(__res_state) ==10714== REDIRECT soname:libc.so.6(__res_state) to soname:libpthread.so.0(__res_state) ==10714== REDIRECT soname:libc.so.6(stpcpy) to *vgpreload_memcheck.so*(stpcpy) ==10714== REDIRECT soname:libc.so.6(strnlen) to *vgpreload_memcheck.so*(strnlen) ==10714== REDIRECT soname:ld-linux.so.2(stpcpy) to *vgpreload_memcheck.so*(stpcpy) ==10714== REDIRECT soname:ld-linux.so.2(strchr) to *vgpreload_memcheck.so*(strchr) ==10714== ==10714== Reading syms from /usr/lib/valgrind/vg_inject.so (0x1B8FC000) ==10714== Reading syms from /usr/lib/valgrind/vgpreload_memcheck.so (0x1B901000) ==10714== TRANSLATE: 0x1B8F5F00 redirected to 0x1B904100 ==10714== Reading syms from /lib/tls/libc-2.3.4.so (0x88A000) ==10714==object doesn't have any debug info ==10714== TRANSLATE: 0x8EDF00 redirected to 0x1B9048F8 ==10714== TRANSLATE: 0x8EBE30 redirected to 0x1B904E24 ==10714== TRANSLATE: 0x1B8E47A0 redirected to 0x52BFF040 ==10714== TRANSLATE: 0x8EDC20 redirected to 0x1B905274 ==10714== TRANSLATE: 0x8EE540 redirected to 0x1B905326 ==10714== TRANSLATE: 0x8F4240 redirected to 0x1B9046F4 ==10714== TRANSLATE: 0x8F2ED0 redirected to 0x1B9042D0 ==10714== ==10714== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 12 from 1) --10714-- --10714-- supp: 12 dl_relocate_object/dl_main ==10714== malloc/free: in use at exit: 8468 bytes in 204 blocks. ==10714== malloc/free: 321 allocs, 117 frees, 31122 bytes allocated. ==10714== ==10714== searching for pointers to 204 not-freed blocks. ==10714== checked 1408152 bytes. ==10714== ==10714== 0 bytes in 2 blocks are definitely lost in loss record 1 of 34 ==10714==at 0x1B904984: malloc (vg_replace_malloc.c:131) ==10714==by 0x921058: register_state (in /lib/tls/libc-2.3.4.so) ==10714==by 0x9213EA: create_cd_newstate (in /lib/tls/libc-2.3.4.so) ==10714==by 0x92A255: re_compile_internal (in /lib/tls/libc-2.3.4.so) ==10714==by 0x92B03B: regcomp (in /lib/tls/libc-2.3.4.so) ==10714==by 0x804966E: (within /sbin/initlog) ==10714==by 0x804A503: (within /sbin/initlog) ==10714==by
Re: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 06:05:48PM +0700, FC Mario Patty wrote: Thank you. I tried redirecting with '' first but got not much of the log. Here are the result with --log-file option. Thanx again. H. This does not show any memory leaks. Is this really smbd that is eating memory? Did you check with top? You can sort by memory usage by typing Oq in top. Volker pgpVfO6qPLvcK.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
Re: [Samba] Samba memory usage - how big is it?
Hi, I tried your suggestion and here what shown in my console. top - 18:19:19 up 3:52, 4 users, load average: 0.04, 0.28, 0.76 Tasks: 120 total, 1 running, 119 sleeping, 0 stopped, 0 zombie Cpu(s): 0.5% us, 0.7% sy, 0.0% ni, 98.8% id, 0.0% wa, 0.0% hi, 0.0% si Mem: 1034040k total, 669260k used, 364780k free,24124k buffers Swap: 2031608k total,87540k used, 1944068k free, 228996k cached PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ SWAP COMMAND 10501 root 15 0 1686m 306m 1108 S 0.0 30.4 0:58.78 1.3g 820 2577 root 16 0 31236 6064 4636 S 0.3 0.6 0:02.43 24m klnagent 2957 root 16 0 8964 5228 1292 S 0.0 0.5 0:04.99 3736 hald 11434 root 16 0 12752 5012 4004 S 0.0 0.5 0:07.11 7740 smbd 11439 root 16 0 12652 4852 3880 S 0.0 0.5 0:00.53 7800 smbd 11443 root 16 0 12712 4808 3900 S 0.0 0.5 0:00.57 7904 smbd 11432 root 16 0 12600 4800 3836 S 0.0 0.5 0:01.97 7800 smbd 11427 root 16 0 12572 4796 3956 S 0.0 0.5 0:00.70 7776 smbd 11445 root 16 0 12740 4760 3788 S 0.0 0.5 0:00.65 7980 smbd 11497 root 16 0 12568 4708 3888 S 0.0 0.5 0:00.22 7860 smbd 11425 root 16 0 12484 4688 3884 S 0.0 0.5 0:00.25 7796 smbd 11449 root 16 0 12488 4672 3844 S 0.0 0.5 0:00.45 7816 smbd 11495 root 16 0 12680 4612 3756 S 0.0 0.4 0:00.49 8068 smbd 11426 tomi.han 15 0 12476 4604 3772 S 4.0 0.4 0:45.16 7872 smbd 11435 root 16 0 12488 4592 3784 S 0.0 0.4 0:00.30 7896 smbd 11522 root 16 0 12656 4568 3796 S 0.0 0.4 0:00.03 8088 smbd 11428 root 16 0 12612 4560 3780 S 0.0 0.4 0:00.34 8052 smbd 11510 root 16 0 12612 4560 3788 S 0.0 0.4 0:00.02 8052 smbd 11487 root 16 0 12524 4532 3700 S 0.0 0.4 0:00.64 7992 smbd 11483 root 16 0 12488 4512 3764 S 0.0 0.4 0:00.04 7976 smbd 11467 root 16 0 12472 4472 3684 S 0.0 0.4 0:00.05 8000 smbd 11473 root 16 0 12492 4472 3700 S 0.0 0.4 0:00.02 8020 smbd 11464 root 16 0 12488 4448 3680 S 0.0 0.4 0:00.05 8040 smbd 11525 root 16 0 12664 3740 S 0.0 0.4 0:00.01 8220 smbd 11521 root 16 0 12664 4408 3680 S 0.0 0.4 0:00.11 8256 smbd 11517 root 16 0 12648 4400 3660 S 0.0 0.4 0:00.06 8248 smbd 11452 root 16 0 12484 4388 3668 S 0.0 0.4 0:00.09 8096 smbd 11500 root 16 0 12580 4308 3584 S 0.0 0.4 0:00.11 8272 smbd 11502 root 16 0 12604 4292 3572 S 0.0 0.4 0:00.00 8312 smbd 11457 root 16 0 12556 4288 3580 S 0.0 0.4 0:00.02 8268 smbd 11430 root 16 0 12412 4092 3396 S 0.0 0.4 0:00.00 8320 smbd 11501 root 16 0 12488 4080 3388 S 0.0 0.4 0:00.00 8408 smbd 11480 root 16 0 12464 4056 3372 S 0.0 0.4 0:00.00 8408 smbd 11469 root 16 0 12464 4052 3368 S 0.0 0.4 0:00.00 8412 smbd 3269 root 16 0 10680 4040 1928 S 0.0 0.4 0:00.04 6640 miniserv.pl 2710 root 15 0 12856 3800 2172 S 0.0 0.4 0:00.91 9056 snmpd 11417 root 16 0 12096 3628 2968 S 0.0 0.4 0:00.03 8468 smbd Thank you for your help. I have no clue at all. On Thu, Nov 13, 2008 at 6:13 PM, Volker Lendecke [EMAIL PROTECTED]wrote: On Thu, Nov 13, 2008 at 06:05:48PM +0700, FC Mario Patty wrote: Thank you. I tried redirecting with '' first but got not much of the log. Here are the result with --log-file option. Thanx again. H. This does not show any memory leaks. Is this really smbd that is eating memory? Did you check with top? You can sort by memory usage by typing Oq in top. Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 06:23:45PM +0700, FC Mario Patty wrote: Hi, I tried your suggestion and here what shown in my console. top - 18:19:19 up 3:52, 4 users, load average: 0.04, 0.28, 0.76 Tasks: 120 total, 1 running, 119 sleeping, 0 stopped, 0 zombie Cpu(s): 0.5% us, 0.7% sy, 0.0% ni, 98.8% id, 0.0% wa, 0.0% hi, 0.0% si Mem: 1034040k total, 669260k used, 364780k free,24124k buffers Swap: 2031608k total,87540k used, 1944068k free, 228996k cached PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ SWAP COMMAND 10501 root 15 0 1686m 306m 1108 S 0.0 30.4 0:58.78 1.3g 820 2577 root 16 0 31236 6064 4636 S 0.3 0.6 0:02.43 24m klnagent 2957 root 16 0 8964 5228 1292 S 0.0 0.5 0:04.99 3736 hald 11434 root 16 0 12752 5012 4004 S 0.0 0.5 0:07.11 7740 smbd Ok, the largest smbd uses 5MB memory (that 12752 is not relevant here). But -- what is is this process '820', *that* is your culprit. Volker pgpadzjLhgtrp.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
Re: [Samba] Samba memory usage - how big is it?
Well, this is my current top. You can see that smbd's use 12Mb in average. I'll check this 820 even though I'm not really sure what is it. Thank you. top - 18:57:30 up 4:30, 4 users, load average: 5.06, 3.36, 2.05 Tasks: 162 total, 6 running, 156 sleeping, 0 stopped, 0 zombie Cpu(s): 91.2% us, 8.1% sy, 0.0% ni, 0.3% id, 0.2% wa, 0.1% hi, 0.0% si Mem: 1034040k total, 449740k used, 584300k free, 920k buffers Swap: 2031608k total, 131240k used, 1900368k free,26144k cached PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 10501 root15 0 1690m 276m 828 S 0.0 27.4 1:01.48 820 12333 tarmini25 0 31128 26m 1532 R 26.8 2.6 0:00.81 cc1 12342 tarmini25 0 28592 22m 1532 R 24.8 2.3 0:00.75 cc1 2577 root16 0 31236 5408 4136 S 0.0 0.5 0:02.73 klnagent 12351 tarmini17 0 10140 5156 1520 R 4.0 0.5 0:00.12 cc1 1732 root16 0 12612 4952 4048 S 0.0 0.5 0:01.67 smbd 13725 root16 0 12760 4920 3952 S 0.0 0.5 0:06.74 smbd 16248 ton.mart 15 0 12632 4848 3888 S 0.0 0.5 0:01.28 smbd 8280 root16 0 12640 4784 3920 S 0.0 0.5 0:01.51 smbd 15274 root16 0 12452 4776 3880 S 0.0 0.5 0:03.24 smbd 26411 nobody 15 0 12400 4748 3988 S 1.7 0.5 0:01.32 smbd 7157 root16 0 12596 4720 3760 S 0.0 0.5 0:01.57 smbd 28634 root16 0 12356 4688 3860 S 0.0 0.5 0:00.83 smbd 15270 root16 0 12376 4620 3936 S 0.0 0.4 0:00.21 smbd 15046 mayan.lo 16 0 12372 4600 3816 S 0.0 0.4 0:00.80 smbd 13742 root16 0 12412 4588 3904 S 0.0 0.4 0:00.15 smbd 4737 neru.saf 16 0 12444 4576 3868 S 0.0 0.4 0:00.86 smbd 13733 takeshi. 16 0 12404 4560 3892 S 0.0 0.4 0:00.92 smbd 13722 root16 0 12372 4476 3824 S 0.0 0.4 0:00.17 smbd 13735 root16 0 12396 4412 3748 S 0.0 0.4 0:00.05 smbd 15859 root16 0 12276 4404 3700 S 0.0 0.4 0:00.06 smbd 5099 root 16 0 12344 4400 3756 S 0.0 0.4 0:00.15 smbd 6849 root 16 0 12384 4400 3752 S 0.0 0.4 0:00.05 smbd 15053 petrus.t 15 0 12236 4384 3732 S 0.0 0.4 0:00.74 smbd 15278 root16 0 12276 4384 3780 S 0.0 0.4 0:00.10 smbd 4705 petrus.t 15 0 12324 4348 3672 S 0.0 0.4 0:00.19 smbd 11060 root16 0 12368 4344 3716 S 0.0 0.4 0:00.06 smbd 13720 root16 0 12356 4344 3680 S 0.0 0.4 0:00.02 smbd 18499 root16 0 12308 4316 3668 S 0.0 0.4 0:00.10 smbd 13753 samsari 16 0 12428 4304 3636 S 0.0 0.4 0:00.03 smbd 29261 son.murt 16 0 12352 4300 3656 S 0.0 0.4 0:00.15 smbd 9134 security 16 0 12440 4292 3636 S 0.0 0.4 0:00.04 smbd 22912 root16 0 12320 4284 3648 S 0.0 0.4 0:00.09 smbd 13730 root16 0 12372 4280 3584 S 0.0 0.4 0:00.03 smbd 12360 tarmini25 0 8424 4260 1472 R 3.0 0.4 0:00.09 cc1 8009 root 16 0 12404 4248 3548 S 0.0 0.4 0:00.06 smbd 2957 root 16 0 8964 4240 1272 S 0.0 0.4 0:05.59 hald On Thu, Nov 13, 2008 at 6:31 PM, Volker Lendecke [EMAIL PROTECTED]wrote: On Thu, Nov 13, 2008 at 06:23:45PM +0700, FC Mario Patty wrote: Hi, Ok, the largest smbd uses 5MB memory (that 12752 is not relevant here). But -- what is is this process '820', *that* is your culprit. Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba memory usage - how big is it?
PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 10501 root15 0 1690m 276m 828 S 0.0 27.4 1:01.48 820 12333 tarmini25 0 31128 26m 1532 R 26.8 2.6 0:00.81 cc1 12342 tarmini25 0 28592 22m 1532 R 24.8 2.3 0:00.75 cc1 2577 root16 0 31236 5408 4136 S 0.0 0.5 0:02.73 klnagent 12351 tarmini17 0 10140 5156 1520 R 4.0 0.5 0:00.12 cc1 1732 root16 0 12612 4952 4048 S 0.0 0.5 0:01.67 smbd 13725 root16 0 12760 4920 3952 S 0.0 0.5 0:06.74 smbd 820 use 1690m (mega) in virtual allocation and 276m in residual or resident memory smbd use 12612 ko in virtual allocation and 4952 ko in residual or resident memory extract of man top : o: VIRT -- Virtual Image (kb) The total amount of virtual memory used by the task. It includes all code, data and shared libraries plus pages that have been swapped out. (Note: you can define the STATSIZE=1 environment vari- able and the VIRT will be calculated from the /proc/#/state VmSize field.) VIRT = SWAP + RES. p: SWAP -- Swapped size (kb) The swapped out portion of a taskâs total virtual memory image. q: RES -- Resident size (kb) The non-swapped physical memory a task has used. RES = CODE + DATA. --- Stéphane PURNELLE [EMAIL PROTECTED] Service Informatique Corman S.A. Tel : 00 32 087/342467 [EMAIL PROTECTED] a écrit sur 13/11/2008 13:05:04 : Well, this is my current top. You can see that smbd's use 12Mb in average. I'll check this 820 even though I'm not really sure what is it. Thank you. top - 18:57:30 up 4:30, 4 users, load average: 5.06, 3.36, 2.05 Tasks: 162 total, 6 running, 156 sleeping, 0 stopped, 0 zombie Cpu(s): 91.2% us, 8.1% sy, 0.0% ni, 0.3% id, 0.2% wa, 0.1% hi, 0.0% si Mem: 1034040k total, 449740k used, 584300k free, 920k buffers Swap: 2031608k total, 131240k used, 1900368k free,26144k cached PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 10501 root15 0 1690m 276m 828 S 0.0 27.4 1:01.48 820 12333 tarmini25 0 31128 26m 1532 R 26.8 2.6 0:00.81 cc1 12342 tarmini25 0 28592 22m 1532 R 24.8 2.3 0:00.75 cc1 2577 root16 0 31236 5408 4136 S 0.0 0.5 0:02.73 klnagent 12351 tarmini17 0 10140 5156 1520 R 4.0 0.5 0:00.12 cc1 1732 root16 0 12612 4952 4048 S 0.0 0.5 0:01.67 smbd 13725 root16 0 12760 4920 3952 S 0.0 0.5 0:06.74 smbd 16248 ton.mart 15 0 12632 4848 3888 S 0.0 0.5 0:01.28 smbd 8280 root16 0 12640 4784 3920 S 0.0 0.5 0:01.51 smbd 15274 root16 0 12452 4776 3880 S 0.0 0.5 0:03.24 smbd 26411 nobody 15 0 12400 4748 3988 S 1.7 0.5 0:01.32 smbd 7157 root16 0 12596 4720 3760 S 0.0 0.5 0:01.57 smbd 28634 root16 0 12356 4688 3860 S 0.0 0.5 0:00.83 smbd 15270 root16 0 12376 4620 3936 S 0.0 0.4 0:00.21 smbd 15046 mayan.lo 16 0 12372 4600 3816 S 0.0 0.4 0:00.80 smbd 13742 root16 0 12412 4588 3904 S 0.0 0.4 0:00.15 smbd 4737 neru.saf 16 0 12444 4576 3868 S 0.0 0.4 0:00.86 smbd 13733 takeshi. 16 0 12404 4560 3892 S 0.0 0.4 0:00.92 smbd 13722 root16 0 12372 4476 3824 S 0.0 0.4 0:00.17 smbd 13735 root16 0 12396 4412 3748 S 0.0 0.4 0:00.05 smbd 15859 root16 0 12276 4404 3700 S 0.0 0.4 0:00.06 smbd 5099 root 16 0 12344 4400 3756 S 0.0 0.4 0:00.15 smbd 6849 root 16 0 12384 4400 3752 S 0.0 0.4 0:00.05 smbd 15053 petrus.t 15 0 12236 4384 3732 S 0.0 0.4 0:00.74 smbd 15278 root16 0 12276 4384 3780 S 0.0 0.4 0:00.10 smbd 4705 petrus.t 15 0 12324 4348 3672 S 0.0 0.4 0:00.19 smbd 11060 root16 0 12368 4344 3716 S 0.0 0.4 0:00.06 smbd 13720 root16 0 12356 4344 3680 S 0.0 0.4 0:00.02 smbd 18499 root16 0 12308 4316 3668 S 0.0 0.4 0:00.10 smbd 13753 samsari 16 0 12428 4304 3636 S 0.0 0.4 0:00.03 smbd 29261 son.murt 16 0 12352 4300 3656 S 0.0 0.4 0:00.15 smbd 9134 security 16 0 12440 4292 3636 S 0.0 0.4 0:00.04 smbd 22912 root16 0 12320 4284 3648 S 0.0 0.4 0:00.09 smbd 13730 root16 0 12372 4280 3584 S 0.0 0.4 0:00.03 smbd 12360 tarmini25 0 8424 4260 1472 R 3.0 0.4 0:00.09 cc1 8009 root 16 0 12404 4248 3548 S 0.0 0.4 0:00.06 smbd 2957 root 16 0 8964 4240 1272 S 0.0 0.4 0:05.59 hald On Thu, Nov 13, 2008 at 6:31 PM, Volker Lendecke [EMAIL PROTECTED]wrote: On Thu, Nov 13, 2008 at 06:23:45PM +0700, FC Mario Patty wrote: Hi, Ok, the largest smbd uses 5MB memory (that 12752 is not relevant here). But -- what is is
Re: [Samba] Samba memory usage - how big is it?
How large is large for a smbd process? Does it just use what is available or what? My fileserver at work (32 core sparc T2, with 32GB RAM) currently has 117 smbd processes running each with 29M total, 24M resident. It looks like my servers processes are more than twice the size as these ones for some reason. Is it just architecture difference, or does samba allocate more space to a process if it has room for it? On Nov 13, 2008, at 1:14 PM, Stéphane PURNELLE wrote: PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 10501 root15 0 1690m 276m 828 S 0.0 27.4 1:01.48 820 12333 tarmini25 0 31128 26m 1532 R 26.8 2.6 0:00.81 cc1 12342 tarmini25 0 28592 22m 1532 R 24.8 2.3 0:00.75 cc1 2577 root16 0 31236 5408 4136 S 0.0 0.5 0:02.73 klnagent 12351 tarmini17 0 10140 5156 1520 R 4.0 0.5 0:00.12 cc1 1732 root16 0 12612 4952 4048 S 0.0 0.5 0:01.67 smbd 13725 root16 0 12760 4920 3952 S 0.0 0.5 0:06.74 smbd 820 use 1690m (mega) in virtual allocation and 276m in residual or resident memory smbd use 12612 ko in virtual allocation and 4952 ko in residual or resident memory extract of man top : o: VIRT -- Virtual Image (kb) The total amount of virtual memory used by the task. It includes all code, data and shared libraries plus pages that have been swapped out. (Note: you can define the STATSIZE=1 environment vari- able and the VIRT will be calculated from the /proc/#/state VmSize field.) VIRT = SWAP + RES. p: SWAP -- Swapped size (kb) The swapped out portion of a taskâs total virtual memory image. q: RES -- Resident size (kb) The non-swapped physical memory a task has used. RES = CODE + DATA. --- Stéphane PURNELLE [EMAIL PROTECTED] Service Informatique Corman S.A. Tel : 00 32 087/342467 [EMAIL PROTECTED] a écrit sur 13/11/2008 13:05:04 : Well, this is my current top. You can see that smbd's use 12Mb in average. I'll check this 820 even though I'm not really sure what is it. Thank you. top - 18:57:30 up 4:30, 4 users, load average: 5.06, 3.36, 2.05 Tasks: 162 total, 6 running, 156 sleeping, 0 stopped, 0 zombie Cpu(s): 91.2% us, 8.1% sy, 0.0% ni, 0.3% id, 0.2% wa, 0.1% hi, 0.0% si Mem: 1034040k total, 449740k used, 584300k free, 920k buffers Swap: 2031608k total, 131240k used, 1900368k free,26144k cached PID USER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 10501 root15 0 1690m 276m 828 S 0.0 27.4 1:01.48 820 12333 tarmini25 0 31128 26m 1532 R 26.8 2.6 0:00.81 cc1 12342 tarmini25 0 28592 22m 1532 R 24.8 2.3 0:00.75 cc1 2577 root16 0 31236 5408 4136 S 0.0 0.5 0:02.73 klnagent 12351 tarmini17 0 10140 5156 1520 R 4.0 0.5 0:00.12 cc1 1732 root16 0 12612 4952 4048 S 0.0 0.5 0:01.67 smbd 13725 root16 0 12760 4920 3952 S 0.0 0.5 0:06.74 smbd 16248 ton.mart 15 0 12632 4848 3888 S 0.0 0.5 0:01.28 smbd 8280 root16 0 12640 4784 3920 S 0.0 0.5 0:01.51 smbd 15274 root16 0 12452 4776 3880 S 0.0 0.5 0:03.24 smbd 26411 nobody 15 0 12400 4748 3988 S 1.7 0.5 0:01.32 smbd 7157 root16 0 12596 4720 3760 S 0.0 0.5 0:01.57 smbd 28634 root16 0 12356 4688 3860 S 0.0 0.5 0:00.83 smbd 15270 root16 0 12376 4620 3936 S 0.0 0.4 0:00.21 smbd 15046 mayan.lo 16 0 12372 4600 3816 S 0.0 0.4 0:00.80 smbd 13742 root16 0 12412 4588 3904 S 0.0 0.4 0:00.15 smbd 4737 neru.saf 16 0 12444 4576 3868 S 0.0 0.4 0:00.86 smbd 13733 takeshi. 16 0 12404 4560 3892 S 0.0 0.4 0:00.92 smbd 13722 root16 0 12372 4476 3824 S 0.0 0.4 0:00.17 smbd 13735 root16 0 12396 4412 3748 S 0.0 0.4 0:00.05 smbd 15859 root16 0 12276 4404 3700 S 0.0 0.4 0:00.06 smbd 5099 root 16 0 12344 4400 3756 S 0.0 0.4 0:00.15 smbd 6849 root 16 0 12384 4400 3752 S 0.0 0.4 0:00.05 smbd 15053 petrus.t 15 0 12236 4384 3732 S 0.0 0.4 0:00.74 smbd 15278 root16 0 12276 4384 3780 S 0.0 0.4 0:00.10 smbd 4705 petrus.t 15 0 12324 4348 3672 S 0.0 0.4 0:00.19 smbd 11060 root16 0 12368 4344 3716 S 0.0 0.4 0:00.06 smbd 13720 root16 0 12356 4344 3680 S 0.0 0.4 0:00.02 smbd 18499 root16 0 12308 4316 3668 S 0.0 0.4 0:00.10 smbd 13753 samsari 16 0 12428 4304 3636 S 0.0 0.4 0:00.03 smbd 29261 son.murt 16 0 12352 4300 3656 S 0.0 0.4 0:00.15 smbd 9134 security 16 0 12440 4292 3636 S 0.0 0.4 0:00.04 smbd 22912 root16 0 12320 4284 3648 S 0.0 0.4 0:00.09 smbd 13730 root16 0 12372 4280 3584 S 0.0 0.4 0:00.03 smbd 12360 tarmini25 0 8424 4260
Re: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 01:34:28PM +0100, Mike Gallamore wrote: How large is large for a smbd process? Does it just use what is available or what? My fileserver at work (32 core sparc T2, with 32GB RAM) currently has 117 smbd processes running each with 29M total, 24M resident. It looks like my servers processes are more than twice the size as these ones for some reason. Is it just architecture difference, or does samba allocate more space to a process if it has room for it? Good question. The size of smbd very much depends on what the client is actually doing. For example, listing users from a DC makes us cache the user list under certain circumstances. On Linux those 5MB RES are what I would expect. With Samba 3.2 I would expect less, we have done a lot of work to reduce the memory footprint for 3.2. 24MB resident is certainly very much, although reading the output of top sometimes is more of black art than anything else. Under Linux, /proc/pid/smaps is VERY helpful, not sure if Solaris provides a similar feature. Volker pgpuDsa7zTVcz.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
Re: [Samba] smaba ldap
Ok, check it: - Configuration of nss_ldap ( /etc/ldap.conf) - run the command 'getent passwd' to view all users ( stored on the unix and ldap ) - run the command 'pdbedit -L' to view all users stored on the samba database - Look for errors on the Samba logs, (/var/log/samba/log.smbd and /var/log/samba/log.nmbd) Reggards, -- iarly Selbir ( Ski0s ) On Thu, Nov 13, 2008 at 8:49 AM, Jean Frontin [EMAIL PROTECTED] wrote: Hello, I don't want to use smbldap-tool script. I only should want that samba examines the ldap server to find if username and password exist to authenticate this user. I hope I am clear so you understand what I need !!! Iarly Selbir a écrit : To manager users on the Samba/LDAP use the smbldap-tools scripts. read more on the https://gna.org/projects/smbldap-tools/ Reggards, -- iarly Selbir ( Ski0s ) -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Vista - Profile - Local
Hi Alex, hi Charles, hi others, Thank you for your answers. == A little aside == (I want to say that) if Microsoft provided people with: - a great documentation about its profile concept - and also, about its registry (name, use and possible values of the various keys) it would prevent me (and others) from modifying the registry in a hazardous way. Having said that, learn that my laptop being new, I can reinstall it if I happen to do something very wrong with my registry. For example, the key State in every profile: it can have various values meaning specific things (I guess) but I didn't manage to find the documentation for it The only little bit of information I found is on that web page: http://windowsitpro.com/article/articleid/94677/what-is-the-meaning-of-the-state-value-name-in-a-users-registry-profile.html And it is totally insufficient. I can do nothing with it. = Just to try to agree on what I mean when I talk about (Windows) profiles = To me, a (Windows) profile is a set of specific settings concerning both: - the various executables installed on the machine (for example: having a google toolbar in your web browser, having certain settings for your email client, ...) - and also the operating system itself (for example: having a particular background image on your desktop, having certain settings for your folders display, having certain environment variables set to particular values, ...). Ok? Do we agree on that approximative definition? = Just to try to be straight about my problem... = As I said, I alternately log on my computer running XP as: - HOSTNAME\lmhelp - or as DOMAINNAME_1\lmhelp - or even as DOMAINNAME_2\lmhelp (not at the same time). With XP, in the three cases, I do manage to work with the same settings (the same profile as described above). == Charles' links == Thank you, I read both of them. First link: --- (XP Local User Profiles in a domain environment) It is not about Vista. And also, it doesn't solve the problem I evoke. I just noticed, pardon me, a kind of approximation in what is being said: Domain profile is like this 'username.domainname' whereas local profile is known only by the user name. That is not generally true. When I logged on as DOMAINNAME_1\lmhelp, a specific directory C:\Users\lmhelp.DOMAINNAME_1 was created. But, modulo the registry change I did (cf. the end of my last post), when I go to System - Advanced - User Profiles, the profile DOMAINNAME_1\lmhelp is said to be local. Apparently domain profile and local profile are not antinomic notions, contrary to what is said in the link. Second link --- (Cached domain logon information) This is interesting but is not exactly the problem I have because when my laptop is not part of the domain DOMAINNAME_1, I do not try to log on as DOMAINNAME_1\lmhelp. I log on to my local machine as HOSTNAME\lmhelp. === To Alex === [...] the two domains you're logging on to trust each other [...] I'll try to understand what it means. Whatever you've managed to make XP do, I'm pretty sure it isn't a Microsoft-supported configuration - unless someone else here knows better? Possibly, but with XP I've never had any problems with that. On the contrary, it completely sastified me (apart from the fact I whish I didn't had to use Windows operating systems...). Again, thanks for your contributions and for the time you dedicate to my problem. -- Lmhelp -- View this message in context: http://www.nabble.com/Vista---Profile---Local-tp20416486p20478301.html Sent from the Samba - General mailing list archive at Nabble.com. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Vista - Profile - Local
lmhelp wrote: Has anyone ever got the same problem as I: - having a LAPTOP running VISTA, - being the ONLY user of that laptop, - having to log SOMETIMES on a given Samba domain, SOMETIMES on another, - wanting to use always the SAME PROFILE whichever the login may be, - wanting that profile to be LOCAL. At your own risk: 1.) Do not specify roaming profile path on domain controllers for domain1\user A and domain2\user B (that way obviously they will have no roaming profile, only 'cached' profiles on your Vista System C:\Users\A and C:\Users\B (login and logout so they are created) 2.) On Vista system, create new local user C 3.) Login as user C; make necessary adjustments and logout. You got now new profile in C:\Users\C. Login again as user C (make sure that C is admin at this point). 4.) change permissions on C:\Users\C so both so user A and user B have full control 5.) change permissions on C:\users\A and C:\Users\B to give user C full control 6.) open regedit32 7.) select HKEY_Users window and Choose Load Hive 8.) locate and select NTUSER.DAT file of user A (C:\Users\A\NTUSER.DAT) and give it a name e.g. A 9.) now - you can change the locations of profile folders of the user A, that is: A\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders and A\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders -- change all (or only specific folders if you wish) to point to the profile directories of user C 10.) Unload the hive and repeat the process for the user B 11.) If you are concerned about security remove admin privileges for user C Now all three users A; B and C are using the same profile directories of your choice. -laco. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba memory usage - how big is it?
Hi, I have run valgrind and get the result. Please see attachment. Thank you. Regards, [EMAIL PROTECTED] src]# valgrind --tool=memcheck --trace-children=yes /etc/init.d/smb start ==10131== Memcheck, a memory error detector for x86-linux. ==10131== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al. ==10131== Using valgrind-2.2.0, a program supervision framework for x86-linux . ==10131== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al. ==10131== For more details, rerun with: -v ==10131== ==10135== Memcheck, a memory error detector for x86-linux. ==10135== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al. ==10135== Using valgrind-2.2.0, a program supervision framework for x86-linux . ==10135== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al. ==10135== For more details, rerun with: -v ==10135== ==10135== ==10135== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 12 from 1) ==10135== malloc/free: in use at exit: 0 bytes in 0 blocks. ==10135== malloc/free: 0 allocs, 0 frees, 0 bytes allocated. ==10135== For a detailed leak analysis, rerun with: --leak-check=yes ==10135== For counts of detected errors, rerun with: -v ==10133== ==10133== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 14 from 1) ==10133== malloc/free: in use at exit: 27167 bytes in 558 blocks. ==10133== malloc/free: 1033 allocs, 475 frees, 40803 bytes allocated. ==10133== For a detailed leak analysis, rerun with: --leak-check=yes ==10133== For counts of detected errors, rerun with: -v ==10144== Memcheck, a memory error detector for x86-linux. ==10144== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al. ==10144== Using valgrind-2.2.0, a program supervision framework for x86-linux . ==10144== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al. ==10142== Memcheck, a memory error detector for x86-linux. ==10142== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al. ==10142== Using valgrind-2.2.0, a program supervision framework for x86-linux . ==10142== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al. ==10146== Memcheck, a memory error detector for x86-linux. ==10146== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al. ==10146== Using valgrind-2.2.0, a program supervision framework for x86-linux . ==10146== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al. ==10142== For more details, rerun with: -v ==10142== ==10144== For more details, rerun with: -v ==10144== ==10146== For more details, rerun with: -v ==10146== ==10142== ==10142== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 12 from 1) ==10142== malloc/free: in use at exit: 18722 bytes in 129 blocks. ==10142== malloc/free: 236 allocs, 107 frees, 23833 bytes allocated. ==10142== For a detailed leak analysis, rerun with: --leak-check=yes ==10142== For counts of detected errors, rerun with: -v ==10146== ==10146== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 14 from 1) ==10146== malloc/free: in use at exit: 4943 bytes in 65 blocks. ==10146== malloc/free: 124 allocs, 59 frees, 12827 bytes allocated. ==10146== For a detailed leak analysis, rerun with: --leak-check=yes ==10146== For counts of detected errors, rerun with: -v ==10144== ==10144== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 13 from 1) ==10144== malloc/free: in use at exit: 45431 bytes in 90 blocks. ==10144== malloc/free: 597 allocs, 507 frees, 64643 bytes allocated. ==10144== For a detailed leak analysis, rerun with: --leak-check=yes ==10144== For counts of detected errors, rerun with: -v ==10138== ==10138== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 14 from 1) ==10138== malloc/free: in use at exit: 54769 bytes in 4196 blocks. ==10138== malloc/free: 10117 allocs, 5921 frees, 194535 bytes allocated. ==10138== For a detailed leak analysis, rerun with: --leak-check=yes ==10138== For counts of detected errors, rerun with: -v Starting SMB services: ==10152== Memcheck, a memory error detector for x86-li nux. ==10152== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al. ==10152== Using valgrind-2.2.0, a program supervision framework for x86-linux . ==10152== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al. ==10152== For more details, rerun with: -v ==10152== ==10152== ==10152== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 12 from 1) ==10152== malloc/free: in use at exit: 18228 bytes in 244 blocks. ==10152== malloc/free: 699 allocs, 455 frees, 257694 bytes allocated. ==10152== For a detailed leak analysis, rerun with: --leak-check=yes ==10152== For counts of detected errors, rerun with: -v
Re: [Samba] Samba memory usage - how big is it?
Similar on Solaris, they have a built in utility called pmap: pmap pid gives output just about total virtual memory, ex: FF3F6000 8K rwx-- /lib/ld.so.1 FF3FA000 8K rwxs-[ anon ] FFBE 128K rwx--[ stack ] total 29632K pmap -x pid gives extended info ex: FF3F6000 8 8 8 - rwx-- ld.so.1 FF3FA000 8 8 - - rwxs-[ anon ] FFBE 128 128 64 - rwx--[ stack ] --- --- --- --- total Kb 29632 260881584 - We are currently running Samba 3.2.4 on our system. I can't remember what our memory footprint was before we upgraded from 3.0.24. That said, with the amount of RAM on our system we don't get more than 70% RAM use at any time, even while driving 2 tape robots and 30 filesystem/raid arrays from the box. On Nov 13, 2008, at 1:44 PM, Volker Lendecke wrote: On Thu, Nov 13, 2008 at 01:34:28PM +0100, Mike Gallamore wrote: How large is large for a smbd process? Does it just use what is available or what? My fileserver at work (32 core sparc T2, with 32GB RAM) currently has 117 smbd processes running each with 29M total, 24M resident. It looks like my servers processes are more than twice the size as these ones for some reason. Is it just architecture difference, or does samba allocate more space to a process if it has room for it? Good question. The size of smbd very much depends on what the client is actually doing. For example, listing users from a DC makes us cache the user list under certain circumstances. On Linux those 5MB RES are what I would expect. With Samba 3.2 I would expect less, we have done a lot of work to reduce the memory footprint for 3.2. 24MB resident is certainly very much, although reading the output of top sometimes is more of black art than anything else. Under Linux, /proc/pid/smaps is VERY helpful, not sure if Solaris provides a similar feature. Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba memory usage - how big is it?
Hi Volker, all! Yesterday I reported a memleak in the smbd on the technical mailing list with an attached pool-usage dump. I still do not fully understand the talloc system nor the memcache functions, but as we currently have your attention on this topic :-) samba-3.2.4 - passdb/pdb_interface.c - pdb_getsampwnam() Quick shot from the hip: If the memcache_add_talloc () reuses the existing record - the previous record (which is a pointer to talloced() data) is not being destroyed. Nonsense, or leak? bye, Martin P.S. There are several situations in the code, where the allocated samu structs are not destroyed in case of an error. But I'm still after it. Volker Lendecke schrieb: On Thu, Nov 13, 2008 at 06:05:48PM +0700, FC Mario Patty wrote: Thank you. I tried redirecting with '' first but got not much of the log. Here are the result with --log-file option. Thanx again. H. This does not show any memory leaks. Is this really smbd that is eating memory? Did you check with top? You can sort by memory usage by typing Oq in top. Volker -- Martin Zielinski[EMAIL PROTECTED] Softwareentwicklung T +49 (0)521 94226 76 SEH Computertechnik GmbHwww.seh.de -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 05:27:55PM +0700, FC Mario Patty wrote: Hi, I have run valgrind and get the result. Please see attachment. Thank you. Aeh, ok, sorry. The argument list you need is: valgrind --tool=memcheck --leak-check=yes -v --num-callers=20 --trace-children=yes I had forgotten the leak-check. Volker pgp5X2X3lU347.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
Re: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 02:29:38PM +0100, Mike Gallamore wrote: Similar on Solaris, they have a built in utility called pmap: pmap pid gives output just about total virtual memory, ex: FF3F6000 8K rwx-- /lib/ld.so.1 FF3FA000 8K rwxs-[ anon ] FFBE 128K rwx--[ stack ] total 29632K pmap -x pid gives extended info ex: FF3F6000 8 8 8 - rwx-- ld.so.1 FF3FA000 8 8 - - rwxs-[ anon ] FFBE 128 128 64 - rwx--[ stack ] --- --- --- --- total Kb 29632 260881584 - We are currently running Samba 3.2.4 on our system. I can't remember what our memory footprint was before we upgraded from 3.0.24. That said, with the amount of RAM on our system we don't get more than 70% RAM use at any time, even while driving 2 tape robots and 30 filesystem/raid arrays from the box. Well, 32GB for just 117 users is just way over the top. Samba alone should be able to work with a LOT less memory. How does the Solaris pmap calculate the 29632k? Adding up the numbers above that I end up at 144k which is probably too little. Volker pgpGv5US58csb.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
Re: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 05:47:46PM +0700, FC Mario Patty wrote: Thank you for your reply. Please see attachment. PS. I cannot get all the output since I cannot scroll up the console. :| Either redirect the output via or use --log-file= Volker pgpcDwgLwIqBB.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
Fwd: [Samba] Samba memory usage - how big is it?
Sorry forgot to include the list. From: Mike Gallamore [EMAIL PROTECTED] Date: November 13, 2008 3:49:21 PM GMT+01:00 To: [EMAIL PROTECTED] Subject: Re: [Samba] Samba memory usage - how big is it? I didn't include the whole output which would be about a page. Yeah it is just a total of the columns. There is commands for excluding shared memory regions, anonymously allocated parts etc. Yeah, probably is overkill for samba. We usually have about 16GB of RAM in use between samba and the filesystem stuff. We are using SAM QFS to handle hierarchal storage. There is a fair bit of non-sharing load on the system, typically we have 5 LTO 4 tape drives running either restoring or archiving data, and 3-10 processes scanning the arrays for changes that need archiving which use ~140MB each. At the moment showing a load of 28.5 on the system, busy busy :) On Nov 13, 2008, at 3:38 PM, Volker Lendecke wrote: On Thu, Nov 13, 2008 at 02:29:38PM +0100, Mike Gallamore wrote: Similar on Solaris, they have a built in utility called pmap: pmap pid gives output just about total virtual memory, ex: FF3F6000 8K rwx-- /lib/ld.so.1 FF3FA000 8K rwxs-[ anon ] FFBE 128K rwx--[ stack ] total 29632K pmap -x pid gives extended info ex: FF3F6000 8 8 8 - rwx-- ld.so.1 FF3FA000 8 8 - - rwxs-[ anon ] FFBE 128 128 64 - rwx--[ stack ] --- --- --- --- total Kb 29632 260881584 - We are currently running Samba 3.2.4 on our system. I can't remember what our memory footprint was before we upgraded from 3.0.24. That said, with the amount of RAM on our system we don't get more than 70% RAM use at any time, even while driving 2 tape robots and 30 filesystem/raid arrays from the box. Well, 32GB for just 117 users is just way over the top. Samba alone should be able to work with a LOT less memory. How does the Solaris pmap calculate the 29632k? Adding up the numbers above that I end up at 144k which is probably too little. Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 02:24:46PM +0100, Martin Zielinski wrote: Hi Volker, all! Yesterday I reported a memleak in the smbd on the technical mailing list with an attached pool-usage dump. I still do not fully understand the talloc system nor the memcache functions, but as we currently have your attention on this topic :-) samba-3.2.4 - passdb/pdb_interface.c - pdb_getsampwnam() Quick shot from the hip: If the memcache_add_talloc () reuses the existing record - the previous record (which is a pointer to talloced() data) is not being destroyed. Nonsense, or leak? Looks like a leak. I have to revisit that code, in particular as it has changed significantly in master. P.S. There are several situations in the code, where the allocated samu structs are not destroyed in case of an error. But I'm still after it. If they are allocated from a temporary talloc context, the idea at least is that freeing that talloc context also frees the samu structure. If that is not the case, we have a bug in talloc. Volker pgpA5PHlu04BX.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
Re: Fwd: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 03:49:51PM +0100, Mike Gallamore wrote: Sorry forgot to include the list. From: Mike Gallamore [EMAIL PROTECTED] Date: November 13, 2008 3:49:21 PM GMT+01:00 To: [EMAIL PROTECTED] Subject: Re: [Samba] Samba memory usage - how big is it? I didn't include the whole output which would be about a page. Yeah it is just a total of the columns. There is commands for excluding shared memory regions, anonymously allocated parts etc. If the 29632k include shared memory regions, then you can not really count them for each and every smbd. That's the whole point of sharing, at least in my understanding: Memory shared between processes should only use pysical resources once. So saying that every smbd uses 29MB real memory overstates it a bit I think. Volker pgp8WZE0NtblY.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
Re: [Samba] Samba memory usage - how big is it?
True. I'm sure there must be a way to figure it out but according to the documentation the amount reported as resident includes shared regions. Strange though the man page for pmap states: The amount of incremental memory used by each additional instance of a process can be estimated by using the resident and anonymous memory counts of each mapping. I'm not sure how that can be the case if the RSS value includes the shared space. As with all things in *nix in general and Solaris in particular I'm sure there is a way to do it, but it's not going to be obvious or necessarily easy. On Nov 13, 2008, at 4:05 PM, Volker Lendecke wrote: On Thu, Nov 13, 2008 at 03:49:51PM +0100, Mike Gallamore wrote: Sorry forgot to include the list. From: Mike Gallamore [EMAIL PROTECTED] Date: November 13, 2008 3:49:21 PM GMT+01:00 To: [EMAIL PROTECTED] Subject: Re: [Samba] Samba memory usage - how big is it? I didn't include the whole output which would be about a page. Yeah it is just a total of the columns. There is commands for excluding shared memory regions, anonymously allocated parts etc. If the 29632k include shared memory regions, then you can not really count them for each and every smbd. That's the whole point of sharing, at least in my understanding: Memory shared between processes should only use pysical resources once. So saying that every smbd uses 29MB real memory overstates it a bit I think. Volker -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] shared spaces
Hello, I created a shared space and here is the definition in smb.conf comment = shared space path = /local/sharedspace public = no writable = yes printable = no valid users = x, y, z, w write list = x, y, z, w create mode = 0775 Everybody can create folders or get/put files on the top level. Everyone can read in folders created by an other. It appears that folders created by a client belongs to this client on the server and thus writing in this folder is forbidden for others. Does a parameter exist to permit to write files in folders created by an other. Regards -- Jean Frontin System team I R I T Université Paul-Sabatier 118, rte de Narbonne 31062 Toulouse cedex 9 France tel (33)(0)5 61 55 63 03 mail [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Bizarre - How did windows user setfacl for a file??
On Wed, Nov 12, 2008 at 01:46:45AM -0600, David C. Rankin wrote: In 8 years, since 2.02 (I think), I have never seen this behavior out of samba. I run a stand-alone server with WinXP clients. Somehow a legal assistant created (not intentionally mind you) files and directories with ACL attributes set: -rwxrwx---+ 1 cyndy ochiltree 21504 2008-10-28 16:48 AUTHORIZATION - employment.doc* -rwxrwx---+ 1 cyndy ochiltree 12804 2008-10-28 16:48 AUTHORIZATION - employment.pdf* drwxrwx---+ 2 cyndy ochiltree 4096 2008-10-29 16:56 Gregg, Joy/ -rwxrwx---+ 1 cyndy ochiltree 44544 2008-10-28 16:32 POA - BG Contingency New.doc* -rwxrwx---+ 1 cyndy ochiltree 48309 2008-10-28 16:31 POA - BG Contingency New.pdf* drwxrwx---+ 2 cyndy ochiltree 4096 2008-10-29 16:51 Roper, Buddy/ What in the heck? I found the setfacl --remove-all command that gets rid of this, but I'm still left wondering WTF happened in the first place? Moreover, how do I configure samba to make sure this never happens again? My config is: [...] I'm not sure for exactly how long, but Samba has supported extended ACLs for quite some time (if the underlying OS/filesystem has such support). To ensure that it is not there, you can either a) build samba without acl support; or b) disable extended ACLs on the filesystem. As for why it changed for you, I notice that the default configuration is now (for Samba-3.2.4, at least) --with-acl-support Include ACL support (default=auto) ... which I believe means that it will build in ACL support if the system has it. Perhaps this has changed recently? -- greg byshenk - [EMAIL PROTECTED] - Leiden, NL -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] how to check if device mode is set on a queue
Hi, We're running samba-3.0.28a w/ cups-1.3.7 on debian etch to serve point and print to windows clients. http://us6.samba.org/samba/docs/man/Samba-HOWTO-Collection/classicalprinting.html#prt-modeset How do I check if a queue had the device mode set or not? thanks, Ryan -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] shared spaces
Hello Jean, Original-Nachricht I created a shared space and here is the definition in smb.conf comment = shared space path = /local/sharedspace public = no writable = yes printable = no valid users = x, y, z, w write list = x, y, z, w create mode = 0775 Everybody can create folders or get/put files on the top level. Everyone can read in folders created by an other. It appears that folders created by a client belongs to this client on the server and thus writing in this folder is forbidden for others. Does a parameter exist to permit to write files in folders created by an other. As far as I understood, samba just reuses the acess rights given by the Windows-Client when the directory is created. However, these access rights are logically and-ed with the parameter directory mask, which defaults to 755 - so: only the owner has write access. directory mask = 775 should solve your problem. More stronger is force directory mode, which simply ignores the access rights proposed by the windows client. HTH, Axel -- Sensationsangebot nur bis 30.11: GMX FreeDSL - Telefonanschluss + DSL für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba join a domain?
We have a Windows file server that I want to connect to with my Fedora 9 box. When I try and mount that via samba I get: mount error 13 = Permission denied I know the username and password are correct. I'm pretty sure you have to join the domain before you can mount/authenticate against it. Is it possible to do that with samba so I can mount this file system? -- Scott Baker - Canby Telcom RHCE - System Administrator - 503.266.8253 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Vista - Profile - Local
On 11/13/2008 5:36 AM, lmhelp wrote: Hi Alex, hi Charles, hi others, Thank you for your answers. It would be much easier to continue this discussion if you would follow the standard/accepted quoting methods... For example, the key State in every profile: it can have various values meaning specific things (I guess) but I didn't manage to find the documentation for it The only little bit of information I found is on that web page: snip And it is totally insufficient. I can do nothing with it. So don't try... you are trying to micro manage something that doesn't need and was never intended to be micro managed by end users... Just to try to agree on what I mean when I talk about (Windows) profiles snip unnecessarily complicated description... I can simplify it even more... It is just a collection of User specific settings, generally tied to a certain user account and OS version. As I said, I alternately log on my computer running XP as: - HOSTNAME\lmhelp - or as DOMAINNAME_1\lmhelp - or even as DOMAINNAME_2\lmhelp (not at the same time). 1. You can always logon to the LOCAL (HOSTNAME\) user account (unless the local admin had specifically prevented it). 2. Your computer can only be joined to one domain at a time. So, you wouldn't be able to do #3 unless you unjoined Domain1 and joined Domain2. Now, you *could* simply have a LOCAL account, and make sure there are identical user accounts (the name should be the same) in both domains, and make sure the passwords for all of them are identical... then you should be able to access domain resources without any trouble, all using the same local profile... Maybe this is what you meant? (XP Local User Profiles in a domain environment) It is not about Vista. No, but the principle is the same... here is a link that tells you all you should need to know about Vista Profiles in a domain environment: http://technet.microsoft.com/en-us/library/cc766489.aspx Domain profile is like this 'username.domainname' whereas local profile is known only by the user name. That is not generally true. That was just a comment by one of the early posters in that thread... try reading the entire thing... the way it really works is spelled out in detail in one of the follow-up posts in that thread/link... Anyway, I'm not a fan of (nor do I use) Vista, and have zero experience with it in a domain environment, so the above link is about all I can offer... -- Best regards, Charles -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Is There a Way to Tell Which Kerberos Libraries My Samba Was Built Against?
Does anyone know how I can tell which Kerberos libraries (MIT or Heimdal) my Samba was built with? -- Eric Robinson Disclaimer - November 13, 2008 This email and any files transmitted with it are confidential and intended solely for [EMAIL PROTECTED] If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of . Warning: Although has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. This disclaimer was added by Policy Patrol: http://www.policypatrol.com/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Users not able to change password
Hi list, My brand new samba network is working pretty good, ironing out some glitches. Win XP users cannot change their password. I use SaMBa as a domain-controller with an LDAP backend. A stripped down version of the config is below. I set minimum password length to 8, trying to change the password to a 7 char long gives me the messages that the password does not meet requirements. So that part seems to be working. However using an 8 char long pass (with numbers etc) gives me the msg that I don't have enough permissions to change the passwd. This is going to be an issue in 30 days, when users are required to change their passwd... Used pdbedit to set those requirements Tips and hints are welcome. The log shows: 2008/11/13 12:54:19, 0] auth/auth_util.c:create_builtin_users(758) create_builtin_users: Failed to create Users [2008/11/13 12:54:19, 0] lib/util_sock.c:read_socket_with_timeout(497) read_socket_with_timeout: timeout read. read error = Input/output error. [2008/11/13 12:54:19, 0] lib/util_sock.c:read_socket_with_timeout(497) read_socket_with_timeout: timeout read. read error = Input/output error. [2008/11/13 12:55:02, 0] auth/auth_util.c:create_builtin_administrators(792) create_builtin_administrators: Failed to create Administrators [2008/11/13 12:55:02, 0] auth/auth_util.c:create_builtin_users(758) create_builtin_users: Failed to create Users Thanks Peter [global] workgroup = ENGIN server string = fileserver dns proxy = no log file = /var/log/samba/log.%m max log size = 1000 syslog = 0 panic action = /usr/share/samba/panic-action %d security = user encrypt passwords = true passdb backend = ldapsam:ldap://localhost/ obey pam restrictions = no ldap admin dn = cn=xxx,dc=xxx,dc=xxx ldap suffix = dc=xxx, dc=xxx ldap group suffix = ou=Groups ldap user suffix = ou=Users ldap machine suffix = ou=Computers ldap idmap suffix = ou=Users ldap passwd sync = Yes passwd program = /usr/sbin/smbldap-passwd %u passwd chat = *New*password* %n\n *Retype*new*password* %n\n *all*authentication*tokens*updated* add user script = /usr/sbin/smbldap-useradd -m %u ldap delete dn = Yes delete user script = /usr/sbin/smbldap-userdel %u add machine script = /usr/sbin/smbldap-useradd -w %u add group script = /usr/sbin/smbldap-groupadd -p %g delete group script = /usr/sbin/smbldap-groupdel %g add user to group script = /usr/sbin/smbldap-groupmod -m %u %g delete user from group script = /usr/sbin/smbldap-groupmod -x %u %g set primary group script = /usr/sbin/smbldap-usermod -g %g %u domain logons = yes unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* . logon path = logon script = allusers.bat load printers = yes printcap name = cups printing = cups use client driver = yes cups options = raw socket options = TCP_NODELAY [homes] comment = Home directories browseable = no read only = no create mask = 0700 directory mask = 0700 valid users = %S hide dot files = yes [netlogon] comment = Network Logon Service path = /home/samba/netlogon guest ok = yes read only = yes share modes = no [shared] comment = Shared by all path = /data/shares/shared create mask = 0770 directory mask = 0770 users = %S force group = Domain users read only = no -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] smbd mortality
I encountered a serious samba problem and want to publish details for public benefit.? SLES 10 server running Samba 3.0.28 as domain controller, file and cups print server, running uneventfully for 2 years suddenly drops all users, load rapidly grows to about 250 and becomes unresponsive. smbstatus reveals that every user has about 10 instances of smbd instead of one. CPU (dual processsor, dual core) utilization very low (2 % - mostly X and top).? Reboot clears problem but issue returns every 30 minutes or so.? Logs are empty of any usefull info:? /var/log/messages and /var/log/samba/log.smbd.? dmesg shows no errors. System is not using any swap space.? Server passes all diagnostics possible. System is fully patched. 2tb raid array attached via 320 SCSI checks fsck clean with zero errors and so does each of the local file system slices. File system limit not reached, limit of ~202000 , lsof says only 8800 files open during load spool-up. ? 50 irritated people idle.? Grasping at straws,? we verify all 50 Windows XP clients have latest virus sigs and we do deep scan of every machine.? Two virus' discovered, but niether seemed responsible. A clue comes in from a user.? Every time I try to open a certain file, my system freezes.. Oh really... I go to the subdirectory, via linux console, where the suspect file is located and ls the directory.? 9 files.? ls -al gets Killed. After ls -al filename for each of the 9 files, I determine that 5 of these files are badly corrupt.? I perform an experiment.? Tell everyone to leave these files alone, reboot the server and it runs happily for an hour.? Load is .05 average.? I ask one user to attempt to open one of the corrupt files, and instantly all 50 smbd daemons go to uninterruptible sleep and every WinXP client instantly re-establishes its smbd session with the server and these (all 50) smbd sessions also die and go to heaven.? This cycle continues rapidly sending the load sky high with no cpu utilization to speak of. The short term fix is to move the offending directory to another place on the volume which is out of scope of any share.? Not sure how to delete these files as linux tools seem unable to handle them.? Questions that remain: 1.? Why do all client smbd daemons have to die if only one of them ran into trouble? 2.? How do files get in a state that they can't be viewed or managed?? virus, lack of sunspots? 3.? Why did the fsck say that the filesystem was fine, when obviously it isn't? 4.? How to delete these poison files? Karl -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] smbd mortality
On Thu, Nov 13, 2008 at 03:12:35PM -0500, [EMAIL PROTECTED] wrote: I go to the subdirectory, via linux console, where the suspect file is located and ls the directory.? 9 files.? ls -al gets Killed. After ls -al filename for each of the 9 files, I determine that 5 of these files are badly corrupt.? I perform an experiment.? Tell everyone to leave these files alone, reboot the server and it runs happily for an hour.? Load is .05 average.? I ask one user to attempt to open one of the corrupt files, and instantly all 50 smbd daemons go to uninterruptible sleep and every WinXP client instantly re-establishes its smbd session with the server and these (all 50) smbd sessions also die and go to heaven.? This cycle continues rapidly sending the load sky high with no cpu utilization to speak of. Uninterruptible sleep == kernel problem. Questions that remain: 1.? Why do all client smbd daemons have to die if only one of them ran into trouble? Once you have processes going into an uninterruptible state the system is dead. It might not have stopped moving yet, but it's dead. You have a kernel/filesystem issue you need to resolve. My guess is a bad disk. 2.? How do files get in a state that they can't be viewed or managed?? virus, lack of sunspots? Bad disk, probably. 3.? Why did the fsck say that the filesystem was fine, when obviously it isn't? Kernel bug ? 4.? How to delete these poison files? Backup the filesystem without them, reformat, restore. Did you have hard disk hardware error reporting turned on ? It's not reasonable to expect smbd to survive errors of this magnitude I'm afraid. Once processes start going into a uninterruptible state there's no way for user space code to recover. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Vista - Profile - Local
Charles Marcus wrote: 2. Your computer can only be joined to one domain at a time. So, you wouldn't be able to do #3 unless you unjoined Domain1 and joined Domain2. That is not, to my understanding, an issue here. You do get a multiple domain names listed in the domain drop down menu at logon if these domains are members of the same forest or if there are trust relations configured in between them. It is thus possible to login into multiple domains on a single box. Depending on the set-up you might end-up with different profiles. Anyway, I'm not a fan of (nor do I use) Vista, and have zero experience with it in a domain environment, so the above link is about all I can offer.. You should give it a try, it is fun! :) lmhelp - It is indeed unclear whether you are a) a sysadmin trying to learn something, or; b) a user who is trying to get around a sysadmin. If a) is the case, I believe you got enough replies and suggestions that can get you started. If b) is the case, have a word with your sysadmin and ask him if he can make your life easier (likely there have been more users with similar requests before you). He might help or explain to you why such is not a good idea in your environment. Either way, although this issue had little to do with Samba to begin with, unless you have already considered some of the tips given in this thread -- I suggest you try one of the Windows technical forums (although I am not sure if there is anything useful that can be said in addition to what was already said here). -laco. -- Ladislav Ardo Project Manager/Sr.Systems Administrator Telephone: +31-(0)71-5795537 AOES Group B.V. Telefax: +31-(0)71-5721277 Huygensstraat 34 e-mail: [EMAIL PROTECTED] 2201 DK Noordwijk, The Netherlands http://www.aoes.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 02:24:46PM +0100, Martin Zielinski wrote: Hi Volker, all! Yesterday I reported a memleak in the smbd on the technical mailing list with an attached pool-usage dump. Actually I'm not sure it was a 'leak' technically, it may have been a too long delayed free from the talloc pool (as no memory in a talloc pool is ever 'leaked' as such, we may just neglect to free the talloc pool until smbd exit :-). Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] NFSv4 ACL Support
I have a Solaris 10 Samba server using ZFS. ZFS supports NFSv4 ACL's. It's my understanding that Samba 3.2.x does not support the NFSv4 ACL's, but that Samba 4 will. Is this correct? -David -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] NFSv4 ACL Support
On Thu, Nov 13, 2008 at 05:13:47PM -0500, David Eisner wrote: I have a Solaris 10 Samba server using ZFS. ZFS supports NFSv4 ACL's. It's my understanding that Samba 3.2.x does not support the NFSv4 ACL's, but that Samba 4 will. Is this correct? No, that's not fully correct. Samba 3.2 has support for NFSv4 ACLs on zfs using the vfs_zfsacl module. Samba 3.3 and Samba 4 will have native NTFS ACL support (which is different from NFSv4 ACL support). But the native NTFS ACLs need to be stored in some place like EAs. Volker pgpdjWXwDIKcf.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
Re: [Samba] NFSv4 ACL Support
On Thu, Nov 13, 2008 at 5:19 PM, Volker Lendecke [EMAIL PROTECTED] wrote: No, that's not fully correct. Samba 3.2 has support for NFSv4 ACLs on zfs using the vfs_zfsacl module. Samba 3.3 and Cool. Do I have to do anything special when compiling Samba 3.2.4 to use it? I see there's a --with-vfs-afsacl configure option, but no --with-vfs-zfsacl. Should I use --with-shared-modules=vfs_zfsacl? Thanks again. -David -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] The way things used to work...
So, 18 days and 375 posts later. no answer to my question? Looks like I just want impossible: simple share with no limits, but with local user permissions for remote users. And NO I do not wish to use user level security, as users that have to use those shares hardly can cope with more basic stuff, than it is login to someone else's share via usernamepassword. Anyhow, in my previous post I have presented my non working (only on samba 3.2.3) smb.conf and I need help in getting it to work (again on samba 3.2.3 or later). I hope that conf is self explanatory, but if it is not, please ask me and I will clarify. Thanks. On Monday 27 October 2008 22:59:00 Dragan Lukic wrote: Hello all, As I was instructed on #samba IRC channel, I will start new discussion here, about samba and a way it works. I might call myself an experienced Linux user, and self thought admin, so things in Linux are not so new to me, but lacking proper (certified) education, I still tend to roam around issues with trialerror method. Regarding samba, it is translated in my attempt to make things go my way, rather than (someone might call it) right way. Since I work as sysadmin, surrounded with mostly computer illiterate users, my primary goal is to make things effortless to them... (brainless is better word...), and since it is mixed environment (windowslinux), and of course all they ever saw before is windows you can understand a nature of limitations that are in front of me. It took me some time (again trial and error) to compile set of rules for smb.conf that makes things exactly as I want. Efficient and nice. This smb.conf is working for me for more than a year now, and is still working at workplace, but I hit a brick wall trying to use it at home. At work, idea is like so: Linux user has it's home dir inside there is Documents dir inside that I will make shared dir it will be published via Samba it will available for read and write to all this includes local user via Samba and via local access for ownership issues, all files will be forced to create under local user and group mask not to forget, it is only workgroup, not domain or any other level of network organisation All these rules are matched with following smb.conf (real entries will be changed with foo/bar) [global] workgroup = FOO server string = FOO Server security = share hosts allow = 192.168.125. 127.0. log file = /var/log/samba/%m.log max log size = 50 local master = no os level = 33 dns proxy = no # Share Definitions === [Share] path = /home/foobar/Documents/Share/ public = yes force user = foobar force group = foobar create mask = 0755 force create mode = 0755 directory mask = 0755 force directory mode = 0755 writable = yes printable = no Of course directory /home/foobar/Documents/Share/ exists, and is set up with 755 for user foobar and group foobar (as well as all inside contents). Doing so, whoever puts something inside this dir via samba, creates that file/folder with foobar:foobar ownership and 755 set of permissions. Which is exactly what I wanted. Of course, no usernamepassword dialogue is needed, so my main goal of things being effortless for users is also met. So, this works in network of mostly Windows XP-s, Mandriva 2008, and few Mandriva 2008.1 machines (including router/mail server). So samba versions in use are 3.0.25b and 3.0.28a (maybe some updated, but not important for issue). It was also working at home, where I have desktop (that plays also router) and laptop connected via wlan to desktop. Recently newest Mandriva was released, so I decided to give it a go. After struggling with bunch of other issues, time came to quickly enable samba share so I can move files from laptop to desktop (where new Mandriva 2009 is installed). Easy job... oh how wrong was I... Installed samba client and server packages made a backup of stock smb.conf and copied old smb.conf file. Called smb://home in Dolphin and was surprised... no workgroups found!! Well after some period of time (and several smb restarts) finally I got smb://home to show share... Now to enter it... errr NO Again few restarts and lot of time later... OK... I see contents of smb://home and can enter... good... let's see what is inside... Nothing Or to be exact, message is: The file or folder smb://hostname/Share does not exist Of course it exists, all was done and set up exactly as at work... and set up that way it was working PRIOR latest samba installed... and at this time it is: samba-server-3.2.3-3mdv2009.0 (with other dependent files) So now... I was advised to use security level set to user, and to allow guest user... and I did that... After lot of trials (this time refreshed via smbcontrol smbd reload-config) it finally got me where I want to be, with exclusion of
[Samba] Domain Member Server problems
Hi all, I'm not having any success adding samba (3.0.28 on Solaris 10) to a Windows AD server (2003 R2) per the instructions here: (In addition to much googling) http://us3.samba.org/samba/docs/man/Samba-Guide/unixclients.html#adssdm The error is: bash-3.00# /usr/sfw/sbin/net ads join -U Administrator Administrator's password: Using short domain name -- BETA Failed to set servicePrincipalNames. Please ensure that the DNS domain of this server matches the AD domain, Or rejoin with using Domain Admin credentials. Deleted account for 'SOLARIS' in realm 'BETA.LOCAL' Failed to join domain: Type or value exists Thanks for you help. More information below. Windows AD domain name: beta.local Background: bash-3.00# hostname solaris bash-3.00# domainname beta.local smb.conf - [global] log level = 1 syslog = 0 log file = /var/log/samba/%m max log size = 50 idmap uid = 1-2 idmap gid = 1-2 winbind separator = + workgroup = beta server string = Samba security = ADS - /etc/krb5/krb5.conf-- [libdefaults] default_realm = BETA.local [realms] BETA.local = { kdc = will-ea96ec1f1e.beta.local: default_domain = beta.local } [domain_realm] BETA.local = BETA.local .BETA.local = BETA.local [logging] default = FILE:/var/krb5/kdc.log kdc = FILE:/var/krb5/kdc.log kdc_rotate = { period = 1d versions = 10 } [appdefaults] kinit = { renewable = true forwardable= true } gkadmin = { help_url = http://docs.sun.com:80/ab2/coll.384.1/SEAM/@AB2PageView/1195} --- bash-3.00# /usr/sfw/sbin/net ads join -U Administrator -d3 [2008/11/13 17:43:35, 3] param/loadparm.c:(5031) lp_load: refreshing parameters [2008/11/13 17:43:35, 3] param/loadparm.c:(1430) Initialising global parameters [2008/11/13 17:43:35, 3] param/params.c:(572) params.c:pm_process() - Processing configuration file /etc/sfw/smb.conf [2008/11/13 17:43:35, 3] param/loadparm.c:(3770) Processing section [global] [2008/11/13 17:43:35, 2] lib/interface.c:(81) added interface ip=192.168.0.10 bcast=192.168.0.255 nmask=255.255.255.0 [2008/11/13 17:43:35, 3] libsmb/namequery.c:(1489) get_dc_list: preferred server list: 192.168.0.1, * [2008/11/13 17:43:35, 3] libads/ldap.c:(394) Connected to LDAP server 192.168.0.1 [2008/11/13 17:43:35, 3] libsmb/namequery.c:(1489) get_dc_list: preferred server list: 192.168.0.1, * [2008/11/13 17:43:35, 3] libsmb/namequery.c:(1489) get_dc_list: preferred server list: 192.168.0.1, * Administrator's password: [2008/11/13 17:43:41, 3] libsmb/namequery.c:(1489) get_dc_list: preferred server list: 192.168.0.1, * [2008/11/13 17:43:41, 3] libads/ldap.c:(394) Connected to LDAP server 192.168.0.1 [2008/11/13 17:43:41, 3] libads/sasl.c:(213) ads_sasl_spnego_bind: got OID=1 2 840 48018 1 2 2 [2008/11/13 17:43:41, 3] libads/sasl.c:(213) ads_sasl_spnego_bind: got OID=1 2 840 113554 1 2 2 [2008/11/13 17:43:41, 3] libads/sasl.c:(213) ads_sasl_spnego_bind: got OID=1 2 840 113554 1 2 2 3 [2008/11/13 17:43:41, 3] libads/sasl.c:(213) ads_sasl_spnego_bind: got OID=1 3 6 1 4 1 311 2 2 10 [2008/11/13 17:43:41, 3] libads/sasl.c:(222) ads_sasl_spnego_bind: got server principal name = [EMAIL PROTECTED] [2008/11/13 17:43:41, 3] libsmb/clikrb5.c:(593) ads_krb5_mk_req: krb5_cc_get_principal failed (No credentials cache file found) [2008/11/13 17:43:41, 3] libsmb/clikrb5.c:(528) ads_cleanup_expired_creds: Ticket in ccache[MEMORY:net_ads] expiration Fri, 14 Nov 2008 03:43:38 EST [2008/11/13 17:43:41, 3] libsmb/namequery.c:(1489) get_dc_list: preferred server list: 192.168.0.1, * [2008/11/13 17:43:41, 3] libads/ldap.c:(394) Connected to LDAP server 192.168.0.1 [2008/11/13 17:43:41, 3] libads/sasl.c:(213) ads_sasl_spnego_bind: got OID=1 2 840 48018 1 2 2 [2008/11/13 17:43:41, 3] libads/sasl.c:(213) ads_sasl_spnego_bind: got OID=1 2 840 113554 1 2 2 [2008/11/13 17:43:41, 3] libads/sasl.c:(213) ads_sasl_spnego_bind: got OID=1 2 840 113554 1 2 2 3 [2008/11/13 17:43:41, 3] libads/sasl.c:(213) ads_sasl_spnego_bind: got OID=1 3 6 1 4 1 311 2 2 10 [2008/11/13 17:43:41, 3] libads/sasl.c:(222) ads_sasl_spnego_bind: got server principal name = [EMAIL PROTECTED] [2008/11/13 17:43:41, 3] libsmb/clikrb5.c:(528) ads_cleanup_expired_creds: Ticket in ccache[MEMORY:net_ads] expiration Fri, 14 Nov 2008 03:43:38 EST [2008/11/13 17:43:41, 3] libsmb/cliconnect.c:(1509) Connecting to host=will-ea96ec1f1e.beta.local [2008/11/13 17:43:41, 3] lib/util_sock.c:(874) Connecting to 192.168.0.1 at port 445 [2008/11/13 17:43:41, 3] libsmb/cliconnect.c:(793) Doing spnego session setup (blob length=115) [2008/11/13 17:43:41, 3]
Re: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 02:03:39PM -0800, Jeremy Allison wrote: On Thu, Nov 13, 2008 at 02:24:46PM +0100, Martin Zielinski wrote: Hi Volker, all! Yesterday I reported a memleak in the smbd on the technical mailing list with an attached pool-usage dump. Actually I'm not sure it was a 'leak' technically, it may have been a too long delayed free from the talloc pool (as no memory in a talloc pool is ever 'leaked' as such, we may just neglect to free the talloc pool until smbd exit :-). Well, I'd call this pretty close to a memory leak Attached find a patch to 3.2 that might be an alternative to your change to memcache.c in 8962be69c700. What do you think? Martin, thanks a lot for reviewing our stuff! Volker From 90b4a043bd5d0838ffb6aaad5413abe8c95d7071 Mon Sep 17 00:00:00 2001 From: Volker Lendecke [EMAIL PROTECTED] Date: Thu, 13 Nov 2008 23:50:19 +0100 Subject: [PATCH] Actually finish memcache_add_talloc This fixes a memleak found by Martin Zielinski [EMAIL PROTECTED]. Thanks for looking closely! Volker --- source/lib/memcache.c| 19 ++- source/torture/torture.c | 33 - 2 files changed, 50 insertions(+), 2 deletions(-) diff --git a/source/lib/memcache.c b/source/lib/memcache.c index e1426bc..8ff75c4 100644 --- a/source/lib/memcache.c +++ b/source/lib/memcache.c @@ -214,6 +214,16 @@ static void memcache_delete_element(struct memcache *cache, } DLIST_REMOVE(cache-mru, e); + if (memcache_is_talloc(e-n)) { + DATA_BLOB cache_key, cache_value; + void *ptr; + + memcache_element_parse(e, cache_key, cache_value); + SMB_ASSERT(cache_value.length == sizeof(ptr)); + memcpy(ptr, cache_value.data, sizeof(ptr)); + TALLOC_FREE(ptr); + } + cache-size -= memcache_element_size(e-keylength, e-valuelength); SAFE_FREE(e); @@ -276,6 +286,12 @@ void memcache_add(struct memcache *cache, enum memcache_number n, memcache_element_parse(e, cache_key, cache_value); if (value.length = cache_value.length) { + if (memcache_is_talloc(e-n)) { +void *ptr; +SMB_ASSERT(cache_value.length == sizeof(ptr)); +memcpy(ptr, cache_value.data, sizeof(ptr)); +TALLOC_FREE(ptr); + } /* * We can reuse the existing record */ @@ -334,7 +350,8 @@ void memcache_add(struct memcache *cache, enum memcache_number n, void memcache_add_talloc(struct memcache *cache, enum memcache_number n, DATA_BLOB key, void *ptr) { - memcache_add(cache, n, key, data_blob_const(ptr, sizeof(ptr))); + void *p = talloc_move(cache, ptr); + memcache_add(cache, n, key, data_blob_const(p, sizeof(p))); } void memcache_flush(struct memcache *cache, enum memcache_number n) diff --git a/source/torture/torture.c b/source/torture/torture.c index e909f8c..8419be7 100644 --- a/source/torture/torture.c +++ b/source/torture/torture.c @@ -5188,6 +5188,11 @@ static bool run_local_memcache(int dummy) DATA_BLOB d1, d2, d3; DATA_BLOB v1, v2, v3; + TALLOC_CTX *mem_ctx; + char *str1, *str2; + size_t size1, size2; + bool ret = false; + cache = memcache_init(NULL, 100); if (cache == NULL) { @@ -5239,7 +5244,33 @@ static bool run_local_memcache(int dummy) } TALLOC_FREE(cache); - return true; + + cache = memcache_init(NULL, 0); + + mem_ctx = talloc_init(foo); + + str1 = talloc_strdup(mem_ctx, string1); + str2 = talloc_strdup(mem_ctx, string2); + + memcache_add_talloc(cache, SINGLETON_CACHE_TALLOC, + data_blob_string_const(torture), str1); + size1 = talloc_total_size(cache); + + memcache_add_talloc(cache, SINGLETON_CACHE_TALLOC, + data_blob_string_const(torture), str2); + size2 = talloc_total_size(cache); + + printf(size1=%d, size2=%d\n, (int)size1, (int)size2); + + if (size2 size1) { + printf(memcache leaks memory!\n); + goto fail; + } + + ret = true; + fail: + TALLOC_FREE(cache); + return ret; } static double create_procs(bool (*fn)(int), bool *result) -- 1.5.3.6 pgpkd8M7cTajI.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
Re: [Samba] NFSv4 ACL Support
Hi David, David Eisner wrote: On Thu, Nov 13, 2008 at 5:19 PM, Volker Lendecke [EMAIL PROTECTED] wrote: No, that's not fully correct. Samba 3.2 has support for NFSv4 ACLs on zfs using the vfs_zfsacl module. Samba 3.3 and Cool. Do I have to do anything special when compiling Samba 3.2.4 to use it? I see there's a --with-vfs-afsacl configure option, but no --with-vfs-zfsacl. Should I use --with-shared-modules=vfs_zfsacl? Right, that is the way to trigger the build. This will build zfsacl.so. You use it with vfs objects = zfsacl in a share definition in smb.conf. Cheers - Michael -- Michael Adam [EMAIL PROTECTED] [EMAIL PROTECTED] SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen phone: +49-551-37-0, fax: +49-551-37-9 AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen http://www.SerNet.DE, mailto: Info @ SerNet.DE pgpiRkWphKv3h.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
Re: [Samba] NFSv4 ACL Support
On Thu, Nov 13, 2008 at 6:01 PM, Michael Adam [EMAIL PROTECTED] wrote: You use it with vfs objects = zfsacl in a share definition in smb.conf. Great, it seems to be working as expected. Vielen Dank! -David -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba memory usage - how big is it?
On Thu, Nov 13, 2008 at 11:54:55PM +0100, Volker Lendecke wrote: On Thu, Nov 13, 2008 at 02:03:39PM -0800, Jeremy Allison wrote: On Thu, Nov 13, 2008 at 02:24:46PM +0100, Martin Zielinski wrote: Hi Volker, all! Yesterday I reported a memleak in the smbd on the technical mailing list with an attached pool-usage dump. Actually I'm not sure it was a 'leak' technically, it may have been a too long delayed free from the talloc pool (as no memory in a talloc pool is ever 'leaked' as such, we may just neglect to free the talloc pool until smbd exit :-). Well, I'd call this pretty close to a memory leak Attached find a patch to 3.2 that might be an alternative to your change to memcache.c in 8962be69c700. What do you think? Ok, If I understand the change correctly, when a talloc'ed pointer is given to memcache you're reassigning it under the covers by talloc_move'ing it to the cache. That is an alternate way of fixing the problem, which was that the stored pointer was still owned by the talloc ctx it was created under, and so could be invalidated when that original pool was freed. You'll have to re-add the memcache_is_talloc() function (which I deleted :-). I'd prefer the memcache_add_talloc() function to look like the following : void memcache_add_talloc(struct memcache *cache, enum memcache_number n, DATA_BLOB key, void **pptr) { void *p = talloc_move(cache, pptr); memcache_add(cache, n, key, data_blob_const(p, sizeof(p))); } so that the passed in pointer gets NULL'ed out for the caller - we know it's gone then. Yeah, I like your change, at least the memcache_flush() call will now be able to deal with talloc'ed storage. I'd say go for it in 3.3.x. I'm trying to change all instances of TALLOC_XX(NULL,..) to TALLOC_XX(talloc_autofree_context(),..) so we clean up nicely on exit. Makes real leaks easier to spot. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] string_to_sid: Sid MYDOMAIN\mygroup does not start with 'S-'.
I've been struggling for almost 2 weeks to get Samba working on two new servers. When I try to open a Samba share from a Windows 2003 computer, I always get a logon challenge. I always get the following lot message [2008/11/13 16:05:06, 3] lib/util_sid.c:string_to_sid(228) string_to_sid: Sid MYDOMAIN\mygroup does not start with 'S-'. [2008/11/13 16:05:06, 2] smbd/service.c:make_connection_snum(732) user 'MYDOMAIN\user' (from session setup) not permitted to access this share (ftp_site001) [2008/11/13 16:05:06, 3] smbd/error.c:error_packet_set(61) error packet at smbd/reply.c(662) cmd=117 (SMBtconX) NT_STATUS_ACCESS_DENIED The following code snippet shows where this error is coming from: snip_start bool string_to_sid(DOM_SID *sidout, const char *sidstr) { const char *p; char *q; /* BIG NOTE: this function only does SIDS where the identauth is not = 2^32 */ uint32 conv; if ((sidstr[0] != 'S' sidstr[0] != 's') || sidstr[1] != '-') { DEBUG(3,(string_to_sid: Sid %s does not start with 'S-'.\n, sidstr)); return False; } snip_end QUESTION: It looks to me as though this function is designed to convert a string such as MYDOMAIN\user into a SID starting with S-. Obviously the string it is supposed to convert FROM would not start with S- because that's what the string is supposed to be converted TO. So why would it complain that the string does not start with an S- even before it attempts to convert it? -- Eric Robinson Disclaimer - November 13, 2008 This email and any files transmitted with it are confidential and intended solely for samba. If you are not the named addressee you should not disseminate, distribute, copy or alter this email. Any views or opinions presented in this email are solely those of the author and might not represent those of . Warning: Although has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. This disclaimer was added by Policy Patrol: http://www.policypatrol.com/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Still working on a Member Server
Going through the examples and reading through the wiki's I still have not found exactly what I was looking for in matching uid's and gid's. using samba samba3-3.0.32-36 We currently have a domain controller Samba/LDAP PDC. samba-3.0.20b-1 Previous member servers samba-3.0.10-1.4 and I went to add a member server. Now I find that users and groups don't match. So from previous postings I have surmised that this has all changed and to get uid's and gid's to match across member servers you need to install an LDAP server on each Member Server and then use this as the backend for that system. So what I have seen thus far the idmap uid = idmap gid = have not effect on the outcome of uid's and gid's on the server anymore. I have tried /etc/nsswitch.conf passwd files winbind shadow files groupfiles winbind and then tried passwdfile ldap shadow file ldap group file ldap Using winbind would give me groups, but not what I was expecting. I would get no info on users or groups for the domain. Using ldap I would receive no precursor for users or groups using wbinfo or getent, but the users and groups would show up. The uid and gid had no correlation to idmap uid or idmap gid. Nov 13 19:36:35 IET0245Q slapd[25398]: = bdb_equality_candidates: (sambaGroupType) index_param failed (18) Nov 13 19:36:35 IET0245Q slapd[25398]: daemon: select: listen=8 active_threads=0 tvp=NULL Nov 13 19:36:35 IET0245Q slapd[25398]: = bdb_equality_candidates: (sambaSIDList) index_param failed (18) Nov 13 19:36:35 IET0245Q last message repeated 4 times Nov 13 19: [global] unix charset = LOCALE workgroup = GUM netbios name = GUM01B_TEST security = DOMAIN username map = /etc/samba/smbusers log level = 10 syslog = 0 log file = /var/log/samba/samba2.log smb ports = 139 name resolve order = wins bcast hosts printcap name = /etc/printcap domain master = No wins server = 192.168.1.239 ldap admin dn = cn=Manager,dc=GUM,dc=COM; ldap group suffix = ou=Group; ldap idmap suffix = ou=Idmap; ldap machine suffix = ou=Computers ; ldap suffix = dc=GUM,dc=COM ; ldap user suffix = ou=People; idmap backend = ldap://192.168.1.245 idmap uid = 1-2 ; idmap gid = 1-2 ; winbind enum users = Yes winbind enum groups = Yes winbind trusted domains only = Yes [GUMSHARE] comment = GUMSHARE path = /RAIDDEVICE/GUMSHARE username = GUM+user1,@GUM+Domain Users read list = GUM+user1, @GUM+Domain Users write list = @GUM+Domain Users read only = No create mask = 0774 security mask = 0774 force security mode = 0770 directory mask = 02777 directory security mask = 0770 force directory security mode = 0770 inherit permissions = Yes hide unreadable = Yes veto oplock files = /GUM.*/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
WG: [Samba] Still working on a Member Server
For me getting a member server to work I did not need winbind just ldap was sufficient. Did you made the trust account? Getent group and passwd must give you all users and groups. You must be able to chmod domainuser:domaingroup on your Member Server. What I recognized is that the member server with samba 3.028 is much to slow. It takes too long if you try to connect over My Network Places. This bug I could not solve. Greetings Daniel -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von [EMAIL PROTECTED] Gesendet: Freitag, 14. November 2008 03:21 An: samba@lists.samba.org Betreff: [Samba] Still working on a Member Server Going through the examples and reading through the wiki's I still have not found exactly what I was looking for in matching uid's and gid's. using samba samba3-3.0.32-36 We currently have a domain controller Samba/LDAP PDC. samba-3.0.20b-1 Previous member servers samba-3.0.10-1.4 and I went to add a member server. Now I find that users and groups don't match. So from previous postings I have surmised that this has all changed and to get uid's and gid's to match across member servers you need to install an LDAP server on each Member Server and then use this as the backend for that system. So what I have seen thus far the idmap uid = idmap gid = have not effect on the outcome of uid's and gid's on the server anymore. I have tried /etc/nsswitch.conf passwd files winbind shadow files groupfiles winbind and then tried passwdfile ldap shadow file ldap group file ldap Using winbind would give me groups, but not what I was expecting. I would get no info on users or groups for the domain. Using ldap I would receive no precursor for users or groups using wbinfo or getent, but the users and groups would show up. The uid and gid had no correlation to idmap uid or idmap gid. Nov 13 19:36:35 IET0245Q slapd[25398]: = bdb_equality_candidates: (sambaGroupType) index_param failed (18) Nov 13 19:36:35 IET0245Q slapd[25398]: daemon: select: listen=8 active_threads=0 tvp=NULL Nov 13 19:36:35 IET0245Q slapd[25398]: = bdb_equality_candidates: (sambaSIDList) index_param failed (18) Nov 13 19:36:35 IET0245Q last message repeated 4 times Nov 13 19: [global] unix charset = LOCALE workgroup = GUM netbios name = GUM01B_TEST security = DOMAIN username map = /etc/samba/smbusers log level = 10 syslog = 0 log file = /var/log/samba/samba2.log smb ports = 139 name resolve order = wins bcast hosts printcap name = /etc/printcap domain master = No wins server = 192.168.1.239 ldap admin dn = cn=Manager,dc=GUM,dc=COM; ldap group suffix = ou=Group; ldap idmap suffix = ou=Idmap; ldap machine suffix = ou=Computers ; ldap suffix = dc=GUM,dc=COM ; ldap user suffix = ou=People; idmap backend = ldap://192.168.1.245 idmap uid = 1-2 ; idmap gid = 1-2 ; winbind enum users = Yes winbind enum groups = Yes winbind trusted domains only = Yes [GUMSHARE] comment = GUMSHARE path = /RAIDDEVICE/GUMSHARE username = GUM+user1,@GUM+Domain Users read list = GUM+user1, @GUM+Domain Users write list = @GUM+Domain Users read only = No create mask = 0774 security mask = 0774 force security mode = 0770 directory mask = 02777 directory security mask = 0770 force directory security mode = 0770 inherit permissions = Yes hide unreadable = Yes veto oplock files = /GUM.*/ -- 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
[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4363-g1ec66e9
The branch, v3-3-test has been updated via 1ec66e9db4b8b8c928d48aa3aa5c1cf618c722c1 (commit) from a9f2609e6f89945c5b05f50efc58618e27cd96f1 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log - commit 1ec66e9db4b8b8c928d48aa3aa5c1cf618c722c1 Author: Bo Yang [EMAIL PROTECTED] Date: Thu Oct 30 13:02:41 2008 +0800 i18n/l10n pam_winbind --- Summary of changes: source/Makefile.in | 29 +++-- source/configure.in |3 +- source/include/localedir.h |6 ++ source/locale/pam_winbind/genmsg | 25 source/localedir.c |3 + source/m4/check_path.m4 | 19 ++ source/nsswitch/pam_winbind.c| 119 ++ source/nsswitch/pam_winbind.h| 15 +- source/script/installmo.sh | 83 ++ source/script/uninstallmo.sh |1 + 10 files changed, 245 insertions(+), 58 deletions(-) create mode 100644 source/include/localedir.h create mode 100755 source/locale/pam_winbind/genmsg create mode 100644 source/localedir.c create mode 100644 source/script/installmo.sh create mode 12 source/script/uninstallmo.sh Changeset truncated at 500 lines: diff --git a/source/Makefile.in b/source/Makefile.in index ac03204..9df43e6 100644 --- a/source/Makefile.in +++ b/source/Makefile.in @@ -137,6 +137,9 @@ PRIVATE_DIR = $(PRIVATEDIR) # This is where SWAT images and help files go SWATDIR = @swatdir@ +# This is where locale(mo) files go +LOCALEDIR= @localedir@ + # the directory where lock files go LOCKDIR = @lockdir@ @@ -174,7 +177,8 @@ PATH_FLAGS = -DSMB_PASSWD_FILE=\$(SMB_PASSWD_FILE)\ \ -DCONFIGDIR=\$(CONFIGDIR)\ \ -DCODEPAGEDIR=\$(CODEPAGEDIR)\ \ -DCACHEDIR=\$(CACHEDIR)\ \ - -DSTATEDIR=\$(STATEDIR)\ + -DSTATEDIR=\$(STATEDIR)\ \ + -DLOCALEDIR=\$(LOCALEDIR)\ # Note that all executable programs now provide for an optional executable suffix. @@ -780,7 +784,7 @@ RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \ $(LIBADS_OBJ) $(POPT_LIB_OBJ) \ $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ) -PAM_WINBIND_OBJ = nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \ +PAM_WINBIND_OBJ = nsswitch/pam_winbind.o localedir.o $(WBCOMMON_OBJ) \ $(LIBREPLACE_OBJ) @BUILD_INIPARSER@ LIBSMBCLIENT_OBJ0 = \ @@ -1276,6 +1280,13 @@ dynconfig.o: dynconfig.c Makefile echo $(COMPILE_CC_PATH) 12;\ $(COMPILE_CC_PATH) /dev/null 21 +localedir.o: localedir.c Makefile + @echo Compiling $*.c + @$(COMPILE_CC_PATH) exit 0;\ + echo The following command failed: 12;\ + echo $(COMPILE_CC_PATH) 12;\ + $(COMPILE_CC_PATH) /dev/null 21 + lib/pidfile.o: lib/pidfile.c @echo Compiling $*.c @$(COMPILE_CC_PATH) exit 0;\ @@ -2508,7 +2519,7 @@ bin/[EMAIL PROTECTED]@: $(BINARY_PREREQS) $(RPC_OPEN_TCP_OBJ) @LIBTALLOC_SHARE install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSUPCALL@ installman \ installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \ - @INSTALL_PAM_MODULES@ installlibs + @INSTALL_PAM_MODULES@ installlibs installmo install-everything:: install installmodules @@ -2521,7 +2532,7 @@ install-everything:: install installmodules # is not used installdirs:: - @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) + @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR) installservers:: all installdirs @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS) @@ -2587,6 +2598,9 @@ revert:: installman:: installdirs @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C @ROFF@ +installmo:: all installdirs + @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir) + .PHONY: showlayout showlayout:: @@ -2606,7 +2620,10 @@ showlayout:: @echo codepagedir: $(CODEPAGEDIR) -uninstall:: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSUPCALL@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@ +uninstall:: uninstallmo uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSUPCALL@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@ + +uninstallmo:: + @$(SHELL) $(srcdir)/script/uninstallmo.sh $(DESTDIR)
[SCM] Samba Shared Repository - branch master updated - a8722a190b65ddd4e6e958c6e8b28b268531d130
The branch, master has been updated via a8722a190b65ddd4e6e958c6e8b28b268531d130 (commit) from 5e25f5f4f2b5b8dfd31206ebdc295c00870effe9 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit a8722a190b65ddd4e6e958c6e8b28b268531d130 Author: Bo Yang [EMAIL PROTECTED] Date: Thu Oct 30 17:53:52 2008 +0800 i18n/l10n pam_winbind Signed-off-by: Günther Deschner [EMAIL PROTECTED] --- Summary of changes: source3/Makefile.in | 29 +++-- source3/configure.in |3 +- source3/include/localedir.h |6 ++ source3/locale/pam_winbind/genmsg | 25 source3/localedir.c |3 + source3/m4/check_path.m4 | 19 ++ source3/nsswitch/pam_winbind.c| 117 +--- source3/nsswitch/pam_winbind.h| 15 +- source3/script/installmo.sh | 83 ++ source3/script/uninstallmo.sh |1 + 10 files changed, 244 insertions(+), 57 deletions(-) create mode 100644 source3/include/localedir.h create mode 100755 source3/locale/pam_winbind/genmsg create mode 100644 source3/localedir.c create mode 100644 source3/script/installmo.sh create mode 100644 source3/script/uninstallmo.sh Changeset truncated at 500 lines: diff --git a/source3/Makefile.in b/source3/Makefile.in index 6e40ba4..4a0590c 100644 --- a/source3/Makefile.in +++ b/source3/Makefile.in @@ -140,6 +140,9 @@ PRIVATE_DIR = $(PRIVATEDIR) # This is where SWAT images and help files go SWATDIR = @swatdir@ +# This is where locale(mo) files go +LOCALEDIR= @localedir@ + # the directory where lock files go LOCKDIR = @lockdir@ @@ -173,7 +176,8 @@ PATH_FLAGS = -DSMB_PASSWD_FILE=\$(SMB_PASSWD_FILE)\ \ -DCONFIGDIR=\$(CONFIGDIR)\ \ -DCODEPAGEDIR=\$(CODEPAGEDIR)\ \ -DCACHEDIR=\$(CACHEDIR)\ \ - -DSTATEDIR=\$(STATEDIR)\ + -DSTATEDIR=\$(STATEDIR)\ \ + -DLOCALEDIR=\$(LOCALEDIR)\ # Note that all executable programs now provide for an optional executable suffix. @@ -803,7 +807,7 @@ RPCCLIENT_OBJ = $(RPCCLIENT_OBJ1) \ $(LIBADS_OBJ) $(POPT_LIB_OBJ) \ $(SMBLDAP_OBJ) $(DCUTIL_OBJ) $(LDB_OBJ) -PAM_WINBIND_OBJ = nsswitch/pam_winbind.o $(WBCOMMON_OBJ) \ +PAM_WINBIND_OBJ = nsswitch/pam_winbind.o localedir.o $(WBCOMMON_OBJ) \ $(LIBREPLACE_OBJ) @BUILD_INIPARSER@ LIBSMBCLIENT_OBJ0 = \ @@ -1312,6 +1316,13 @@ dynconfig.o: dynconfig.c Makefile echo $(COMPILE_CC_PATH) 12;\ $(COMPILE_CC_PATH) /dev/null 21 +localedir.o: localedir.c Makefile + @echo Compiling $*.c + @$(COMPILE_CC_PATH) exit 0;\ + echo The following command failed: 12;\ + echo $(COMPILE_CC_PATH) 12;\ + $(COMPILE_CC_PATH) /dev/null 21 + lib/pidfile.o: lib/pidfile.c @echo Compiling $*.c @$(COMPILE_CC_PATH) exit 0;\ @@ -2558,7 +2569,7 @@ bin/[EMAIL PROTECTED]@: $(BINARY_PREREQS) $(TEST_LP_LOAD_OBJ) @BUILD_POPT@ @LI install:: installservers installbin @INSTALL_CIFSMOUNT@ @INSTALL_CIFSUPCALL@ installman \ installscripts installdat installmodules @SWAT_INSTALL_TARGETS@ \ - @INSTALL_PAM_MODULES@ installlibs + @INSTALL_PAM_MODULES@ installlibs installmo install-everything:: install installmodules @@ -2571,7 +2582,7 @@ install-everything:: install installmodules # is not used installdirs:: - @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) + @$(SHELL) $(srcdir)/script/installdirs.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(BINDIR) $(SBINDIR) $(LIBDIR) $(VARDIR) $(PRIVATEDIR) $(PIDDIR) $(LOCKDIR) $(MANDIR) $(CODEPAGEDIR) $(MODULESDIR) $(LOCALEDIR) installservers:: all installdirs @$(SHELL) script/installbin.sh $(INSTALLPERMS_BIN) $(DESTDIR) $(prefix) $(SBINDIR) $(SBIN_PROGS) @@ -2637,6 +2648,9 @@ revert:: installman:: installdirs @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(srcdir) C @ROFF@ +installmo:: all installdirs + @$(SHELL) $(srcdir)/script/installmo.sh $(DESTDIR) $(LOCALEDIR) $(srcdir) + .PHONY: showlayout showlayout:: @@ -2656,7 +2670,10 @@ showlayout:: @echo codepagedir: $(CODEPAGEDIR) -uninstall:: uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSUPCALL@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@ +uninstall:: uninstallmo uninstallman uninstallservers uninstallbin @UNINSTALL_CIFSMOUNT@ @UNINSTALL_CIFSUPCALL@ uninstallscripts uninstalldat uninstallswat uninstallmodules uninstalllibs @UNINSTALL_PAM_MODULES@ +
[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4364-g3310dea
The branch, v3-3-test has been updated via 3310deac11bb579ba364dabd59e149fdd68360ed (commit) from 1ec66e9db4b8b8c928d48aa3aa5c1cf618c722c1 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log - commit 3310deac11bb579ba364dabd59e149fdd68360ed Author: Günther Deschner [EMAIL PROTECTED] Date: Thu Nov 13 17:30:00 2008 +0100 pam_winbind: translate some more string. boyang, please check. Guenther --- Summary of changes: source/nsswitch/pam_winbind.c | 10 +- 1 files changed, 5 insertions(+), 5 deletions(-) Changeset truncated at 500 lines: diff --git a/source/nsswitch/pam_winbind.c b/source/nsswitch/pam_winbind.c index 17e8c95..cc6bf22 100644 --- a/source/nsswitch/pam_winbind.c +++ b/source/nsswitch/pam_winbind.c @@ -552,13 +552,13 @@ static const struct ntstatus_errors { {NT_STATUS_INVALID_LOGON_HOURS, N_(You are not allowed to logon at this time)}, {NT_STATUS_ACCOUNT_EXPIRED, - Your account has expired. + N_(Your account has expired. ) N_(Please contact your System administrator)}, /* SCNR */ {NT_STATUS_ACCOUNT_DISABLED, - Your account is disabled. + N_(Your account is disabled. ) N_(Please contact your System administrator)}, /* SCNR */ {NT_STATUS_ACCOUNT_LOCKED_OUT, - Your account has been locked. + N_(Your account has been locked. ) N_(Please contact your System administrator)}, /* SCNR */ {NT_STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT, N_(Invalid Trust Account)}, @@ -2400,7 +2400,7 @@ int pam_sm_close_session(pam_handle_t *pamh, int flags, ZERO_STRUCT(request); ZERO_STRUCT(response); - retval = pam_get_user(pamh, user, Username: ); + retval = pam_get_user(pamh, user, _(Username: )); if (retval) { _pam_log(ctx, LOG_ERR, could not identify user); @@ -2549,7 +2549,7 @@ int pam_sm_chauthtok(pam_handle_t * pamh, int flags, /* * First get the name of a user */ - ret = pam_get_user(pamh, user, Username: ); + ret = pam_get_user(pamh, user, _(Username: )); if (ret) { _pam_log(ctx, LOG_ERR, password - could not identify user); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - 540b2df874ff053bccd6ef6165476d5225f2ae16
The branch, master has been updated via 540b2df874ff053bccd6ef6165476d5225f2ae16 (commit) from a8722a190b65ddd4e6e958c6e8b28b268531d130 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 540b2df874ff053bccd6ef6165476d5225f2ae16 Author: Günther Deschner [EMAIL PROTECTED] Date: Thu Nov 13 14:44:14 2008 +0100 pam_winbind: translate some more string. boyang, please check. Guenther --- Summary of changes: source3/nsswitch/pam_winbind.c | 14 +++--- 1 files changed, 7 insertions(+), 7 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c index 2c46a0c..5ba4850 100644 --- a/source3/nsswitch/pam_winbind.c +++ b/source3/nsswitch/pam_winbind.c @@ -598,13 +598,13 @@ static const struct ntstatus_errors { {NT_STATUS_INVALID_LOGON_HOURS, N_(You are not allowed to logon at this time)}, {NT_STATUS_ACCOUNT_EXPIRED, - Your account has expired. + N_(Your account has expired. ) N_(Please contact your System administrator)}, /* SCNR */ {NT_STATUS_ACCOUNT_DISABLED, - Your account is disabled. + N_(Your account is disabled. ) N_(Please contact your System administrator)}, /* SCNR */ {NT_STATUS_ACCOUNT_LOCKED_OUT, - Your account has been locked. + N_(Your account has been locked. ) N_(Please contact your System administrator)}, /* SCNR */ {NT_STATUS_NOLOGON_WORKSTATION_TRUST_ACCOUNT, N_(Invalid Trust Account)}, @@ -1360,7 +1360,7 @@ static char *_pam_compose_pwd_restriction_string(struct pwb_context *ctx, if (i-min_length_password 0) { str = talloc_asprintf_append(str, - must be at least %d characters; , + _(must be at least %d characters; ), i-min_length_password); if (!str) { goto failed; @@ -1416,7 +1416,7 @@ static int _pam_create_homedir(struct pwb_context *ctx, if (mkdir(dirname, mode) != 0) { _make_remark_format(ctx, PAM_TEXT_INFO, - Creating directory: %s failed: %s, + _(Creating directory: %s failed: %s), dirname, strerror(errno)); _pam_log(ctx, LOG_ERR, could not create dir: %s (%s), dirname, strerror(errno)); @@ -2333,7 +2333,7 @@ static int _pam_delete_cred(pam_handle_t *pamh, int flags, const char *ccname = NULL; struct passwd *pwd = NULL; - retval = pam_get_user(pamh, user, Username: ); + retval = pam_get_user(pamh, user, _(Username: )); if (retval) { _pam_log(ctx, LOG_ERR, could not identify user); @@ -2878,7 +2878,7 @@ int pam_sm_chauthtok(pam_handle_t * pamh, int flags, /* * First get the name of a user */ - ret = pam_get_user(pamh, user, Username: ); + ret = pam_get_user(pamh, user, _(Username: )); if (ret) { _pam_log(ctx, LOG_ERR, password - could not identify user); -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - 6a61580617b0bd2cf46d4857dd0e87b3e48288f6
The branch, master has been updated via 6a61580617b0bd2cf46d4857dd0e87b3e48288f6 (commit) via 85dec6917184a024f9b76ea6f6654227e6457af3 (commit) from 540b2df874ff053bccd6ef6165476d5225f2ae16 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 6a61580617b0bd2cf46d4857dd0e87b3e48288f6 Author: Günther Deschner [EMAIL PROTECTED] Date: Thu Nov 13 17:19:11 2008 +0100 s3-winbindd: workaround for samr_ChangePasswordUser3 to User2 fallback for w2k dcs. Guenther commit 85dec6917184a024f9b76ea6f6654227e6457af3 Author: Günther Deschner [EMAIL PROTECTED] Date: Thu Nov 13 16:45:42 2008 +0100 pam_winbind: do not add empty blob. Guenther --- Summary of changes: source3/nsswitch/pam_winbind.c | 18 ++ source3/winbindd/winbindd_pam.c |6 ++ 2 files changed, 16 insertions(+), 8 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/nsswitch/pam_winbind.c b/source3/nsswitch/pam_winbind.c index 5ba4850..c164f8e 100644 --- a/source3/nsswitch/pam_winbind.c +++ b/source3/nsswitch/pam_winbind.c @@ -2369,14 +2369,16 @@ static int _pam_delete_cred(pam_handle_t *pamh, int flags, logoff.username = user; - wbc_status = wbcAddNamedBlob(logoff.num_blobs, -logoff.blobs, -ccfilename, -0, -(uint8_t *)ccname, -strlen(ccname)+1); - if (!WBC_ERROR_IS_OK(wbc_status)) { - goto out; + if (ccname) { + wbc_status = wbcAddNamedBlob(logoff.num_blobs, +logoff.blobs, +ccfilename, +0, +(uint8_t *)ccname, +strlen(ccname)+1); + if (!WBC_ERROR_IS_OK(wbc_status)) { + goto out; + } } wbc_status = wbcAddNamedBlob(logoff.num_blobs, diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c index 7de28b0..597d48a 100644 --- a/source3/winbindd/winbindd_pam.c +++ b/source3/winbindd/winbindd_pam.c @@ -2117,9 +2117,15 @@ enum winbindd_result winbindd_dual_pam_chauthtok(struct winbindd_domain *contact got_info = true; } + /* atm the pidl generated rpccli_samr_ChangePasswordUser3 function will +* return with NT_STATUS_BUFFER_TOO_SMALL for w2k dcs as w2k just +* returns with 4byte error code (NT_STATUS_NOT_SUPPORTED) which is too +* short to comply with the samr_ChangePasswordUser3 idl - gd */ + /* only fallback when the chgpasswd_user3 call is not supported */ if ((NT_STATUS_EQUAL(result, NT_STATUS(DCERPC_FAULT_OP_RNG_ERROR))) || (NT_STATUS_EQUAL(result, NT_STATUS_NOT_SUPPORTED)) || + (NT_STATUS_EQUAL(result, NT_STATUS_BUFFER_TOO_SMALL)) || (NT_STATUS_EQUAL(result, NT_STATUS_NOT_IMPLEMENTED))) { DEBUG(10,(Password change with chgpasswd_user3 failed with: %s, retrying chgpasswd_user2\n, -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - 9f1ee827d5a9dff85cb160b1ad4c16583f55b327
The branch, master has been updated via 9f1ee827d5a9dff85cb160b1ad4c16583f55b327 (commit) from 6a61580617b0bd2cf46d4857dd0e87b3e48288f6 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 9f1ee827d5a9dff85cb160b1ad4c16583f55b327 Author: Günther Deschner [EMAIL PROTECTED] Date: Thu Nov 13 16:44:28 2008 +0100 pam_winbind: add german de.po file. germans, please have a look if this can actually be understood by germans. Guenther --- Summary of changes: source3/locale/pam_winbind/de.po | 186 ++ 1 files changed, 186 insertions(+), 0 deletions(-) create mode 100644 source3/locale/pam_winbind/de.po Changeset truncated at 500 lines: diff --git a/source3/locale/pam_winbind/de.po b/source3/locale/pam_winbind/de.po new file mode 100644 index 000..1d6a902 --- /dev/null +++ b/source3/locale/pam_winbind/de.po @@ -0,0 +1,186 @@ +# pam_winbind message translations (german) +# Copyright (C) 2008 Guenther Deschner [EMAIL PROTECTED] +# This file is distributed under the same license as the pam_winbind package. +# +#, fuzzy +msgid +msgstr +Project-Id-Version: @[EMAIL PROTECTED] +Report-Msgid-Bugs-To: \n +POT-Creation-Date: 2008-11-13 17:21+0100\n +PO-Revision-Date: 2008-11-13 14:29+0100\n +Last-Translator: Guenther Deschner [EMAIL PROTECTED]\n +MIME-Version: 1.0\n +Content-Type: text/plain; charset=UTF-8\n +Content-Transfer-Encoding: 8bit\n +Plural-Forms: nplurals=2; plural=(n != 1);\n + +#: ../../nsswitch/pam_winbind.c:579 +msgid Success +msgstr Erfolgreich + +#: ../../nsswitch/pam_winbind.c:581 +msgid No primary Domain Controler available +msgstr Kein primärer Domänen-Controller verfügbar + +#: ../../nsswitch/pam_winbind.c:583 +msgid No domain controllers found +msgstr Keine Domänen-Controller gefunden + +#: ../../nsswitch/pam_winbind.c:585 +msgid No logon servers +msgstr Keine Anmeldeserver verfügbar + +#: ../../nsswitch/pam_winbind.c:587 +msgid Password too short +msgstr Passwort ist zu kurz + +#: ../../nsswitch/pam_winbind.c:589 +msgid The password of this user is too recent to change +msgstr Das Passwort des Benutzers kann noch nicht erneut geändert werden + +#: ../../nsswitch/pam_winbind.c:591 +msgid Password is already in password history +msgstr Das neue Passwort ist bereits in der Passwort-Historie enthalten + +#: ../../nsswitch/pam_winbind.c:593 +msgid Your password has expired +msgstr Ihr Passwort ist abgelaufen + +#: ../../nsswitch/pam_winbind.c:595 +msgid You need to change your password now +msgstr Sie müÃen Ihr Passwort unmittelbar ändern + +#: ../../nsswitch/pam_winbind.c:597 +msgid You are not allowed to logon from this workstation +msgstr Sie können sich nicht von diesem Arbeitsplatz aus anmelden + +#: ../../nsswitch/pam_winbind.c:599 +msgid You are not allowed to logon at this time +msgstr Sie können sich zum jetzigen Zeitpunkt nicht anmelden + +#: ../../nsswitch/pam_winbind.c:601 +#, fuzzy +msgid Your account has expired. +msgstr Ihr Passwort ist abgelaufen + +#: ../../nsswitch/pam_winbind.c:602 ../../nsswitch/pam_winbind.c:605 ../../nsswitch/pam_winbind.c:608 +msgid Please contact your System administrator +msgstr Bitte kontaktieren Sie ihren System-Administrator + +#: ../../nsswitch/pam_winbind.c:604 +msgid Your account is disabled. +msgstr Ihr Account ist deaktiviert. + +#: ../../nsswitch/pam_winbind.c:607 +msgid Your account has been locked. +msgstr Ihr Account wurde gesperrt. + +#: ../../nsswitch/pam_winbind.c:610 ../../nsswitch/pam_winbind.c:612 ../../nsswitch/pam_winbind.c:614 +msgid Invalid Trust Account +msgstr Ungültiger Maschinen-Account + +#: ../../nsswitch/pam_winbind.c:616 +msgid Access is denied +msgstr Zugriff verweigert + +#: ../../nsswitch/pam_winbind.c:854 +msgid Your password expires today +msgstr Ihr Passwort läuft heute ab + +#: ../../nsswitch/pam_winbind.c:860 +#, c-format +msgid Your password will expire in %d %s +msgstr Ihr Passwort wird in %d %s ungültig + +#: ../../nsswitch/pam_winbind.c:861 +msgid days +msgstr Tagen + +#: ../../nsswitch/pam_winbind.c:861 +msgid day +msgstr Tag + +#: ../../nsswitch/pam_winbind.c:1253 +msgid Grace login. Please change your password as soon you're online again +msgstr + +#: ../../nsswitch/pam_winbind.c:1263 +msgid Domain Controller unreachable, using cached credentials instead. Network resources may be unavailable +msgstr Domänen-Controller unerreichbar. Anmeldung erfolgte mit gespeicherten Anmeldedaten. Netzwerk Ressourcen können momentan nicht verfügbar sein + +#: ../../nsswitch/pam_winbind.c:1288 +msgid +Failed to establish your Kerberos Ticket cache due time differences\n +with the domain controller. Please verify the system time.\n +msgstr +Anforderung eines Kerberos Tickets aufgrund Zeitunterscheid zum \n +Domänen-Controller fehlgeschlagen. Bitte überprüfen
[SCM] Samba Shared Repository - branch master updated - b0107f74a24ca9387f28968bbd21f3da3316e59f
The branch, master has been updated via b0107f74a24ca9387f28968bbd21f3da3316e59f (commit) from 9f1ee827d5a9dff85cb160b1ad4c16583f55b327 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit b0107f74a24ca9387f28968bbd21f3da3316e59f Author: Volker Lendecke [EMAIL PROTECTED] Date: Thu Nov 13 17:46:36 2008 +0100 fix typo --- Summary of changes: source3/locale/pam_winbind/de.po |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/locale/pam_winbind/de.po b/source3/locale/pam_winbind/de.po index 1d6a902..642d9d3 100644 --- a/source3/locale/pam_winbind/de.po +++ b/source3/locale/pam_winbind/de.po @@ -49,7 +49,7 @@ msgstr Ihr Passwort ist abgelaufen #: ../../nsswitch/pam_winbind.c:595 msgid You need to change your password now -msgstr Sie müÃen Ihr Passwort unmittelbar ändern +msgstr Sie müssen Ihr Passwort unmittelbar ändern #: ../../nsswitch/pam_winbind.c:597 msgid You are not allowed to logon from this workstation -- Samba Shared Repository
[SCM] Samba Shared Repository - branch master updated - e76e77c32d8fe999604939d43589b8f441daed43
The branch, master has been updated via e76e77c32d8fe999604939d43589b8f441daed43 (commit) from b0107f74a24ca9387f28968bbd21f3da3316e59f (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit e76e77c32d8fe999604939d43589b8f441daed43 Author: Günther Deschner [EMAIL PROTECTED] Date: Thu Nov 13 19:42:13 2008 +0100 s3-svctl-server: fix remote rpc service management (bug #5888). Don't TALLOC_FREE a non-talloced [ref] pointer. Guenther --- Summary of changes: source3/rpc_server/srv_svcctl_nt.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source3/rpc_server/srv_svcctl_nt.c b/source3/rpc_server/srv_svcctl_nt.c index cb66574..4beab64 100644 --- a/source3/rpc_server/srv_svcctl_nt.c +++ b/source3/rpc_server/srv_svcctl_nt.c @@ -690,7 +690,7 @@ WERROR _svcctl_QueryServiceConfigW(pipes_struct *p, *r-out.bytes_needed = (buffer_size r-in.buf_size) ? buffer_size : r-in.buf_size; if (buffer_size r-in.buf_size ) { - TALLOC_FREE(r-out.query); + ZERO_STRUCTP(r-out.query); return WERR_INSUFFICIENT_BUFFER; } -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4365-g4beb7d7
The branch, v3-3-test has been updated via 4beb7d74597f7e485b3832560b26e681439b606a (commit) from 3310deac11bb579ba364dabd59e149fdd68360ed (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log - commit 4beb7d74597f7e485b3832560b26e681439b606a Author: Jeremy Allison [EMAIL PROTECTED] Date: Thu Nov 13 11:51:19 2008 -0800 Fix the build (hangs head in shame :-). Jeremy. --- Summary of changes: source/smbd/nttrans.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) Changeset truncated at 500 lines: diff --git a/source/smbd/nttrans.c b/source/smbd/nttrans.c index b4f1c34..ecc0b6b 100644 --- a/source/smbd/nttrans.c +++ b/source/smbd/nttrans.c @@ -1614,7 +1614,7 @@ static void call_nt_transact_query_security_desc(connection_struct *conn, DEBUG(3,(call_nt_transact_query_security_desc: sd_size = %lu.\n,(unsigned long)sd_size)); if (DEBUGLEVEL = 10) { - DEBUG(10,(call_nt_transact_query_security_desc for file %s\n, fsp-fsp_name ) + DEBUG(10,(call_nt_transact_query_security_desc for file %s\n, fsp-fsp_name )); NDR_PRINT_DEBUG(security_descriptor, psd); } -- Samba Shared Repository
[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4367-g86deff8
The branch, v3-3-test has been updated via 86deff8d6e6b8e094b15a4e5392098d9b23e5ff5 (commit) via 111ec984729fe2c47e173dab82f438bcacf42d1c (commit) from 4beb7d74597f7e485b3832560b26e681439b606a (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log - commit 86deff8d6e6b8e094b15a4e5392098d9b23e5ff5 Author: Günther Deschner [EMAIL PROTECTED] Date: Thu Nov 13 21:11:12 2008 +0100 re-run make idl. Guenther commit 111ec984729fe2c47e173dab82f438bcacf42d1c Author: Günther Deschner [EMAIL PROTECTED] Date: Thu Nov 13 21:11:31 2008 +0100 Fix PNP_GetHwProfInfo() (fixes Bug: #5888). Guenther --- Summary of changes: source/librpc/gen_ndr/cli_ntsvcs.c |8 +++--- source/librpc/gen_ndr/cli_ntsvcs.h |4 +- source/librpc/gen_ndr/ndr_ntsvcs.c | 46 ++-- source/librpc/gen_ndr/ntsvcs.h | 10 source/librpc/idl/ntsvcs.idl | 10 5 files changed, 39 insertions(+), 39 deletions(-) Changeset truncated at 500 lines: diff --git a/source/librpc/gen_ndr/cli_ntsvcs.c b/source/librpc/gen_ndr/cli_ntsvcs.c index bc5dba4..4b86923 100644 --- a/source/librpc/gen_ndr/cli_ntsvcs.c +++ b/source/librpc/gen_ndr/cli_ntsvcs.c @@ -1744,8 +1744,8 @@ NTSTATUS rpccli_PNP_GetHwProfInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t idx /* [in] */, struct PNP_HwProfInfo *info /* [in,out] [ref] */, - uint32_t unknown1 /* [in] */, - uint32_t unknown2 /* [in] */, + uint32_t size /* [in] */, + uint32_t flags /* [in] */, WERROR *werror) { struct PNP_GetHwProfInfo r; @@ -1754,8 +1754,8 @@ NTSTATUS rpccli_PNP_GetHwProfInfo(struct rpc_pipe_client *cli, /* In parameters */ r.in.idx = idx; r.in.info = info; - r.in.unknown1 = unknown1; - r.in.unknown2 = unknown2; + r.in.size = size; + r.in.flags = flags; if (DEBUGLEVEL = 10) { NDR_PRINT_IN_DEBUG(PNP_GetHwProfInfo, r); diff --git a/source/librpc/gen_ndr/cli_ntsvcs.h b/source/librpc/gen_ndr/cli_ntsvcs.h index a52a79e..e8f393f 100644 --- a/source/librpc/gen_ndr/cli_ntsvcs.h +++ b/source/librpc/gen_ndr/cli_ntsvcs.h @@ -150,8 +150,8 @@ NTSTATUS rpccli_PNP_GetHwProfInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t idx /* [in] */, struct PNP_HwProfInfo *info /* [in,out] [ref] */, - uint32_t unknown1 /* [in] */, - uint32_t unknown2 /* [in] */, + uint32_t size /* [in] */, + uint32_t flags /* [in] */, WERROR *werror); NTSTATUS rpccli_PNP_AddEmptyLogConf(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, diff --git a/source/librpc/gen_ndr/ndr_ntsvcs.c b/source/librpc/gen_ndr/ndr_ntsvcs.c index 62acf47..6502970 100644 --- a/source/librpc/gen_ndr/ndr_ntsvcs.c +++ b/source/librpc/gen_ndr/ndr_ntsvcs.c @@ -5,14 +5,14 @@ static enum ndr_err_code ndr_push_PNP_HwProfInfo(struct ndr_push *ndr, int ndr_flags, const struct PNP_HwProfInfo *r) { - uint32_t cntr_unknown2_0; + uint32_t cntr_friendly_name_0; if (ndr_flags NDR_SCALARS) { NDR_CHECK(ndr_push_align(ndr, 4)); - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r-unknown1)); - for (cntr_unknown2_0 = 0; cntr_unknown2_0 160; cntr_unknown2_0++) { - NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r-unknown2[cntr_unknown2_0])); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r-profile_handle)); + for (cntr_friendly_name_0 = 0; cntr_friendly_name_0 80; cntr_friendly_name_0++) { + NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r-friendly_name[cntr_friendly_name_0])); } - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r-unknown3)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r-flags)); } if (ndr_flags NDR_BUFFERS) { } @@ -21,14 +21,14 @@ static enum ndr_err_code ndr_push_PNP_HwProfInfo(struct ndr_push *ndr, int ndr_f static enum ndr_err_code ndr_pull_PNP_HwProfInfo(struct ndr_pull *ndr, int ndr_flags, struct PNP_HwProfInfo *r) { - uint32_t cntr_unknown2_0; + uint32_t cntr_friendly_name_0; if (ndr_flags NDR_SCALARS) { NDR_CHECK(ndr_pull_align(ndr, 4)); -
[SCM] Samba Shared Repository - branch v3-2-test updated - release-3-2-0pre2-3142-gb04a400
The branch, v3-2-test has been updated via b04a4001813cf0427539a52b0abd2e9a1fa1e5eb (commit) via 420b68ae51df5b407b7a87033084d41433ef3267 (commit) from 5ac6671cb24d8677b0db0508e85a6038baa9d54b (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test - Log - commit b04a4001813cf0427539a52b0abd2e9a1fa1e5eb Author: Günther Deschner [EMAIL PROTECTED] Date: Thu Nov 13 21:11:12 2008 +0100 re-run make idl. Guenther (cherry picked from commit 86deff8d6e6b8e094b15a4e5392098d9b23e5ff5) commit 420b68ae51df5b407b7a87033084d41433ef3267 Author: Günther Deschner [EMAIL PROTECTED] Date: Thu Nov 13 21:11:31 2008 +0100 Fix PNP_GetHwProfInfo() (fixes Bug: #5888). Guenther (cherry picked from commit 111ec984729fe2c47e173dab82f438bcacf42d1c) --- Summary of changes: source/librpc/gen_ndr/cli_ntsvcs.c |8 +++--- source/librpc/gen_ndr/cli_ntsvcs.h |4 +- source/librpc/gen_ndr/ndr_ntsvcs.c | 46 ++-- source/librpc/gen_ndr/ntsvcs.h | 10 source/librpc/idl/ntsvcs.idl | 10 5 files changed, 39 insertions(+), 39 deletions(-) Changeset truncated at 500 lines: diff --git a/source/librpc/gen_ndr/cli_ntsvcs.c b/source/librpc/gen_ndr/cli_ntsvcs.c index 615cdb6..6beb8eb 100644 --- a/source/librpc/gen_ndr/cli_ntsvcs.c +++ b/source/librpc/gen_ndr/cli_ntsvcs.c @@ -1768,8 +1768,8 @@ NTSTATUS rpccli_PNP_GetHwProfInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t idx /* [in] */, struct PNP_HwProfInfo *info /* [in,out] [ref] */, - uint32_t unknown1 /* [in] */, - uint32_t unknown2 /* [in] */, + uint32_t size /* [in] */, + uint32_t flags /* [in] */, WERROR *werror) { struct PNP_GetHwProfInfo r; @@ -1778,8 +1778,8 @@ NTSTATUS rpccli_PNP_GetHwProfInfo(struct rpc_pipe_client *cli, /* In parameters */ r.in.idx = idx; r.in.info = info; - r.in.unknown1 = unknown1; - r.in.unknown2 = unknown2; + r.in.size = size; + r.in.flags = flags; if (DEBUGLEVEL = 10) { NDR_PRINT_IN_DEBUG(PNP_GetHwProfInfo, r); diff --git a/source/librpc/gen_ndr/cli_ntsvcs.h b/source/librpc/gen_ndr/cli_ntsvcs.h index c20673f..93901e7 100644 --- a/source/librpc/gen_ndr/cli_ntsvcs.h +++ b/source/librpc/gen_ndr/cli_ntsvcs.h @@ -143,8 +143,8 @@ NTSTATUS rpccli_PNP_GetHwProfInfo(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, uint32_t idx /* [in] */, struct PNP_HwProfInfo *info /* [in,out] [ref] */, - uint32_t unknown1 /* [in] */, - uint32_t unknown2 /* [in] */, + uint32_t size /* [in] */, + uint32_t flags /* [in] */, WERROR *werror); NTSTATUS rpccli_PNP_AddEmptyLogConf(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, diff --git a/source/librpc/gen_ndr/ndr_ntsvcs.c b/source/librpc/gen_ndr/ndr_ntsvcs.c index 1ed4afb..77b418d 100644 --- a/source/librpc/gen_ndr/ndr_ntsvcs.c +++ b/source/librpc/gen_ndr/ndr_ntsvcs.c @@ -5,14 +5,14 @@ static enum ndr_err_code ndr_push_PNP_HwProfInfo(struct ndr_push *ndr, int ndr_flags, const struct PNP_HwProfInfo *r) { - uint32_t cntr_unknown2_0; + uint32_t cntr_friendly_name_0; if (ndr_flags NDR_SCALARS) { NDR_CHECK(ndr_push_align(ndr, 4)); - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r-unknown1)); - for (cntr_unknown2_0 = 0; cntr_unknown2_0 160; cntr_unknown2_0++) { - NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r-unknown2[cntr_unknown2_0])); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r-profile_handle)); + for (cntr_friendly_name_0 = 0; cntr_friendly_name_0 80; cntr_friendly_name_0++) { + NDR_CHECK(ndr_push_uint16(ndr, NDR_SCALARS, r-friendly_name[cntr_friendly_name_0])); } - NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r-unknown3)); + NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, r-flags)); } if (ndr_flags NDR_BUFFERS) { } @@ -21,14 +21,14 @@ static enum ndr_err_code ndr_push_PNP_HwProfInfo(struct ndr_push *ndr, int ndr_f static enum ndr_err_code ndr_pull_PNP_HwProfInfo(struct ndr_pull *ndr, int ndr_flags, struct PNP_HwProfInfo *r) { - uint32_t cntr_unknown2_0; + uint32_t
Build status as of Fri Nov 14 00:00:01 2008
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2008-11-13 00:01:03.0 + +++ /home/build/master/cache/broken_results.txt 2008-11-14 00:00:58.0 + @@ -1,23 +1,23 @@ -Build status as of Thu Nov 13 00:00:02 2008 +Build status as of Fri Nov 14 00:00:01 2008 Build counts: Tree Total Broken Panic build_farm 0 0 0 -ccache 31 7 0 +ccache 33 7 0 ctdb 0 0 0 distcc 1 0 0 -ldb 32 31 0 -libreplace 31 12 0 -lorikeet-heimdal 28 20 0 -pidl 18 2 0 -ppp 12 12 0 -rsync32 11 0 +ldb 33 32 0 +libreplace 32 13 0 +lorikeet-heimdal 29 20 0 +pidl 19 2 0 +ppp 13 13 0 +rsync33 11 0 samba-docs 0 0 0 samba-gtk5 5 0 -samba_3_X_devel 28 18 1 -samba_3_X_test 28 18 0 -samba_4_0_test 30 27 2 -smb-build30 6 0 -talloc 32 31 0 -tdb 32 12 0 +samba_3_X_devel 29 19 1 +samba_3_X_test 29 17 0 +samba_4_0_test 31 28 1 +smb-build30 7 0 +talloc 33 32 0 +tdb 33 12 0
[SCM] Samba Shared Repository - branch v3-3-test updated - release-3-2-0pre2-4368-g9393c99
The branch, v3-3-test has been updated via 9393c99a834724d66b027e73adaa82cfedb97185 (commit) from 86deff8d6e6b8e094b15a4e5392098d9b23e5ff5 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test - Log - commit 9393c99a834724d66b027e73adaa82cfedb97185 Author: Jeremy Allison [EMAIL PROTECTED] Date: Thu Nov 13 17:18:06 2008 -0800 Move v2 from timestamp to 16-byte hash. Got the change in before on disk format is fixed. Jeremy. --- Summary of changes: source/librpc/gen_ndr/ndr_xattr.c | 48 ++-- source/librpc/gen_ndr/ndr_xattr.h |6 ++-- source/librpc/gen_ndr/xattr.h |6 ++-- source/librpc/idl/xattr.idl | 10 source/modules/vfs_acl_tdb.c | 30 +++--- source/modules/vfs_acl_xattr.c| 30 +++--- 6 files changed, 55 insertions(+), 75 deletions(-) Changeset truncated at 500 lines: diff --git a/source/librpc/gen_ndr/ndr_xattr.c b/source/librpc/gen_ndr/ndr_xattr.c index 9236983..2574716 100644 --- a/source/librpc/gen_ndr/ndr_xattr.c +++ b/source/librpc/gen_ndr/ndr_xattr.c @@ -100,12 +100,12 @@ _PUBLIC_ void ndr_print_tdb_xattrs(struct ndr_print *ndr, const char *name, cons ndr-depth--; } -_PUBLIC_ enum ndr_err_code ndr_push_security_descriptor_timestamp(struct ndr_push *ndr, int ndr_flags, const struct security_descriptor_timestamp *r) +_PUBLIC_ enum ndr_err_code ndr_push_security_descriptor_hash(struct ndr_push *ndr, int ndr_flags, const struct security_descriptor_hash *r) { if (ndr_flags NDR_SCALARS) { NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_unique_ptr(ndr, r-sd)); - NDR_CHECK(ndr_push_NTTIME(ndr, NDR_SCALARS, r-last_changed)); + NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r-hash, 16)); } if (ndr_flags NDR_BUFFERS) { if (r-sd) { @@ -115,7 +115,7 @@ _PUBLIC_ enum ndr_err_code ndr_push_security_descriptor_timestamp(struct ndr_pus return NDR_ERR_SUCCESS; } -_PUBLIC_ enum ndr_err_code ndr_pull_security_descriptor_timestamp(struct ndr_pull *ndr, int ndr_flags, struct security_descriptor_timestamp *r) +_PUBLIC_ enum ndr_err_code ndr_pull_security_descriptor_hash(struct ndr_pull *ndr, int ndr_flags, struct security_descriptor_hash *r) { uint32_t _ptr_sd; TALLOC_CTX *_mem_save_sd_0; @@ -127,7 +127,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_security_descriptor_timestamp(struct ndr_pul } else { r-sd = NULL; } - NDR_CHECK(ndr_pull_NTTIME(ndr, NDR_SCALARS, r-last_changed)); + NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r-hash, 16)); } if (ndr_flags NDR_BUFFERS) { if (r-sd) { @@ -140,9 +140,9 @@ _PUBLIC_ enum ndr_err_code ndr_pull_security_descriptor_timestamp(struct ndr_pul return NDR_ERR_SUCCESS; } -_PUBLIC_ void ndr_print_security_descriptor_timestamp(struct ndr_print *ndr, const char *name, const struct security_descriptor_timestamp *r) +_PUBLIC_ void ndr_print_security_descriptor_hash(struct ndr_print *ndr, const char *name, const struct security_descriptor_hash *r) { - ndr_print_struct(ndr, name, security_descriptor_timestamp); + ndr_print_struct(ndr, name, security_descriptor_hash); ndr-depth++; ndr_print_ptr(ndr, sd, r-sd); ndr-depth++; @@ -150,7 +150,7 @@ _PUBLIC_ void ndr_print_security_descriptor_timestamp(struct ndr_print *ndr, con ndr_print_security_descriptor(ndr, sd, r-sd); } ndr-depth--; - ndr_print_NTTIME(ndr, last_changed, r-last_changed); + ndr_print_array_uint8(ndr, hash, r-hash, 16); ndr-depth--; } @@ -165,7 +165,7 @@ static enum ndr_err_code ndr_push_xattr_NTACL_Info(struct ndr_push *ndr, int ndr break; } case 2: { - NDR_CHECK(ndr_push_unique_ptr(ndr, r-sd_ts)); + NDR_CHECK(ndr_push_unique_ptr(ndr, r-sd_hs)); break; } default: @@ -182,8 +182,8 @@ static enum ndr_err_code ndr_push_xattr_NTACL_Info(struct ndr_push *ndr, int ndr break; case 2: - if (r-sd_ts) { - NDR_CHECK(ndr_push_security_descriptor_timestamp(ndr, NDR_SCALARS|NDR_BUFFERS, r-sd_ts)); + if (r-sd_hs) { + NDR_CHECK(ndr_push_security_descriptor_hash(ndr, NDR_SCALARS|NDR_BUFFERS, r-sd_hs)); } break; @@ -199,7 +199,7 @@ static enum ndr_err_code
[SCM] Samba Shared Repository - branch master updated - 4c7033df5da52bded995f3e4cccd0b78bf55a74f
The branch, master has been updated via 4c7033df5da52bded995f3e4cccd0b78bf55a74f (commit) from e76e77c32d8fe999604939d43589b8f441daed43 (commit) http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master - Log - commit 4c7033df5da52bded995f3e4cccd0b78bf55a74f Author: Jeremy Allison [EMAIL PROTECTED] Date: Thu Nov 13 17:18:41 2008 -0800 Move v2 from timestamp to 16-byte hash. Got the change in before on disk format is fixed. Jeremy. --- Summary of changes: librpc/idl/xattr.idl | 10 +++--- source3/librpc/gen_ndr/ndr_xattr.c | 48 ++-- source3/librpc/gen_ndr/ndr_xattr.h |6 ++-- source3/librpc/gen_ndr/xattr.h |6 ++-- source3/modules/vfs_acl_tdb.c | 30 +++--- source3/modules/vfs_acl_xattr.c| 30 +++--- 6 files changed, 55 insertions(+), 75 deletions(-) Changeset truncated at 500 lines: diff --git a/librpc/idl/xattr.idl b/librpc/idl/xattr.idl index c1af479..4191ea6 100644 --- a/librpc/idl/xattr.idl +++ b/librpc/idl/xattr.idl @@ -117,20 +117,20 @@ interface xattr stored in security.NTACL Version 1. raw SD stored as Samba4 does it. - Version 2. raw SD + last changed timestamp so we - can discard if this doesn't match the POSIX st_ctime. + Version 2. raw SD + last changed hash so we + can discard if this doesn't match the underlying ACL hash. */ const char *XATTR_NTACL_NAME = security.NTACL; typedef [public] struct { security_descriptor *sd; - NTTIME last_changed; - } security_descriptor_timestamp; + uint8 hash[16]; + } security_descriptor_hash; typedef [switch_type(uint16)] union { [case(1)] security_descriptor *sd; - [case(2)] security_descriptor_timestamp *sd_ts; + [case(2)] security_descriptor_hash *sd_hs; } xattr_NTACL_Info; typedef [public] struct { diff --git a/source3/librpc/gen_ndr/ndr_xattr.c b/source3/librpc/gen_ndr/ndr_xattr.c index 0e9dda9..75781d7 100644 --- a/source3/librpc/gen_ndr/ndr_xattr.c +++ b/source3/librpc/gen_ndr/ndr_xattr.c @@ -546,12 +546,12 @@ _PUBLIC_ void ndr_print_xattr_DosStreams(struct ndr_print *ndr, const char *name ndr-depth--; } -_PUBLIC_ enum ndr_err_code ndr_push_security_descriptor_timestamp(struct ndr_push *ndr, int ndr_flags, const struct security_descriptor_timestamp *r) +_PUBLIC_ enum ndr_err_code ndr_push_security_descriptor_hash(struct ndr_push *ndr, int ndr_flags, const struct security_descriptor_hash *r) { if (ndr_flags NDR_SCALARS) { NDR_CHECK(ndr_push_align(ndr, 4)); NDR_CHECK(ndr_push_unique_ptr(ndr, r-sd)); - NDR_CHECK(ndr_push_NTTIME(ndr, NDR_SCALARS, r-last_changed)); + NDR_CHECK(ndr_push_array_uint8(ndr, NDR_SCALARS, r-hash, 16)); } if (ndr_flags NDR_BUFFERS) { if (r-sd) { @@ -561,7 +561,7 @@ _PUBLIC_ enum ndr_err_code ndr_push_security_descriptor_timestamp(struct ndr_pus return NDR_ERR_SUCCESS; } -_PUBLIC_ enum ndr_err_code ndr_pull_security_descriptor_timestamp(struct ndr_pull *ndr, int ndr_flags, struct security_descriptor_timestamp *r) +_PUBLIC_ enum ndr_err_code ndr_pull_security_descriptor_hash(struct ndr_pull *ndr, int ndr_flags, struct security_descriptor_hash *r) { uint32_t _ptr_sd; TALLOC_CTX *_mem_save_sd_0; @@ -573,7 +573,7 @@ _PUBLIC_ enum ndr_err_code ndr_pull_security_descriptor_timestamp(struct ndr_pul } else { r-sd = NULL; } - NDR_CHECK(ndr_pull_NTTIME(ndr, NDR_SCALARS, r-last_changed)); + NDR_CHECK(ndr_pull_array_uint8(ndr, NDR_SCALARS, r-hash, 16)); } if (ndr_flags NDR_BUFFERS) { if (r-sd) { @@ -586,9 +586,9 @@ _PUBLIC_ enum ndr_err_code ndr_pull_security_descriptor_timestamp(struct ndr_pul return NDR_ERR_SUCCESS; } -_PUBLIC_ void ndr_print_security_descriptor_timestamp(struct ndr_print *ndr, const char *name, const struct security_descriptor_timestamp *r) +_PUBLIC_ void ndr_print_security_descriptor_hash(struct ndr_print *ndr, const char *name, const struct security_descriptor_hash *r) { - ndr_print_struct(ndr, name, security_descriptor_timestamp); + ndr_print_struct(ndr, name, security_descriptor_hash); ndr-depth++; ndr_print_ptr(ndr, sd, r-sd); ndr-depth++; @@ -596,7 +596,7 @@ _PUBLIC_ void ndr_print_security_descriptor_timestamp(struct ndr_print *ndr, con ndr_print_security_descriptor(ndr, sd, r-sd); } ndr-depth--; - ndr_print_NTTIME(ndr, last_changed, r-last_changed); +