[Samba] Samba 3 Trusting Win200x Server
Hi there, My setup: Domain A(DomA): Win2000ServerSP4 as Domain Controller (PDC) Domain B(DomB): Samba 3.0.14a with openldap 2.1.30 as Role Domain PDC Where Domain B trusting Domain A ( ie. DomA\user can log on to PC from DomB ) Worked fine on pulling user/group info from DomA by Wbinfo -u, wbinfo-g and network sharing was OK. This setup has been using for year without any problem until a Win2k3 server is introduced onto DomA as additional DCs. Problem: All of the users in DomA are no longer be authenicated on the PCs from DomB which saying a incorrect username/password. Wbinfo -u ( wbinfo -g) -- Error looking up domain users wbinfo -t -- checking the trust secret via RPC calls failed error code was (0x0) Could not check secret Wbinfo -m -- DomA is shown wbinfo --sequence --DomA : DISCONNECTED BUILTIN : 1 DomB : 1 From the log: Log.winbindd keeps generating this: [2005/07/25 15:33:05, 5] nsswitch/winbindd_user.c:getpwnam_name2sid_recv(374) Could not lookup name for user SOMEONE Action: Checked with the trust setting on DomA -- OK Checked on DomB -- net rpc trustdom list shows DomA under Trusting domain Remove DomA$ from openldap, delete the trust ( net rpc trustdom del DomA) Re-establish the trust as stated from the How-To, the trust is established but no luck My QUESTION: Please help! Simon -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Winbind and AD issues
Hello, I've been working on integrating a Fedora Core 2 box into Active Directory over the weekend.. it's a file server running Samba. I seem to have partial success but it isn't really working how I want it to and maybe some clever person here can see the problem. I've joined it to the AD and I see the computer account in there.. Kerberos seems to work: *** [EMAIL PROTECTED] test]# kinit administrator Password for [EMAIL PROTECTED]: [EMAIL PROTECTED] test]# klist Ticket cache: FILE:/tmp/krb5cc_0 Default principal: [EMAIL PROTECTED] Valid starting ExpiresService principal 07/25/05 06:30:19 07/25/05 16:32:49 krbtgt/[EMAIL PROTECTED] renew until 07/26/05 06:30:19 Kerberos 4 ticket cache: /tmp/tkt0 klist: You have no tickets cached I can see users in wbinfo * wbinfo -u [snip] EWNS+scott.forsyth EWNS+laurence.hunnex EWNS+kristina.dolman [snip] wbinfo -g [snip] EWNS+EIG-LON1-Vodafone EWNS+EIG-PAR1-WLAN EWNS+EIG-PAR1-TeamParis [snip] *** and getent shows me users and groups from the domain. /etc/nsswitch.conf has winbind listed after files for passwd shadow and group. chowning files to users works in a fashion. *** [EMAIL PROTECTED] test]# chown EWNS+chris.park foo [EMAIL PROTECTED] test]# chgrp EWNS+EIG-NYC1-Admins foo chgrp: invalid group name `EWNS+EIG-NYC1-Admins' but chgrp doesn't work... this is my major problem. My other problem is having to prefix the domain name (EWNS) to the usernames - I should be able to get around this with use default domain = yes in smb.conf but if I do that it doesn't resolve user names at all. nscd is disabled. Any thoughts? my smb.conf is attached Thanks ~sm # This is the main Samba configuration file. You should read the # smb.conf(5) manual page in order to understand the options listed # here. Samba has a huge number of configurable options (perhaps too # many!) most of which are not shown in this example # # Any line which starts with a ; (semi-colon) or a # (hash) # is a comment and is ignored. In this example we will use a # # for commentry and a ; for parts of the config file that you # may wish to enable # # NOTE: Whenever you modify this file you should run the command testparm # to check that you have not made any basic syntactic errors. # #=== Global Settings = [global] # workgroup = NT-Domain-Name or Workgroup-Name workgroup = EWNS # server string is the equivalent of the NT Description field server string = File Server netbios name = NYC1LINUX01 # This option is important for security. It allows you to restrict # connections to machines which are on your local network. The # following example restricts access to two C class networks and # the loopback interface. For more examples of the syntax see # the smb.conf man page ; hosts allow = 192.168.1. 192.168.2. 127. # if you want to automatically load your printer list rather # than setting them up individually then you'll need this printcap name = /etc/printcap load printers = yes # It should not be necessary to spell out the print system type unless # yours is non-standard. Currently supported print systems include: # bsd, sysv, plp, lprng, aix, hpux, qnx ; printing = bsd # Uncomment this if you want a guest account, you must add this to /etc/passwd # otherwise the user nobody is used ; guest account = pcguest # this tells Samba to use a separate log file for each machine # that connects # log file = /var/log/samba/%m.log #log level = 10 passdb:5 auth:10 winbind:3 # all log information in one file log file = /var/log/samba/smbd.log # Put a capping on the size of the log files (in Kb). max log size = 50 # Security mode. Most people will want user level security. See # security_level.txt for details. security = ads # Use password server option only with security = server password server = nyc1dc01.ewns.net nyc1dc01.ewns.net # Password Level allows matching of _n_ characters of the password for # all combinations of upper and lower case. password level = 8 username level = 8 # You may wish to use password encryption. Please read # ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation. # Do not enable this option unless you have read those documents ; encrypt passwords = yes ; smb passwd file = /etc/samba/smbpasswd # The following are needed to allow password changing from Windows to # update the Linux system password also. # NOTE: Use these with 'encrypt passwords' and 'smb passwd file' above. # NOTE2: You do NOT need these to allow workstations to change only #the encrypted SMB passwords. They allow the Unix password #to be kept in sync with the SMB password. ; unix password sync = Yes ; passwd program = /usr/bin/passwd %u ; passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n
Re: [Samba] Seg from net ads join
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 NIGGEMYER Brant wrote: | Running net ads join causes segfault, any ideas | on this? Any help is appreciated. This is a fresh | install of Fedora Core 4. This looks like a bug in the kerberos libs. I've reproruced it and Valgrind reports: $ valgrind --tool=memcheck --leak-check=yes \ net ads join -U Administrator ==26396== Invalid free() / delete / delete[] ==26396==at 0x1B909743: free (vg_replace_malloc.c:152) ==26396==by 0x3DAABA: remove_error_table (in /lib/libcom_err.so.2.1) ==26396==by 0x4D98C3: (within /usr/lib/libkrb5.so.3.2) ==26396==by 0x4D95C6: (within /usr/lib/libkrb5.so.3.2) ==26396==by 0x52A9D9: (within /usr/lib/libkrb5.so.3.2) ==26396==by 0x1B8F2057: _dl_fini (in /lib/ld-2.3.5.so) ==26396==by 0x238C68: exit (in /lib/libc-2.3.5.so) ==26396==by 0x222DED: __libc_start_main (in /lib/libc-2.3.5.so) ==26396==by 0x2FD44: (within /usr/local/samba/bin/net) ==26396== Address 0x53BDB0 is not stack'd, malloc'd or (recently) free'd Jay, any possibility of getting this fixed in FC4 ? cheers, jerry = Alleviating the pain of Windows(tm) --- http://www.samba.org GnuPG Key- http://www.plainjoe.org/gpg_public.asc I never saved anything for the swim back. Ethan Hawk in Gattaca -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC5ON9IR7qMdg1EfYRAr2IAJ9RXVz3wkudIHUeGULBrf3hn89DPwCdHx0J wx4jXB2/JPHlew2GJPlbNZo= =9OB0 -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] High CPU with 3.0.14a in FC4
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brad Horrocks (Secure Office Services) wrote: | The problem we are experiencing is that the standard | daemon processes [SMBD] are using significantly more | CPU [processes that were running a 10% are now running | at over 40%]. | | Has anybody seen or heard of this before or is this a | FC4 specific problem. The boxes are primarily Windows | file sharers but they do run qmail as well. I've found what I believe to be kerberos bugs in FC4. Brad, Can you do an strace and see what the processes are doing ? Are other servers (e.g. qmail) using more CPU as well? Or just smbd? Jay, have you observed any similar behavior (increaed CPU usage). cheers, jerry = Alleviating the pain of Windows(tm) --- http://www.samba.org GnuPG Key- http://www.plainjoe.org/gpg_public.asc I never saved anything for the swim back. Ethan Hawk in Gattaca -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC5OQTIR7qMdg1EfYRAtwzAKDi/+Bu1P8UosaGTER2951K6PRejgCg259I bEwvLUPc1NJ+9DFUh0y63a4= =Xn+e -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] can't join to a domain... can_add_account is returning false
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brad Langhorst wrote: | I have just set up a domain and am trying to join a machine to it. | When i watch the log i see | | [2005/07/22 14:56:26, 5] | rpc_server/srv_samr_nt.c:_samr_create_user(2311) | _samr_create_user: can add this account : False | Error: modifications require authentication | at /usr/share/perl5/smbldap_tools.pm line 892, DATA line 283. | [2005/07/22 14:56:28, 0] | rpc_server/srv_samr_nt.c:_samr_create_user(2324) | _samr_create_user: Running the command `/usr/sbin/smbldap-useradd -w | newt$' gave 127 | | so for some reason my account (root) is not passing | the can_add_account test and the add user script is | not being run as root. | | I don't know why since root is a member of the correct groups Technically root doesn't need any extra privileges. Run a level 10 debug log and look for SE_PRIV to see what privileges have been assigned though just out of curiousity. | Error: modifications require authentication | at /usr/share/perl5/smbldap_tools.pm line 892, DATA line 283. This implies that your script is connecting anonymously. OpenLDAP doesn't allow anonymous updatres by default (starting with OL 2.1 IIRC). SO you would have to add 'allow update_anon' to slapd.conf. But of course, this is like adding 'guest account = root' in smb.conf. :-) It's a really bad idea. cheers, jerry = Alleviating the pain of Windows(tm) --- http://www.samba.org GnuPG Key- http://www.plainjoe.org/gpg_public.asc I never saved anything for the swim back. Ethan Hawk in Gattaca -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC5OrVIR7qMdg1EfYRAmaaAJ9xqSLofIDAk23mFVj1DLWptfuCdQCglcIS F2cjMD7Hsthq+Wmw7EQjgOA= =6gxb -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] wbinfo -u fails (but not wbinfo -t and wbinfo -g)
Hi all, I'm tring to configure samba 3.0.10 on hpux machine as domain member. Unluckly I got some error. When I try to open my server froma a windos machine it seems all ok: [2005/07/25 15:42:19, 0] smbd/server.c:open_sockets_smbd(383) open_sockets_smbd: accept: No buffer space available [2005/07/25 15:42:19, 2] smbd/sesssetup.c:setup_new_vc_session(608) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2005/07/25 15:42:19, 2] smbd/sesssetup.c:setup_new_vc_session(608) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2005/07/25 15:42:19, 2] auth/auth.c:check_ntlm_password(305) check_ntlm_password: authentication for user [mgatt] - [mgatt] - [mgatt] succeeded but when i open a share, even if I reach to do it, i got some errors. It seems samba looses user and domain info. [2005/07/25 15:43:34, 1] auth/auth_util.c:make_server_info_sam(822) User nobody in passdb, but getpwnam() fails! [2005/07/25 15:43:34, 2] auth/auth.c:check_ntlm_password(312) check_ntlm_password: Authentication for user [] - [] FAILED with error NT_STATUS_NO_SUCH_USER [2005/07/25 15:43:34, 1] auth/auth_util.c:make_server_info_sam(822) User nobody in passdb, but getpwnam() fails! [2005/07/25 15:43:34, 2] auth/auth.c:check_ntlm_password(312) check_ntlm_password: Authentication for user [] - [] FAILED with error NT_STATUS_NO_SUCH_USER [2005/07/25 15:43:34, 1] auth/auth_util.c:make_server_info_sam(822) User nobody in passdb, but getpwnam() fails! [2005/07/25 15:43:34, 2] auth/auth.c:check_ntlm_password(312) check_ntlm_password: Authentication for user [] - [] FAILED with error NT_STATUS_NO_SUCH_USER [2005/07/25 15:43:34, 1] smbd/service.c:make_connection_snum(648) w2it-mgatt (172.16.200.92) connect to service Data Protector DOCs initially as user mgatt (uid=105, gid=20) (pid 21774) [2005/07/25 15:43:34, 1] auth/auth_util.c:make_server_info_sam(822) User nobody in passdb, but getpwnam() fails! [2005/07/25 15:43:34, 2] auth/auth.c:check_ntlm_password(312) check_ntlm_password: Authentication for user [] - [] FAILED with error NT_STATUS_NO_SUCH_USER wbinfo -t and wbinfo -g work fine but wbinfo -u gives me error: Error looking up domain users Please could you help me to find correct way to solve my problems? Thank You Mauro -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] wbinfo -u fails (but not wbinfo -t and wbinfo -g)
On Mon, 25 Jul 2005, Mauro (INTERFREE) wrote: wbinfo -t and wbinfo -g work fine but wbinfo -u gives me error: Error looking up domain users Please could you help me to find correct way to solve my problems? Hi ! You could try 3.0.14 of course. Else there seems to be a problem with w2k SP4 Update Rollup 1 which causes this. Deinstallation of this on the w2k-machine did help in my case. Oktay -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Domain groups with spaces in their names
Hello Samba, I have a Samba file server which I have successfully joined to a domian controlled by a Windows 2003 domian controller. I cannot get the server to allow access to users who are members of a group with spaces in its name. The domain has three (main) groups: - students - teachers - spaced users My Samba.conf has the following shared directories defined: [teachers] comment = teacher's shares writable = yes valid users = @teachers path = /home/groups/teachers writable = yes browsable = no create mode = 0660 directory mode = 0770 [students] comment = student's shares writable = no valid users = @teachers @students path = /home/groups/students create mode = 0660 directory mode = 0770 write list = @teachers [spaced] comment = test with spaces writable = yes valid users = @spaced users path = /home/spaced users create mode = 0660 directory mode = 0770 browsable = yes The following works fine: members of @teachers have access to both teachers and students shares members of @teachers can write to both teachers and students shares members of @students can only see the students shares But this does not work: @spaced users should be able to access the spaced share but cannot. On a Windows XP terminal on the network, any attempt to view the spaced shared by anyone (including members of the spaced users group) results in a login box popping up and no combination of user name or password will let you see the share. I am using Samba version 3.14 running on Fedora Core 4. I have included my full smb.conf Many thanks in advance, John [global] # Optimum Samba Performance settings socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 # NT workgroup settings workgroup = RMLINUX server string = Samba Server # WINS network browsing settings # All functions disabled apart from using a WINS server for lookups local master = no domain master = no preferred master = no wins support = no wins server = 42.42.0.1 dns proxy = no # Active Directory Member realm = RMLINUX.LOCAL security = ADS # Server to use if no domain controller is registered in DNS password server = zeus.rmlinux.local # Enable Winbind for AD and local account synchronisation # winbind separator = + winbind use default domain = yes idmap uid = 1-2 idmap gid = 1-2 winbind enum users = yes winbind enum groups = yes # Defaultas for local accounts created by Winbind template homedir = /home/%U template shell = /bin/nologin # Loggin settings log file = /var/log/samba/%m.log max log size = 5000 # Printer sharing printcap name = /etc/printcap load printers = no # Security settings invalid users = root bin daemon adm sync shutdown halt mail news uucp operator # Add shares here [homes] comment = %U's home area volume = Home Area path = /home/users/%U browsable = no writable = yes [teachers] comment = teacher's shares writable = yes valid users = @teachers path = /home/groups/teachers writable = yes browsable = no create mode = 0660 directory mode = 0770 [students] comment = student's shares writable = no valid users = @teachers @students path = /home/groups/students create mode = 0660 directory mode = 0770 write list = @teachers [spaced] comment = test with spaces writable = yes valid users = @spaced users path = /home/spaced users create mode = 0660 directory mode = 0770 browsable = yes -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] net rap file and net rpc file
Dear List, Running these commands when I know files are open reveals nothing on the Samba server. If however I run these command against another Domain, i.e. Window 2000 PDC, I get all the files open. Is this supposed to work this way? Thanks, Gavin. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Remote shutdown+poweroff of W2K server
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Burns wrote: | I would like to know if and how it is possible to | get the Win2K server to power off on shutdown with | the Samba client utlities. It's probably just a flag we are missing in the 'net rpc shutdown'request. Do you have a windows tool that will do the rmeote shutdown and power off correctly ? Could you send me an ethereal trace of that ? Or tell me which tool to use in testing. jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC5PI4IR7qMdg1EfYRAmBIAKCJK7j80FK4wAl7bcdrfa/w/YMPUgCgt6xK 6uQwzIhVp+Hpd8O5QoU8Na0= =HTrt -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
RE: [Samba] Remote shutdown+poweroff of W2K server (new issue: --comment arg not work)
Just a note on rpc shutdown command, but the --comment/-c argument does not work, given the following example: /server/samba/bin/net rpc -n ADMINPC --server=WMPCSE -U Administrator -t 90 shutdown (Works, asks first for password, then sends shutdown which DOES shutdown machine 'WMPCSE' with 90 second timeout) /server/samba/bin/net rpc -n ADMINPC --server=WMPCSE -U Administrator -t 90 --comment=Simple string comment shutdown (DOES NOT WORK, Returns as below) [2005/07/25 10:23:45, 0] utils/net_rpc.c:rpc_shutdown_internals(4113) Shutdown of remote machine failed! No matter the machine, the timeout, nor the username/source machine name used, as soon as I attempt to send net rpc shutdown with a comment, the comment is not displayed and the command does not work. -- Nathan Vidican [EMAIL PROTECTED] Windsor Match Plate Tool Ltd. http://www.wmptl.com/ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gerald (Jerry) Carter Sent: Monday, July 25, 2005 10:08 AM To: Michael Burns Cc: samba Subject: Re: [Samba] Remote shutdown+poweroff of W2K server -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Michael Burns wrote: | I would like to know if and how it is possible to | get the Win2K server to power off on shutdown with | the Samba client utlities. It's probably just a flag we are missing in the 'net rpc shutdown'request. Do you have a windows tool that will do the rmeote shutdown and power off correctly ? Could you send me an ethereal trace of that ? Or tell me which tool to use in testing. jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC5PI4IR7qMdg1EfYRAmBIAKCJK7j80FK4wAl7bcdrfa/w/YMPUgCgt6xK 6uQwzIhVp+Hpd8O5QoU8Na0= =HTrt -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Logon Script not executing upon login
chris rothgeb schrieb am 19.07.2005 19:31: Hi, I am trying to execute a logon script when a user access the domain. For some reason the following is not executing. I don't want to enable roaming profiles so I have set 'logon home' and logon path' to null - I thought perhaps that this was causing a problem; but it hasn't made a difference. I also verified that my logon.bat is a DOS formatted file. I'm experiencing the same phenomen: Until before, I had a NT4-based domain (i.e. NT-PDC, WinXP clients), with samba as a member-server and a logon script residing at the NT-PDC. It works right well to connect the users to the shares of the samba server. The NT-PDC does only user-authentication, as the roaming profiles already reside at samba. Now I copy this logon script to the netlogon share of samba, cut the old NT-PDC off the Lan and propagate samba to be the PDC (security=domain-user, domain master=no-yes, local master=no-yes, preferred master=no-yes, os level=20-255). The user logs in sucessfully into the domain, but the logon script is not executed. I even don't find any hint in the log.smb (debug level = 3) that an attempt is made to access my login.cmd. Right from the complete UNC-Path \\dbtgvamelhu002\netlogon\login.cmd the user can execute the script and it works well. This malpractice (or better nonpractice) is mentioned in the mail archives about 1-2 times every last four years, but I never found some definitve solution (The one mentioned in Jan 2005: guest ok = yes is included in the netlogon share). BTW: I have server-generated print jobs to be spooled by cups (via smb-backend) to printers locally attached at the WinXP-clients. The backend hangs with Unable to connect to SAMBA host. I hope the answer to my problem above will solve this too... Any new ideas? I'm running SuSE 9.0 Prof with samba 3.0.14a Otto # smb.conf is the main Samba configuration file. You find a full commented # version at /usr/share/doc/packages/samba3/examples/smb.conf.SUSE if the # samba-doc package is installed. # # modified by Otto Mueller [EMAIL PROTECTED] 2005-07-25 10:28:44 # Global parameters [global] netbios name = DBTGVAMELHU002 server string = VarialServer ZA2 [MELH] workgroup = ZA02 # Samba always offers NetBIOS time service. # This causes it to also be advertised: time server = Yes # Run a WINS server wins support = Yes interfaces = 127.0.0.1, eth0 bind interfaces only = Yes log level = 1 syslog = 0 # map to guest = Bad User passwd program = /usr/bin/passwd %u unix password sync = Yes encrypt passwords = Yes add user script = /usr/sbin/useradd -d /dev/null -g 100 -s /bin/false -M %u load printers = Yes printing = cups printcap name = cups printcap cache time = 750 cups options = raw printer admin = @ntadmin, root unix charset = iso8859-15 # The logon script used for all users, Relative to [netlogon] share directory logon script = login.cmd logon path = \\%L\profiles\%u logon home = ldap ssl = no # Client-PC-abhaengige Protokoll-Einstellung include = /etc/samba/smb.conf.%m # The group identifying administrative users. domain admin group = root # Server role: ROLE_DOMAIN_MEMBER security = DOMAIN domain master = No local master = No preferred master = No os level = 20 # Server role: ROLE_DOMAIN_PDC # Perform domain authentication. security = user domain logons = Yes # Always act as the local master browser and domain master browser. # Do not allow any other system to take over these roles! domain master = Yes local master = Yes preferred master = Yes os level = 255 # # Einkopieren der Dienstposten-Freigaben # include = /etc/samba/smb.conf.work [profiles] comment = Roaming Profiles path = /var/opt/samba/profiles create mask = 0600 security mask = 0700 directory mask = 0700 directory security mask = 0700 profile acls = Yes csc policy = disable read only = No store dos attributes = Yes [netlogon] comment = Domain logon service path = /var/opt/samba/netlogon read only = Yes locking = No guest ok = Yes [homes] comment = Home Directories valid users = %S create mask = 0700 security mask = 0700 directory mask = 0700 directory security mask = 0700 inherit permissions = Yes case sensitive = Yes hide dot files = Yes locking = Yes browseable = No read only = No inherit acls = Yes [printers] comment = All Printers path = /var/spool/samba create mask = 0600 printable = Yes browseable = No [print$] comment =
Re: [Samba] Remote shutdown+poweroff of W2K server (new issue: --comment arg not work)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nathan Vidican wrote: | Just a note on rpc shutdown command, but the --comment/-c argument does not | work, given the following example: | | /server/samba/bin/net rpc -n ADMINPC --server=WMPCSE -U Administrator - -t 90 | shutdown | | (Works, asks first for password, then sends shutdown which DOES shutdown | machine 'WMPCSE' with 90 second timeout) | | /server/samba/bin/net rpc -n ADMINPC --server=WMPCSE -U Administrator -t | 90 --comment=Simple string comment shutdown | | (DOES NOT WORK, Returns as below) | | [2005/07/25 10:23:45, 0] utils/net_rpc.c:rpc_shutdown_internals(4113) | Shutdown of remote machine failed! | | No matter the machine, the timeout, nor the | username/source machine name used, as soon as I attempt to send | net rpc shutdown with a comment, the | comment is not displayed and the command does not work. ok. Thanks for the information. I might have goofed the parsing code during while updating some registry functionality. cheer,s jerry -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC5PkbIR7qMdg1EfYRAu/CAJ9JPQC0//1AfWoXkTh+aA00X3oYUgCg86pT HWVGKR6wSN1BWzcw++bZQ/Q= =agYp -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Logon Script not executing upon login
quote who=Otto Müller chris rothgeb schrieb am 19.07.2005 19:31: Hi, I am trying to execute a logon script when a user access the domain. For some reason the following is not executing. I don't want to enable roaming profiles so I have set 'logon home' and logon path' to null - I thought perhaps that this was causing a problem; but it hasn't made a difference. I also verified that my logon.bat is a DOS formatted file. I'm experiencing the same phenomen: Try: chmod 744 logon.bat and: perl -pi -e 's/\r\n/\n/g' logon.bat just to confirm it's on dos format. The permissions setting doesn't appear to be listed in the Samba Guide. -- Kind Regards, Gavin Henry. Managing Director. T +44 (0) 1224 279484 M +44 (0) 7930 323266 F +44 (0) 1224 742001 E [EMAIL PROTECTED] Open Source. Open Solutions(tm). http://www.suretecsystems.com/ -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Client for smbfs.ko module
Hi, I am trying to add samba functionality to a light weight linux distribution. I have a kernel with the smbfs.ko module, how do I build just the smbmount or mount.smbfs utilities. I do not need a full blown samba server or smbclient utility. Is the only way to download the full samba3.tar.gz? If so what ./configure options should I use to minimize library dependencies? Thanks -Paul -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Where to go next; Winbind/LDAP/ID mapping
Hi, I've configured 2 RHEL4 boxes running samba-3.0.10-1.4E to join our W2K AD domain and run as member servers. wbinfo -u/-g and getent passwd/group work OK and resolve users within the domain and I've created a test share with domain permissions that we can copy to etc. So now I've reached a bit of a crossroads. As I understand it winbind maps the domain SID's to UID's/GID's on a random basis, but as the 2 boxes will eventually form part of a cluster I need to make sure that the ID mappingsare identical on each box otherwise I'll have a hell of a job when failing over. Looking through the Samba How-To and By-Example documentation to check current configuration it doesn't seem to be clear (at least to me :) ) what the best/recommended practice is in this situation. Can I use AD as the LDAP backend? Should I use IDMAP_RID and replicate the .tdb files between nodes - there are 30,000+ accounts in AD? Would I even have to replicate the .tdb if it uses a predictable mapping system? Or is confguring a second LDAP server to store the mapped ID's my only option? If anyone has any experience or knowledge I'd love to hear from you. Cheers. Simon -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] problem after update
Hello I have my samba server work fine at today, when i have update my RHEL4 and the new Samba version is 3.0.10-1.4E. Now, all my windows clients works fine, but the linux client not. When i try mount the share, with pam_mount, it fails with the message: Jul 25 15:49:16 informatica gdm-binary[5566]: pam_mount: mount errors (should be empty): Jul 25 15:49:16 informatica gdm-binary[5566]: pam_mount: pam_mount: command: mount -t smbfs server /mnt/informatica -o username=ecatana,uid=ecatana,gid=ecatana,dmask=0750,workgroup=MYGROUP Jul 25 15:49:36 informatica gdm-binary[5566]: pam_mount: SMB connection failed Jul 25 15:49:36 informatica gdm-binary[5566]: pam_mount: waiting for mount At windows clients all works fine. Can anyone helpme. -- Elísio Catana [EMAIL PROTECTED] Divisão de Informática e Telecomunicações Tel: 272 000 155 Fax: 272 000 257 email: [EMAIL PROTECTED] Hospital Amato Lusitano Castelo Branco Av. Pedro Álvares Cabral Tel: 272 000 272 Fax: 272 000 257 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Participating in AD dfs on a Mac Os X (10.3.9) X serve
We have a choice of either using a win2k3 server or a 10.3.9 Xserve ( which we use for samba fileserver) for dfs. Want to try the mac, but since apple doesn't seem to have a utility for this I'll have to deal directy with samba3, which I don't mind. Just wanted to hear some success/horror stories from mac people about dfs, or some gotchas. Ours will be about 20GB. Thanks, Tadashi Inayama -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Remote shutdown+poweroff of W2K server
Gerald (Jerry) Carter wrote: Michael Burns wrote: | I would like to know if and how it is possible to | get the Win2K server to power off on shutdown with | the Samba client utlities. It's probably just a flag we are missing in the 'net rpc shutdown'request. Do you have a windows tool that will do the rmeote shutdown and power off correctly ? Could you send me an ethereal trace of that ? Or tell me which tool to use in testing. sysinternals.com has a tool, psshutdown, that seems to work at least locally. http://www.sysinternals.com/Utilities/PsShutdown.html In particular, the command-line option psshutdown -k shuts down and powers down the machine. I can probably get you a trace if you need more info. Thanks, -- Michael -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] A workaround for printer drivers that crash with an exception error after uploading to Samba
I have just run into two printer drivers (Brother 1870N and HP Deskjet 890cxi) that seem to crash windows explorer as soon as they are uploaded to the samba server. I have tried using default devmode=yes with no success for both drivers. I have found an horrible workaround that maybe should be useful to others, so I'll describe it here. First, uninstall the offending printer and remove the driver using rpcclient, like this: # rpcclient localhost (give password) rpcclient $ setdriver printer another driver that works rpcclient $ deldriverex driver that does not work then exit rpcclient. After this, install the printer's driver LOCALLY on a windows PC, configure it, and share the printer using the same name that is used on Linux. Then, again on Linux, use the command net rpc printer migrate to migrate drivers and its configuration from the Windows box to the Linux one, like this: # net rpc printer migrate drivers printer name -U Administrator -S windows machine name and then: # net rpc printer migrate settings printer name -U Administrator -S windows machine name This last command returns an error that says: enumprinterkey failed: DOS code 0x001f, got no key-data but it still seems to work. This has worked for me, and after doing it I was able to use the printers normally and also modify their settings using a Windows client. Hope this helps, but I suppose we need a better solution... -- Fabio Kurgan Muzzi -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Public resource in user mode (map to guest)
Hi, I have a problem, I want to make a public resource in user mode. This is the configuration file: [global] security = user map to guest = bad user [private] path = / valid users = @group [public] path = /.. guest ok = yes I've seen in the logs files, that Windows first send the windows' user/passwd. Samba (obviously that user is not a valid samba account) automaticaly map to guest that user, because of the option map to guest = bad user. I want Samba to ask me for user/passwd and if I enter a bad user, then map me to guest account. Thanks a lot, Ana -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] access control violation /etc/rc.d/init.d/smb start failed
Restarting samba I do get following error message: access control violation /etc/rc.d/init.d/smb start failed Any idea? Thanks, Paul -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Domain Logons Setting and Winbind
I have a problem with the domain logons setting in Samba and winbind. Basically if I set domain logons = Yes, my XP clients are able to join the domain (call it domain XYZ). However, with domain logons = yes, winbind -u returns Error looking up domain users. If I set domain logons = no, wbinfo -u returns my domain users, however XP clients are not able to join the domain. They receive an error stating The specified domain either does not exist or could not be contacted. I need both options to work at the same time. It is probably worth noting that my workgroup = ABC in the smb.conf and the Samba 3.0.14a machine is joined to an active directory domain named XYZ. This is per a recommendation from an earlier post. Why can I not get both functions to work at the same time? Thanks to all in advance. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Remote shutdown+poweroff of W2K server
Gerald (Jerry) Carter wrote: It's probably just a flag we are missing in the 'net rpc shutdown'request. Do you have a windows tool that will do the rmeote shutdown and power off correctly ? Could you send me an ethereal trace of that ? Or tell me which tool to use in testing. From Windows XP Pro (SP1): C:\shutdown.exe Usage: shutdown [-i | -l | -s | -r | -a] [-f] [-m \\computername] [-t xx] [-c c omment] [-d up:xx:yy] No args Display this message (same as -?) -i Display GUI interface, must be the first option -l Log off (cannot be used with -m option) -s Shutdown the computer -r Shutdown and restart the computer -a Abort a system shutdown -m \\computername Remote computer to shutdown/restart/abort -t xx Set timeout for shutdown to xx seconds -c commentShutdown comment (maximum of 127 characters) -f Forces running applications to close without warning -d [u][p]:xx:yy The reason code for the shutdown u is the user code p is a planned shutdown code xx is the major reason code (positive integer less than 256) yy is the minor reason code (positive integer less than 65536) From Windows Server 2003: C:\shutdown.exe Usage: shutdown.exe [/i | /l | /s | /r | /a | /p | /h | /e] [/f] [/m \\computer][/t xxx][/d [p:]xx:yy [/c comment]] No argsDisplay help. This is the same as typing /? /? Display help. This is the same as not typing any options /i Display the graphical user interface (GUI). This must be the first option /l Log off. This cannot be used with /m or /d option /s Shutdown the computer /r Shutdown and restart the computer /a Abort a system shutdown. This can only be used during the time-out period /p Turn off the local computer with no time-out or warning. This can only be used with /d option /h Hibernate the local computer. This can only be used with the /f option /e Document the reason for an unexpected shutdown of a computer /m \\computer Specify the target computer /t xxx Set time-out period before shutdown to xxx seconds. The valid range is 0-600, with a default of 30 /c comment Comment on the reason for the restart or shutdown. Maximum of 127 characters allowed /f Force running applications to close without forewarning users /d [p:]xx:yy Provide the reason for the restart or shutdown p indicates that the restart or shutdown is planned xx is the major reason number (positive integer less than 256) yy is the minor reason number (positive integer less than 65536) Reasons on this computer: (E = Expected U = Unexpected P = planned, C = customer defined) TypeMajor Minor Title U 0 0 Other (Unplanned) E 0 0 Other (Unplanned) E P 0 0 Other (Planned) U 0 5 Other Failure: System Unresponsive E 1 1 Hardware: Maintenance (Unplanned) E P 1 1 Hardware: Maintenance (Planned) E 1 2 Hardware: Installation (Unplanned) E P 1 2 Hardware: Installation (Planned) P 2 3 Operating System: Upgrade (Planned) E 2 4 Operating System: Reconfiguration (Unplanned) E P 2 4 Operating System: Reconfiguration (Planned) P 2 16 Operating System: Service pack (Planned) 2 17 Operating System: Hot fix (Unplanned) P 2 17 Operating System: Hot fix (Planned) 2 18 Operating System: Security fix (Unplanned) P 2 18 Operating System: Security fix (Planned) E 4 1 Application: Maintenance (Unplanned) E P 4 1 Application: Maintenance (Planned) E P 4 2 Application: Installation (Planned) E 4 5 Application: Unresponsive E 4 6 Application: Unstable U 5 15 System Failure: Stop error E 5 19 Security issue U 5 19 Security issue E P 5 19 Security issue E 5 20 Loss of network connectivity (Unplanned) U 6 11 Power Failure: Cord Unplugged U 6 12 Power Failure: Environment P 7 0 Legacy API shutdown Shutdown.exe is part of the Resource Kits for NT and 2000. For Windows XP and Server 2003 it is part of the standard distribution. See http://support.microsoft.com/kb/317371 for details on shutdown.exe for Windows
[Samba] Samba hangs daily
Hi, I need some help. Everyday samba hangs and I can´t find the reason. It happens around 4PM as you can see in the /var/log/messages and some time in the morning when people start to work. In the moment I´m restarting samba and cups as a workaround Here follows the error messages: - Jul 25 16:14:26 bankok smbd[19270]: [2005/07/25 16:14:26, 0] lib/util_sock.c:write_socket_data(430) Jul 25 16:14:26 bankok smbd[19270]: write_socket_data: write failure. Error = Connection reset by peer Jul 25 16:14:26 bankok smbd[19270]: [2005/07/25 16:14:26, 0] lib/util_sock.c:write_socket(455) Jul 25 16:14:26 bankok smbd[19270]: write_socket: Error writing 4 bytes to socket 4: ERRNO = Connection reset by peer Jul 25 16:14:26 bankok smbd[19270]: [2005/07/25 16:14:26, 0] lib/util_sock.c:send_smb(647) Jul 25 16:14:26 bankok smbd[19270]: Error writing 4 bytes to client. -1. (Connection reset by peer) - Jul 25 15:53:21 bankok smbd[12058]: Jul 25 15:54:02 bankok smbd[12535]: [2005/07/25 15:54:02, 0] lib/fault.c:fault_report(36) Jul 25 15:54:02 bankok smbd[12535]: === Jul 25 15:54:02 bankok smbd[12535]: [2005/07/25 15:54:02, 0] lib/fault.c:fault_report(37) Jul 25 15:54:02 bankok smbd[12535]: INTERNAL ERROR: Signal 11 in pid 12535 ( 3.0.14a-4.1-SUSE) Jul 25 15:54:02 bankok smbd[12535]: Please read the appendix Bugs of the Samba HOWTO collection Jul 25 15:54:02 bankok smbd[12535]: [2005/07/25 15:54:02, 0] lib/fault.c:fault_report(39) Jul 25 15:54:02 bankok smbd[12535]: === Jul 25 15:54:02 bankok smbd[12535]: [2005/07/25 15:54:02, 0] lib/util.c:smb_panic2(1463) Jul 25 15:54:02 bankok smbd[12535]: PANIC: internal error Jul 25 15:54:02 bankok smbd[12535]: [2005/07/25 15:54:02, 0] lib/util.c:smb_panic2(1471) Jul 25 15:54:02 bankok smbd[12535]: BACKTRACE: 13 stack frames: Jul 25 15:54:02 bankok smbd[12535]: #0 /usr/sbin/smbd(smb_panic2+0x120) [0x820ca30] Jul 25 15:54:02 bankok smbd[12535]: #1 /usr/sbin/smbd(smb_panic+0x26) [0x820cc06] Jul 25 15:54:02 bankok smbd[12535]: #2 /usr/sbin/smbd [0x81f7550] Jul 25 15:54:02 bankok smbd[12535]: #3 [0xe420] Jul 25 15:54:02 bankok smbd[12535]: #4 /usr/sbin/smbd(cups_cache_reload+0x159) [0x81f0469] Jul 25 15:54:02 bankok smbd[12535]: #5 /usr/sbin/smbd(pcap_cache_reload+0x371) [0x81edcd1] Jul 25 15:54:02 bankok smbd[12535]: #6 /usr/sbin/smbd(reload_printers+0x33) [0x828f303] Jul 25 15:54:02 bankok smbd[12535]: #7 /usr/sbin/smbd(check_reload+0xc2) [0x80dfe22] Jul 25 15:54:02 bankok smbd[12535]: #8 /usr/sbin/smbd [0x80dff75] Jul 25 15:54:02 bankok smbd[12535]: #9 /usr/sbin/smbd(smbd_process+0x104) [0x80e1ea4] Jul 25 15:54:02 bankok smbd[12535]: #10 /usr/sbin/smbd(main+0x530) [0x8290750] Jul 25 15:54:02 bankok smbd[12535]: #11 /lib/tls/libc.so.6(__libc_start_main+0xe0) [0x402c2b10] Jul 25 15:54:02 bankok smbd[12535]: #12 /usr/sbin/smbd [0x807a431] global section of smb.conf [global] workgroup = corp printing = cups printcap name = cups printcap cache time = 750 cups options = raw printer admin = @ntadmin, root, administrator username map = /etc/samba/smbusers map to guest = Bad User include = /etc/samba/dhcp.conf logon drive = P: security = user encrypt passwords = yes add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$ domain logons = yes domain master = yes wins support = yes wins proxy = yes ldap idmap suffix = ou=Idmap ldap machine suffix = ou=Computers local master = yes netbios name = bankok os level = 65 preferred master = yes smb passwd file = /etc/samba/smbpasswd passdb backend = smbpasswd unix password sync = yes passwd program = /usr/bin/passwd %u passwd chat = *New*password* %n\n *Re-enter*new*password* %n\n *Password*changed* # Veto Files veto files = /*.mp3/*.wmv/*.wma/*.ogg [homes] comment = Home Directories valid users = %S browseable = no read only = no inherit acls = yes [profiles] comment = Network Profiles Service path = %H read only = no store dos attributes = yes create mask = 0600 directory mask = 0700 [users] comment = All users path = /home read only = no inherit acls = yes veto files = /aquota.user/groups/shares/ [groups] comment = All groups path = /home/groups read only = no inherit acls = yes [pdf] comment = PDF creator path = /var/tmp printable = yes # print command = /usr/bin/smbprngenpdf -J '%J' -c %c -s %s -u '%u' -z %z create mask = 0600 [printers] comment = All Printers path = /var/tmp printable = yes create mask = 0600 browseable = no [print$] comment = Printer Drivers path = /var/lib/samba/drivers write list = @ntadmin root force group = ntadmin create mask = 0664 directory mask = 0775 __ -- shares are as follows [data] browseable = yes comment = Dados writeable = yes write list = @comp path =
[Samba] Synchronization of passwords - ldap and samba
I've configured a LDAP/Samba server. I've got password syncing working partly: -- windows client - users can change their password and pam_smbpass.so will change the ldap password. -- LDAP server - user logs on to LDAP server, the ldap password can be changed and pam_smbpass.so will change the samba password. Here is the problem. On the linux client, the user can change his password using the passwd command, and the user's ldap password will be changed - but it doesn't seem to change the user's samba password. On the LDAP Server (SuSE 9.3), I'm using: /etc/pam.d/passwd #%PAM-1.0 auth includecommon-auth account includecommon-account password includecommon-password session includecommon-session password required pam_smbpass.so use_authtok use_first_pass /etc/samba/smb.conf ldap password sync = yes How can I get password syncing to work from both the linux and windows clients? The linux client is running ubuntu. Yasi -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Winbind and AD issues
On Mon, 2005-07-25 at 12:45 +0100, Simon Morris wrote: Hello, I've been working on integrating a Fedora Core 2 box into Active Directory over the weekend.. it's a file server running Samba. {snip} but chgrp doesn't work... this is my major problem. Just for the mailing list archives.. if any Googlers have the same problem on Fedora Core 2... use Debian Sarge :) Worked perfectly using the instructions here http://www.linspireguide.com/Hint390 http://www.mail-archive.com/samba@lists.samba.org/msg24943.html Thanks (avoids FC zealots ;) ~sm -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Switching servers
I loaded a new server and put it in place today. It left the domain the same as the old server, but when I log in, I cannot get to my local profile on the XP machine. I even made sure that I made the uid the same number. Before I start adding all of the other users, is there some way to get past this? Thanks -- Scott Mayo Technology Coordinator Bloomfield Schools PH: 573-568-5669 FA: 573-568-4565 Pager: 800-264-2535 X2549 Duct tape is like the force, it has a light side and a dark side and it holds the universe together. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] High CPU with 3.0.14a in FC4
Jerry, The strace I ran output is:- [EMAIL PROTECTED] samba]# strace -p 769 -cfqrT % time seconds usecs/call callserrors syscall -- --- --- - - 49.57 32.179651 40805953 write 20.04 13.007770 16806396 geteuid32 17.97 11.667455 31373072 367 stat64 9.075.887281 19310574 time 1.030.669108 295 2271 select 0.900.582924 18 32319 32319 getxattr 0.480.314502 9 34337 gettimeofday 0.410.265785 117 2272 send 0.200.128447 98 1308 pread 0.110.072433 16 4543 read 0.070.045187 32 1434 getdents64 0.070.042480 21240 2 rename 0.030.018578 11 1717 fcntl64 0.020.009879 30 333 5 open 0.010.005523 9 616 fstat64 0.010.004163 13 318 close 0.000.003181 21 148 setresuid32 0.000.001974 5 398 getegid32 0.000.001259 7 187 176 kill 0.000.000971 7 148 setresgid32 0.000.000883 9 101 setgroups32 0.000.000762 5115 pwrite 0.000.000467 599 getgid32 0.000.000427 499 getuid32 0.000.000321 1129 flock 0.000.000282 141 2 unlink 0.000.000154 39 4 ftruncate64 0.000.78 11 7 dup2 0.000.77 26 3 brk 0.000.63 514 umask 0.000.50 17 3 chdir 0.000.50 17 3 1 lstat64 0.000.18 3 6 nanosleep 0.000.15 8 2 2 fgetxattr 0.000.12 12 1 getpeername 0.000.04 4 1 getgroups32 -- --- --- - - 100.00 64.912214 2378735 32870 total This was taken during the application startup which takes upwards of 60 seconds... The qmail servers don't appear to be using any additional cpu although it is hard to tell as qmail is used only for 5 users. I noticed the getxattr errors and was wondering if the upgrade from FC1 to FC4 (kernel 2.4 - 2.6) would introduce some sort of application overhead for acl's that was not present in the 2.4 kernel??? Just a thought. If there is anything else I can provide please let me know Regards Brad Horrocks -- Secure Office Services ABN 75 196 364 531 19 Burrendong Road COOMBABAH QLD 4216 Ph. +61 7 5537 4955 Fx. +61 7 5537 4966 web: http://www.secureoffice.com.au -- Original Message --- From: Gerald (Jerry) Carter [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: samba@lists.samba.org, [EMAIL PROTECTED] Sent: Mon, 25 Jul 2005 08:07:31 -0500 Subject: Re: [Samba] High CPU with 3.0.14a in FC4 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brad Horrocks (Secure Office Services) wrote: | The problem we are experiencing is that the standard | daemon processes [SMBD] are using significantly more | CPU [processes that were running a 10% are now running | at over 40%]. | | Has anybody seen or heard of this before or is this a | FC4 specific problem. The boxes are primarily Windows | file sharers but they do run qmail as well. I've found what I believe to be kerberos bugs in FC4. Brad, Can you do an strace and see what the processes are doing ? Are other servers (e.g. qmail) using more CPU as well? Or just smbd? Jay, have you observed any similar behavior (increaed CPU usage). cheers, jerry = Alleviating the pain of Windows(tm) --- http://www.samba.org GnuPG Key- http://www.plainjoe.org/gpg_public.asc I never saved anything for the swim back. Ethan Hawk in Gattaca -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC5OQTIR7qMdg1EfYRAtwzAKDi/+Bu1P8UosaGTER2951K6PRejgCg259I bEwvLUPc1NJ+9DFUh0y63a4= =Xn+e -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba --- End of Original Message --- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Synchronization of passwords - ldap and samba
Use the overlay smbk5pwd in OpenLDAP 2.3.4 contrib directory However, you might experience some problem if you want to implement password aging. --- linuxlady [EMAIL PROTECTED] wrote: I've configured a LDAP/Samba server. I've got password syncing working partly: -- windows client - users can change their password and pam_smbpass.so will change the ldap password. -- LDAP server - user logs on to LDAP server, the ldap password can be changed and pam_smbpass.so will change the samba password. Here is the problem. On the linux client, the user can change his password using the passwd command, and the user's ldap password will be changed - but it doesn't seem to change the user's samba password. On the LDAP Server (SuSE 9.3), I'm using: /etc/pam.d/passwd #%PAM-1.0 auth includecommon-auth account includecommon-account password includecommon-password session includecommon-session password required pam_smbpass.so use_authtok use_first_pass /etc/samba/smb.conf ldap password sync = yes How can I get password syncing to work from both the linux and windows clients? The linux client is running ubuntu. Yasi -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] (no subject)
unsubscribe kg6jbg [EMAIL PROTECTED] -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Samba cannot contact LDAP server
I'm setting up a PDC using samba 3.0.14a-2 on fedora 4 with Openldap 2.2.23 to authenticate. Authentication via ldap through the various linux service is working (login, ssh, etc.) via nss. Thus I know that slapd is running and working properly. I used smbldap-tools to populate and add test users/groups to the directory, and they worked just fine. But samba, despite being configured correctly, as far as I can tell, cannot even contact LDAP. slapd is running on the loopback interface and logging everything including packets sent. I know from the openldap logs that the samba server NEVER contacts the ldap server despite having the correct URI (I can see it in the smbd.log file) Here is the error I'm getting in the logfile... [2005/07/25 21:44:51, 5] passdb/pdb_interface.c:make_pdb_methods_name(726) Found pdb backend ldapsam [2005/07/25 21:44:51, 2] lib/smbldap.c:smbldap_search_domain_info(1394) Searching for:[((objectClass=sambaDomain)(sambaDomainName=neverland))] [2005/07/25 21:44:51, 5] lib/smbldap.c:smbldap_search(1038) smbldap_search: base = [dc=neverland,dc=com], filter = [((objectClass=sambaDo main)(sambaDomainName=neverland))], scope = [2] [2005/07/25 21:44:51, 5] lib/smbldap.c:smbldap_close(949) The connection to the LDAP server was closed [2005/07/25 21:44:51, 10] lib/smbldap.c:smbldap_open_connection(596) smbldap_open_connection: ldap://127.0.0.1:389/ [2005/07/25 21:44:51, 2] lib/smbldap.c:smbldap_open_connection(692) smbldap_open_connection: connection opened [2005/07/25 21:44:51, 10] lib/smbldap.c:smbldap_connect_system(824) ldap_connect_system: Binding to ldap server ldap://127.0.0.1:389/ as cn=Manager ,dc=neverland,dc=com [2005/07/25 21:44:51, 0] lib/smbldap.c:smbldap_connect_system(852) failed to bind to server ldap://127.0.0.1:389/ with dn=cn=Manager,dc=neverland,dc =com Error: Can't contact LDAP server (unknown) The above error repeats over and over about 15 times. Here is my smb.conf with comments and share definitions removed [global] workgroup = NEVERLAND netbios name = PALERMO server string = PALMERO - The wise and mighty domain controller passdb backend = ldapsam:ldap://127.0.0.1:389/ ldap suffix = dc=neverland,dc=com ldap admin dn = cn=Manager,dc=neverland,dc=com ldap ssl = no ldap group suffix = ou=Groups ldap machine suffix = ou=Computers admin users = root, @Domain Admins add user script = /usr/local/sbin/smbldap-useradd -m %u add group script = /usr/local/sbin/smbldap-groupadd -p %g add user to group script = /usr/local/sbin/smbldap-groupmod -m %u %g delete user from group script = /usr/local/sbin/smbldap-groupmod -x %u %g set primary group script = /usr/local/sbin/smbldap-usermod -g %g %u add machine script = /usr/local/sbin/smbldap-useradd -w %m log level = 10 printcap name = /etc/printcap load printers = yes cups options = raw log file = /var/log/samba/%m.log max log size = 50 security = user encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd username map = /etc/samba/smbusers socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 local master = yes os level = 65 domain master = yes preferred master = yes domain logons = yes logon path = logon home = wins support = yes dns proxy = no I have been working on this for three days now, and I am about to give up home and move away from ldap. But I don't want to. Any help is greatly appreciated! Thanks in advance. -Al -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] SMB winbind NT PDC
I have so far set up my samba server successfully with winbind and using an NT4 PDC. I can get to my shares and when I create a file or directory the owner and group for the file appears as MYDOMAIN+USER1 MYDOMAIN+Domain Users I am using winbind seperator = + [Share1] comment = Share1 path = /Share1 read only = no public = yes My problem is how do I set up a share so that only certain users can write to a share and certain users/groups can read from a share.I have tried to input 'write list' 'valid users' it didn't work. (I've been kind of rushing this so there may have been a typo and just need to try again). But I would appreciate a snippet of a configuration file so that I have a better idea of which configuration to use. Is there a problem with using 'winbind separator = +', if there is what has worked for you? I currently have samba-3.0.0-15 installed. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Samba cannot contact LDAP server
Alex, I recommend that you follow, step-by-step, the guidance in the book Samba-3 by Example, chapter 5. In the technical discussions section you will find detailed guidance for diagnosing your LDAP operability. You can obtain the book from: http://www.samba.org/samba/docs/Samba3-ByExample.pdf In your smb.conf file I do not see mention of the parameter ldap user suffix - this is rather important. Please verify that the following commands return valid information: getent passwd getent group - John T. On Monday 25 July 2005 20:53, Alex Ward wrote: I'm setting up a PDC using samba 3.0.14a-2 on fedora 4 with Openldap 2.2.23 to authenticate. Authentication via ldap through the various linux service is working (login, ssh, etc.) via nss. Thus I know that slapd is running and working properly. I used smbldap-tools to populate and add test users/groups to the directory, and they worked just fine. But samba, despite being configured correctly, as far as I can tell, cannot even contact LDAP. slapd is running on the loopback interface and logging everything including packets sent. I know from the openldap logs that the samba server NEVER contacts the ldap server despite having the correct URI (I can see it in the smbd.log file) Here is the error I'm getting in the logfile... [2005/07/25 21:44:51, 5] passdb/pdb_interface.c:make_pdb_methods_name(726) Found pdb backend ldapsam [2005/07/25 21:44:51, 2] lib/smbldap.c:smbldap_search_domain_info(1394) Searching for:[((objectClass=sambaDomain)(sambaDomainName=neverland))] [2005/07/25 21:44:51, 5] lib/smbldap.c:smbldap_search(1038) smbldap_search: base = [dc=neverland,dc=com], filter = [((objectClass=sambaDo main)(sambaDomainName=neverland))], scope = [2] [2005/07/25 21:44:51, 5] lib/smbldap.c:smbldap_close(949) The connection to the LDAP server was closed [2005/07/25 21:44:51, 10] lib/smbldap.c:smbldap_open_connection(596) smbldap_open_connection: ldap://127.0.0.1:389/ [2005/07/25 21:44:51, 2] lib/smbldap.c:smbldap_open_connection(692) smbldap_open_connection: connection opened [2005/07/25 21:44:51, 10] lib/smbldap.c:smbldap_connect_system(824) ldap_connect_system: Binding to ldap server ldap://127.0.0.1:389/ as cn=Manager ,dc=neverland,dc=com [2005/07/25 21:44:51, 0] lib/smbldap.c:smbldap_connect_system(852) failed to bind to server ldap://127.0.0.1:389/ with dn=cn=Manager,dc=neverland,dc =com Error: Can't contact LDAP server (unknown) The above error repeats over and over about 15 times. Here is my smb.conf with comments and share definitions removed [global] workgroup = NEVERLAND netbios name = PALERMO server string = PALMERO - The wise and mighty domain controller passdb backend = ldapsam:ldap://127.0.0.1:389/ ldap suffix = dc=neverland,dc=com ldap admin dn = cn=Manager,dc=neverland,dc=com ldap ssl = no ldap group suffix = ou=Groups ldap machine suffix = ou=Computers admin users = root, @Domain Admins add user script = /usr/local/sbin/smbldap-useradd -m %u add group script = /usr/local/sbin/smbldap-groupadd -p %g add user to group script = /usr/local/sbin/smbldap-groupmod -m %u %g delete user from group script = /usr/local/sbin/smbldap-groupmod -x %u %g set primary group script = /usr/local/sbin/smbldap-usermod -g %g %u add machine script = /usr/local/sbin/smbldap-useradd -w %m log level = 10 printcap name = /etc/printcap load printers = yes cups options = raw log file = /var/log/samba/%m.log max log size = 50 security = user encrypt passwords = yes smb passwd file = /etc/samba/smbpasswd username map = /etc/samba/smbusers socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 local master = yes os level = 65 domain master = yes preferred master = yes domain logons = yes logon path = logon home = wins support = yes dns proxy = no I have been working on this for three days now, and I am about to give up home and move away from ldap. But I don't want to. Any help is greatly appreciated! Thanks in advance. -Al -- John H Terpstra Samba-Team Member Phone: +1 (650) 580-8668 Author: The Official Samba-3 HOWTO Reference Guide, ISBN: 0131453556 Samba-3 by Example, ISBN: 0131472216 Hardening Linux, ISBN: 0072254971 Other books in production. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] error: modify/delete: sambaLMPassword: no such value
Hello, Just today I started getting this error message when the user changes his password using smbpasswd. The password does change. But I see this error message in the log file and the machine 127.0.0.1 rejected the password change: Error was : RAP86: The specified password is invalid. Failed to change password for luser2 Jul 25 22:44:53 sambaserver1 smbd[18878]: ldapsam_update_sam_account: failed to modify user with uid = luser2, error: modify/delete: sambaLMPassword: no such value (Success) Jul 25 22:44:53 sambaserver1 smbd[18878]: [2005/07/25 22:44:53, 0] libsmb/smbencrypt.c:decode_pw_buffer(539) Jul 25 22:44:53 sambaserver1 smbd[18878]: decode_pw_buffer: incorrect password length (481736093). Jul 25 22:44:53 sambaserver1 smbd[18878]: [2005/07/25 22:44:53, 0] libsmb/smbencrypt.c:decode_pw_buffer(540) Jul 25 22:44:53 sambaserver1 smbd[18878]: decode_pw_buffer: check that 'encrypt passwords = yes' Jul 25 22:44:53 sambaserver1 samba(pam_unix)[18878]: session closed for user luser2 __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] trust relationship
hi i want to create Enterprise wide domain trust relationships between samba domains / domain controllers. And with that i want to achieve 1- complete directory replication, (like Additional domain controller) 2- user account migration between domains, 3- policy enforcement on all the domains from a single domain, 4- delegated administration of domains So how should i do all this PS. currently i've created a samba DC, integrated with ldap, that is authenticating winxp clients. And iam creating another domain controller in order to make trusts amongs these two. -- Abubakar, __ www.bakars.com -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Réponse automatique d'absence du bureau : C riminal
je suis absent je prendrai connaissance de votre mail à mon retour en Aout = AVERTISSEMENT: Ce courriel (incluant ses eventuelles pieces jointes) peut contenir des informations confidentielles et/ou protegees. Il est adresse a l'intention exclusive du destinataire. Si vous l'avez recu par erreur, merci d'en avertir immediatement l'expediteur et de l'effacer ainsi que toute copie. Toute utilisation non autorisee prealablement par l'expediteur est interdite. Ce courriel ne reflete pas necessairement les positions d'EADS SPACE Transportation (EADS-ST). Il ne peut engager EADS-ST que s'il emane d'une personne dument mandatee a cet effet et sous reserve d'une notification formelle par telecopie ou par courrier postal separe. EADS-ST et les autres societes du groupe EADS declinent toute responsabilite en cas de corruption par virus, d'alteration ou de falsification de ce courriel lors de sa transmission par voie electronique. DISCLAIMER: This email (including any attachments) may contain confidential and/or privileged information. This email is for the intended addressee only. If you have received it in error, please notify the sender immediately and delete this email and any copies. Any use of this email is prohibited without the sender's prior consent. This email may not reflect the views of EADS SPACE Transportation (EADS-ST). Nothing in this email shall bind EADS-ST unless endorsed by a duly authorised representative and subject to a formal notification independent of this email either by fax or by post mail. EADS-ST and the other companies of the EADS group refuse any and all liabilities if this email transmission was virus corrupted, altered or falsified. === EADS SPACE Transportation SAS (393 341 516 RCS Paris) - 37 Boulevard de Montmorency - 75016 PARIS - France http://www.eads.net = PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING: http://www.catb.org/~esr/faqs/smart-questions.html
domain trust relationship
hi i want to create Enterprise wide domain trust relationships between samba domains / domain controllers. And with that i want to achieve 1- complete directory replication, (like Additional domain controller) 2- user account migration between domains, 3- policy enforcement on all the domains from a single domain, 4- delegated administration of domains So how should i do all this PS. currently i've created a samba DC, integrated with ldap, that is authenticating winxp clients. And iam creating another domain controller in order to make trusts amongs these two. -- Abubakar, __ www.bakars.com PLEASE READ THIS IMPORTANT ETIQUETTE MESSAGE BEFORE POSTING: http://www.catb.org/~esr/faqs/smart-questions.html
svn commit: samba r8752 - in branches/SAMBA_4_0/source: include libnet utils/net
Author: abartlet Date: 2005-07-25 06:33:51 + (Mon, 25 Jul 2005) New Revision: 8752 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8752 Log: With all the infrustructure done, details like a SamSync migration into LDB are actually quite easy. This brings us the users, and sets basic domain information. You are expected to have provisioned with the settings for the target domain, and have joined the domain as a BDC. Then simply 'net samsync'. Now we just need to flesh out the delta types. Andrew Bartlett Added: branches/SAMBA_4_0/source/libnet/libnet_samsync_ldb.c Modified: branches/SAMBA_4_0/source/include/structs.h branches/SAMBA_4_0/source/libnet/config.mk branches/SAMBA_4_0/source/libnet/libnet_vampire.h branches/SAMBA_4_0/source/utils/net/net.c branches/SAMBA_4_0/source/utils/net/net_vampire.c Changeset: Sorry, the patch is too large (526 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8752
Re: svn commit: samba r8736 - in branches/SAMBA_4_0/source/lib/ldb/ldb_tdb: .
On Sun, 2005-07-24 at 12:38 +, [EMAIL PROTECTED] wrote: Author: tridge Date: 2005-07-24 12:38:42 + (Sun, 24 Jul 2005) New Revision: 8736 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8736 Log: this fixes the ldb speed (raises BENCH-WINS from 15 ops/sec to over 4000) simo, we need to be careful to cope with this sort of direct dn query efficiently Sorry it must have been an oversight when I split EQUALITY from other searches like PRESENT, thanks for fixing it. Simo. -- Simo Sorce- [EMAIL PROTECTED] Samba Team- http://www.samba.org Italian Site - http://samba.xsec.it
svn commit: samba r8753 - in branches/SAMBA_4_0/source/ntvfs/posix: .
Author: tridge Date: 2005-07-25 10:40:17 + (Mon, 25 Jul 2005) New Revision: 8753 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8753 Log: fixed directory handling on systems that do not return . and .. as the first two entries in a directory. This is what caused the FC3 system shelob in the build farm to fail the RAW-UNLINK and RAW-SEARCH tests. Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c Changeset: Modified: branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c === --- branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c2005-07-25 06:33:51 UTC (rev 8752) +++ branches/SAMBA_4_0/source/ntvfs/posix/pvfs_dirlist.c2005-07-25 10:40:17 UTC (rev 8753) @@ -45,6 +45,11 @@ uint32_t name_cache_index; }; +#define DIR_OFFSET_DOT0 +#define DIR_OFFSET_DOTDOT 1 +#define DIR_OFFSET_BASE 2 + + /* a special directory listing case where the pattern has no wildcard. We can just do a single stat() thus avoiding the more expensive directory scan @@ -150,12 +155,29 @@ return NT_STATUS_OK; } +/* + add an entry to the local cache +*/ +static void dcache_add(struct pvfs_dir *dir, const char *name) +{ + struct name_cache_entry *e; + + dir-name_cache_index = (dir-name_cache_index+1) % NAME_CACHE_SIZE; + e = dir-name_cache[dir-name_cache_index]; + + if (e-name) talloc_free(e-name); + + e-name = talloc_strdup(dir-name_cache, name); + e-offset = dir-offset; +} + /* return the next entry */ const char *pvfs_list_next(struct pvfs_dir *dir, uint_t *ofs) { struct dirent *de; + enum protocol_types protocol = dir-pvfs-tcon-smb_conn-negotiate.protocol; /* non-wildcard searches are easy */ if (dir-no_wildcard) { @@ -165,39 +187,58 @@ return dir-single_name; } - if (*ofs != dir-offset) { - seekdir(dir-dir, *ofs); + /* . and .. are handled separately as some unix systems will + not return them first in a directory, but windows client + may assume that these entries always appear first */ + if (*ofs == DIR_OFFSET_DOT) { + (*ofs)++; dir-offset = *ofs; + if (ms_fnmatch(dir-pattern, ., protocol) == 0) { + dcache_add(dir, .); + return .; + } } + + if (*ofs == DIR_OFFSET_DOTDOT) { + (*ofs)++; + dir-offset = *ofs; + if (ms_fnmatch(dir-pattern, .., protocol) == 0) { + dcache_add(dir, ..); + return ..; + } + } + + if (*ofs == DIR_OFFSET_BASE) { + rewinddir(dir-dir); + } else if (*ofs != dir-offset) { + seekdir(dir-dir, (*ofs) - DIR_OFFSET_BASE); + } + dir-offset = *ofs; while ((de = readdir(dir-dir))) { const char *dname = de-d_name; - struct name_cache_entry *e; - if (ms_fnmatch(dir-pattern, dname, - dir-pvfs-tcon-smb_conn-negotiate.protocol) != 0) { + if (strcmp(dname, .) == 0 || + strcmp(dname, ..) == 0) { + continue; + } + + if (ms_fnmatch(dir-pattern, dname, protocol) != 0) { char *short_name = pvfs_short_name_component(dir-pvfs, dname); if (short_name == NULL || - ms_fnmatch(dir-pattern, short_name, - dir-pvfs-tcon-smb_conn-negotiate.protocol) != 0) { + ms_fnmatch(dir-pattern, short_name, protocol) != 0) { talloc_free(short_name); continue; } talloc_free(short_name); } - dir-offset = telldir(dir-dir); + dir-offset = telldir(dir-dir) + DIR_OFFSET_BASE; (*ofs) = dir-offset; - dir-name_cache_index = (dir-name_cache_index+1) % NAME_CACHE_SIZE; - e = dir-name_cache[dir-name_cache_index]; + dcache_add(dir, dname); - if (e-name) talloc_free(e-name); - - e-name = talloc_strdup(dir-name_cache, de-d_name); - e-offset = dir-offset; - - return e-name; + return dname; } dir-end_of_search = True; @@ -228,6 +269,18 @@ struct dirent *de; int i; + if (strcmp(name, .) == 0) { + dir-offset = DIR_OFFSET_DOTDOT; + *ofs = dir-offset; + return NT_STATUS_OK; + } + + if (strcmp(name, ..) == 0) { + dir-offset = DIR_OFFSET_BASE; + *ofs = dir-offset; +
svn commit: samba r8754 - in branches/SOC/SAMBA_4_0/SAMBA_4_0/source/torture/rpc: .
Author: brad Date: 2005-07-25 13:19:21 + (Mon, 25 Jul 2005) New Revision: 8754 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8754 Log: Changing dssync.c to use ldb routines for accessing ldap rather than raw ldap calls. Modified: branches/SOC/SAMBA_4_0/SAMBA_4_0/source/torture/rpc/dssync.c Changeset: Sorry, the patch is too large (263 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8754
svn commit: samba r8755 - branches/SAMBA_3_0/source/utils trunk/source/utils
Author: jerry Date: 2005-07-25 15:04:25 + (Mon, 25 Jul 2005) New Revision: 8755 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8755 Log: more malloc fixes Modified: branches/SAMBA_3_0/source/utils/smbget.c trunk/source/utils/smbget.c Changeset: Modified: branches/SAMBA_3_0/source/utils/smbget.c === --- branches/SAMBA_3_0/source/utils/smbget.c2005-07-25 13:19:21 UTC (rev 8754) +++ branches/SAMBA_3_0/source/utils/smbget.c2005-07-25 15:04:25 UTC (rev 8755) @@ -101,8 +101,8 @@ if(workgroup)strncpy(wg, workgroup, wglen-1); - wgtmp = strndup(wg, wglen); - usertmp = strndup(un, unlen); + wgtmp = SMB_STRNDUP(wg, wglen); + usertmp = SMB_STRNDUP(un, unlen); if(!quiet)printf(Using workgroup %s, %s%s\n, wgtmp, *usertmp?user :guest user, usertmp); free(wgtmp); free(usertmp); } @@ -230,7 +230,7 @@ if(columns) { int required = strlen(name), available = columns - len - strlen([] ); if(required available) asprintf(filename, ...%s, name + required - available + 3); - else filename = strndup(name, available); + else filename = SMB_STRNDUP(name, available); } else filename = SMB_STRDUP(name); fprintf(stderr, \r[%s] %s, filename, status); Modified: trunk/source/utils/smbget.c === --- trunk/source/utils/smbget.c 2005-07-25 13:19:21 UTC (rev 8754) +++ trunk/source/utils/smbget.c 2005-07-25 15:04:25 UTC (rev 8755) @@ -101,8 +101,8 @@ if(workgroup)strncpy(wg, workgroup, wglen-1); - wgtmp = strndup(wg, wglen); - usertmp = strndup(un, unlen); + wgtmp = SMB_STRNDUP(wg, wglen); + usertmp = SMB_STRNDUP(un, unlen); if(!quiet)printf(Using workgroup %s, %s%s\n, wgtmp, *usertmp?user :guest user, usertmp); free(wgtmp); free(usertmp); } @@ -230,7 +230,7 @@ if(columns) { int required = strlen(name), available = columns - len - strlen([] ); if(required available) asprintf(filename, ...%s, name + required - available + 3); - else filename = strndup(name, available); + else filename = SMB_STRNDUP(name, available); } else filename = SMB_STRDUP(name); fprintf(stderr, \r[%s] %s, filename, status);
svn commit: samba r8756 - in trunk/source/lib: .
Author: jra Date: 2005-07-25 18:28:36 + (Mon, 25 Jul 2005) New Revision: 8756 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8756 Log: Add debug messages so we can see what attributes and values are being set/deleted/modified in an ldap query. Jeremy. Modified: trunk/source/lib/smbldap.c Changeset: Modified: trunk/source/lib/smbldap.c === --- trunk/source/lib/smbldap.c 2005-07-25 15:04:25 UTC (rev 8755) +++ trunk/source/lib/smbldap.c 2005-07-25 18:28:36 UTC (rev 8756) @@ -440,6 +440,7 @@ /* Believe it or not, but LDAP will deny a delete and an add at the same time if the values are the same... */ + DEBUG(10,(smbldap_make_mod: attribute |%s| not changed.\n, attribute)); return; } @@ -455,6 +456,7 @@ * in Novell NDS. In NDS you have to first remove attribute and then * you could add new value */ + DEBUG(10,(smbldap_make_mod: deleting attribute |%s| values |%s|\n, attribute, oldval)); smbldap_set_mod(mods, LDAP_MOD_DELETE, attribute, oldval); } @@ -463,6 +465,7 @@ the old value, should it exist. */ if ((newval != NULL) (strlen(newval) 0)) { + DEBUG(10,(smbldap_make_mod: adding attribute |%s| value |%s|\n, attribute)); smbldap_set_mod(mods, LDAP_MOD_ADD, attribute, newval); } }
svn commit: samba r8758 - in branches/SAMBA_4_0/packaging/debian: .
Author: jelmer Date: 2005-07-25 19:30:22 + (Mon, 25 Jul 2005) New Revision: 8758 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8758 Log: Use official version numbering standard for debian packages. Modified: branches/SAMBA_4_0/packaging/debian/changelog Changeset: Modified: branches/SAMBA_4_0/packaging/debian/changelog === --- branches/SAMBA_4_0/packaging/debian/changelog 2005-07-25 18:28:39 UTC (rev 8757) +++ branches/SAMBA_4_0/packaging/debian/changelog 2005-07-25 19:30:22 UTC (rev 8758) @@ -1,4 +1,4 @@ -samba4 (3.9.0-SVN-build-7941-1) unstable; urgency=low +samba4 (3.9.0+SVN7941-1) unstable; urgency=low * New upstream snapshot.
Re: svn commit: samba r8715 - in branches/SAMBA_4_0/source/dsdb/samdb: .
On Fri, 2005-07-22 at 11:32 +, [EMAIL PROTECTED] wrote: Log: - revert the %PRIi64 stuff. Tim, we explicitly check for %llu support in configure, and replace snprintf if the system doesn't support it. Our replacement code does not handle the %PRIi64 stuff, so using it would break us on lots of platforms The problem that I was trying to fix here is that %llu is *not* the correct format string for displaying a uint64_t. The ia64 build machine gives the warning: uint64.c:9: warning: long long unsigned int format, uint64_t arg (arg 2) when trying to compile: uint64_t foo = 1234; printf(%llu\n, foo); the line: printf(%lu\n, foo); doesn't produce a warning. i.e sizeof(long) == sizeof(long long). Using the %PRIu64 stuff, ugly though it is, is the right way to squash these warnings on all platforms. I just checked some other build farm machines. There are no warnings of this type on Debian PPC/64 size but they are present on SLES9 x64_64. Tim.
svn commit: samba r8759 - in branches/SAMBA_4_0/source: libnet torture/libnet
Author: mimir Date: 2005-07-25 22:00:56 + (Mon, 25 Jul 2005) New Revision: 8759 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8759 Log: Another couple of fields in usermod routine. rafal Modified: branches/SAMBA_4_0/source/libnet/composite.h branches/SAMBA_4_0/source/libnet/userman.c branches/SAMBA_4_0/source/torture/libnet/userman.c Changeset: Modified: branches/SAMBA_4_0/source/libnet/composite.h === --- branches/SAMBA_4_0/source/libnet/composite.h2005-07-25 19:30:22 UTC (rev 8758) +++ branches/SAMBA_4_0/source/libnet/composite.h2005-07-25 22:00:56 UTC (rev 8759) @@ -61,6 +61,9 @@ #define USERMOD_FIELD_ACCOUNT_NAME( 0x0001 ) #define USERMOD_FIELD_FULL_NAME ( 0x0002 ) +#define USERMOD_FIELD_DESCRIPTION ( 0x0010 ) +#define USERMOD_FIELD_LOGON_SCRIPT( 0x0100 ) +#define USERMOD_FIELD_PROFILE_PATH( 0x0200 ) struct libnet_rpc_usermod { struct { @@ -72,6 +75,9 @@ const char *account_name; const char *full_name; + const char *description; + const char *logon_script; + const char *profile_path; } change; } in; }; Modified: branches/SAMBA_4_0/source/libnet/userman.c === --- branches/SAMBA_4_0/source/libnet/userman.c 2005-07-25 19:30:22 UTC (rev 8758) +++ branches/SAMBA_4_0/source/libnet/userman.c 2005-07-25 22:00:56 UTC (rev 8759) @@ -496,6 +496,30 @@ i-info8.full_name.string = s-change.full_name; s-change.fields ^= USERMOD_FIELD_FULL_NAME; + + } else if (s-change.fields USERMOD_FIELD_DESCRIPTION) { + level = 13; + i-info13.description.length = 2*strlen_m(s-change.description); + i-info13.description.size = 2*strlen_m(s-change.description); + i-info13.description.string = s-change.description; + + s-change.fields ^= USERMOD_FIELD_DESCRIPTION; + + } else if (s-change.fields USERMOD_FIELD_LOGON_SCRIPT) { + level = 11; + i-info11.logon_script.length = 2*strlen_m(s-change.logon_script); + i-info11.logon_script.size = 2*strlen_m(s-change.logon_script); + i-info11.logon_script.string = s-change.logon_script; + + s-change.fields ^= USERMOD_FIELD_LOGON_SCRIPT; + + } else if (s-change.fields USERMOD_FIELD_PROFILE_PATH) { + level = 12; + i-info12.profile_path.length = 2*strlen_m(s-change.profile_path); + i-info12.profile_path.size = 2*strlen_m(s-change.profile_path); + i-info12.profile_path.string = s-change.profile_path; + + s-change.fields ^= USERMOD_FIELD_PROFILE_PATH; } } Modified: branches/SAMBA_4_0/source/torture/libnet/userman.c === --- branches/SAMBA_4_0/source/torture/libnet/userman.c 2005-07-25 19:30:22 UTC (rev 8758) +++ branches/SAMBA_4_0/source/torture/libnet/userman.c 2005-07-25 22:00:56 UTC (rev 8759) @@ -414,8 +414,11 @@ int i; struct usermod_change changes[] = { - { USERMOD_FIELD_ACCOUNT_NAME, changed, NULL }, - { USERMOD_FIELD_FULL_NAME,NULL, Testing full account name } + { USERMOD_FIELD_ACCOUNT_NAME, changed, NULL, NULL, NULL, NULL }, + { USERMOD_FIELD_FULL_NAME,NULL, Testing full account name, NULL, NULL, NULL }, + { USERMOD_FIELD_DESCRIPTION, NULL, NULL, Description of tested account, NULL, NULL }, + { USERMOD_FIELD_LOGON_SCRIPT, NULL, NULL, NULL, test_logon.cmd, NULL }, + { USERMOD_FIELD_PROFILE_PATH, NULL, NULL, NULL, NULL, TESTSRV\\profiles\\test } }; mem_ctx = talloc_init(test_userdel);
svn commit: samba r8760 - in branches/SAMBA_4_0/source: libcli/composite libnet
Author: mimir Date: 2005-07-25 22:56:28 + (Mon, 25 Jul 2005) New Revision: 8760 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8760 Log: Rework monitor messaging code a bit, as Metze once suggested. enum type has now been replaced with unsigned 32-bit field and message data is passed as void pointer. This allows various extension implementers to plug their monitor messages in more easily. rafal Added: branches/SAMBA_4_0/source/libnet/userinfo.h branches/SAMBA_4_0/source/libnet/userman.h Modified: branches/SAMBA_4_0/source/libcli/composite/monitor.h Changeset: Modified: branches/SAMBA_4_0/source/libcli/composite/monitor.h === --- branches/SAMBA_4_0/source/libcli/composite/monitor.h2005-07-25 22:00:56 UTC (rev 8759) +++ branches/SAMBA_4_0/source/libcli/composite/monitor.h2005-07-25 22:56:28 UTC (rev 8760) @@ -21,35 +21,20 @@ */ /* - * Monitor structure definition. Composite function monitoring allows client - * application to be notified on function progress. This enables eg. gui - * client to display progress bars, status messages, etc. + * Monitor structure and message types definitions. Composite function monitoring + * allows client application to be notified on function progress. This enables + * eg. gui client to display progress bars, status messages, etc. */ -enum monitor_type { - rpc_create_user, - rpc_open_user, - rpc_query_user, - rpc_close_user -}; -struct monitor_msg { - enum monitor_type type; - union monitor_data { - struct rpc_create_user { - uint32_t rid; - } rpc_create_user; +#define rpc_create_user(0x0001)/* userman.h */ +#define rpc_open_user (0x0002)/* userinfo.h */ +#define rpc_query_user (0x0003)/* userinfo.h */ +#define rpc_close_user (0x0004)/* userinfo.h */ - struct rpc_open_user { - uint32_t rid, access_mask; - } rpc_open_user; - struct rpc_query_user { - uint16_t level; - } rpc_query_user; - - struct rpc_close_user { - uint32_t rid; - } rpc_close_user; - } data; +struct monitor_msg { + uint32_t type; + void *data; + size_t data_size; }; Added: branches/SAMBA_4_0/source/libnet/userinfo.h === --- branches/SAMBA_4_0/source/libnet/userinfo.h 2005-07-25 22:00:56 UTC (rev 8759) +++ branches/SAMBA_4_0/source/libnet/userinfo.h 2005-07-25 22:56:28 UTC (rev 8760) @@ -0,0 +1,36 @@ +/* + Unix SMB/CIFS implementation. + + Copyright (C) Rafal Szczesniak 2005 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + + +/* + * Monitor messages sent from userinfo.c functions + */ + +struct msg_rpc_open_user { + uint32_t rid, access_mask; +}; + +struct msg_rpc_query_user { + uint16_t level; +}; + +struct msg_rpc_close_user { + uint32_t rid; +}; Added: branches/SAMBA_4_0/source/libnet/userman.h === --- branches/SAMBA_4_0/source/libnet/userman.h 2005-07-25 22:00:56 UTC (rev 8759) +++ branches/SAMBA_4_0/source/libnet/userman.h 2005-07-25 22:56:28 UTC (rev 8760) @@ -0,0 +1,28 @@ +/* + Unix SMB/CIFS implementation. + + Copyright (C) Rafal Szczesniak 2005 + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +*/ + + +/* + * Monitor messages sent
Re: svn commit: samba r8715 - in branches/SAMBA_4_0/source/dsdb/samdb: .
Tim, btw, does this mean that sizeof(uint64_t) != sizeof(long long) ? don't worry, I just checked the configure output in the build farm for deckchair and found: checking size of long long... 8 so it is a 64 bit int. That means that uint64_t is the same type as unsigned long long. So why does the compiler give a warning about %llu? We know it supports %llu as it passes that configure test. Anyway, this means the problem is just a warning workaround, not anything more serious. So a configure test for %PRIu64 to conditionally use the 'right' format string for this will do the trick. Or we could do what we do in other places and just cast to the format type in the printf call. Cheers, Tridge
Build status as of Tue Jul 26 00:00:02 2005
URL: http://build.samba.org/ --- /home/build/master/cache/broken_results.txt.old 2005-07-25 00:00:18.0 + +++ /home/build/master/cache/broken_results.txt 2005-07-26 00:00:10.0 + @@ -1,16 +1,16 @@ -Build status as of Mon Jul 25 00:00:02 2005 +Build status as of Tue Jul 26 00:00:02 2005 Build counts: Tree Total Broken Panic -ccache 34 7 0 -distcc 34 5 0 -lorikeet-heimdal 23 10 0 +ccache 35 7 0 +distcc 35 5 0 +lorikeet-heimdal 22 10 0 ppp 20 2 0 -rsync33 2 0 +rsync35 3 0 samba-docs 0 0 0 -samba4 36 13 0 -samba_3_034 4 0 -smb-build30 4 0 +samba4 36 9 0 +samba_3_035 5 0 +smb-build31 4 0 talloc 33 12 0 -tdb 33 12 0 +tdb 34 14 0
svn commit: samba r8762 - in branches/SAMBA_3_0/source: include lib
Author: jra Date: 2005-07-26 00:10:45 + (Tue, 26 Jul 2005) New Revision: 8762 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8762 Log: Attempt to fix the winbindd crashing bug on Solaris (can't remember the bugid). Make the functions in lib/util_unistr.c odd-alignment safe using some evil macros. Needs testing on bigendian. Jeremy. Modified: branches/SAMBA_3_0/source/include/smb.h branches/SAMBA_3_0/source/lib/util_unistr.c Changeset: Sorry, the patch is too large (849 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8762
svn commit: samba r8763 - in trunk/source: include lib
Author: jra Date: 2005-07-26 00:10:47 + (Tue, 26 Jul 2005) New Revision: 8763 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8763 Log: Attempt to fix the winbindd crashing bug on Solaris (can't remember the bugid). Make the functions in lib/util_unistr.c odd-alignment safe using some evil macros. Needs testing on bigendian. Jeremy. Modified: trunk/source/include/smb.h trunk/source/lib/util_unistr.c Changeset: Sorry, the patch is too large (849 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8763
svn commit: samba r8764 - in branches/SOC/SAMBA_3_0/source: . include libmsrpc
Author: skel Date: 2005-07-26 01:11:02 + (Tue, 26 Jul 2005) New Revision: 8764 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8764 Log: added libmsrpc.c and libmsrpc.h, with simple functions to initialize a CacServerHandle and connect to a server. moved headers into include/ modified Makefile.in to add rules for libmsrpc, although I'm not sure if the shared object is currently linking properly Added: branches/SOC/SAMBA_3_0/source/include/cac_inludes.h branches/SOC/SAMBA_3_0/source/include/libmsrpc.h branches/SOC/SAMBA_3_0/source/include/rpc_includes.h branches/SOC/SAMBA_3_0/source/include/rpc_proto.h branches/SOC/SAMBA_3_0/source/libmsrpc/libmsrpc.c Removed: branches/SOC/SAMBA_3_0/source/libmsrpc/rpc_includes.h branches/SOC/SAMBA_3_0/source/libmsrpc/rpc_proto.h Modified: branches/SOC/SAMBA_3_0/source/Makefile.in Changeset: Sorry, the patch is too large (5711 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8764
svn commit: samba r8765 - in branches/SOC/SAMBA_4_0/SAMBA_4_0/source/torture/rpc: .
Author: brad Date: 2005-07-26 01:35:38 + (Tue, 26 Jul 2005) New Revision: 8765 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8765 Log: more ldb changes to test_CompleteJoin(), it mostly kind of almost works now! Modified: branches/SOC/SAMBA_4_0/SAMBA_4_0/source/torture/rpc/dssync.c Changeset: Modified: branches/SOC/SAMBA_4_0/SAMBA_4_0/source/torture/rpc/dssync.c === --- branches/SOC/SAMBA_4_0/SAMBA_4_0/source/torture/rpc/dssync.c 2005-07-26 01:11:02 UTC (rev 8764) +++ branches/SOC/SAMBA_4_0/SAMBA_4_0/source/torture/rpc/dssync.c 2005-07-26 01:35:38 UTC (rev 8765) @@ -123,46 +123,65 @@ return ctx; } -static void test_destroy_context(struct DsSyncTest *ctx) +static void test_destroy_context(struct DsSyncTest *ctx, struct ldb_context *ldb_ctx) { { const char *ldif; - struct ldap_message *req; //, *rep; - NTSTATUS rtn; - BOOL rtn_status = False; + //struct ldap_message *req, *rep; + struct ldb_ldif *ldb_req; + int rtn; + // * BOOL rtn_status = False; + rtn = ldb_connect(ldb_ctx,ctx-ldap_url,0,NULL); + if (rtn != 0) { + printf(test_destroy_context(): ldb_connect() failed: %s.\n, + ldb_errstring(ldb_ctx)); + return; + } ldif = talloc_asprintf(ctx, dn: %s\n changetype: delete\n, ctx-new_dc.dc_info2.ntds_dn); + + ldb_req = ldb_ldif_read_string(ldb_ctx,ldif); + printf(test_destroy_context(): deleting %s.\n,ctx-new_dc.dc_info2.ntds_dn); + rtn = ldb_delete(ldb_ctx,ctx-new_dc.dc_info2.ntds_dn); + if (rtn != 0) { + printf(test_destroy_context(): ldb_delete() failed: %s.\n, + ldb_errstring(ldb_ctx)); + return; + } - //req = ldap_ldif2msg(ctx, ldif); - //req.messageid = ; - req-type = LDAP_TAG_DelRequest; - req-r.DelRequest.dn = ctx-new_dc.dc_info2.ntds_dn; - //req.num_controls = ; - //req.controls = ; + // * req = ldap_ldif2msg(ctx, ldif); + // * req.messageid = ; + //req-type = LDAP_TAG_DelRequest; + //req-r.DelRequest.dn = ctx-new_dc.dc_info2.ntds_dn; + // * req.num_controls = ; + // * req.controls = ; - rtn = ldap_transaction(ctx-admin.ldap.conn, req); + //rtn = ldap_transaction(ctx-admin.ldap.conn, req); } { const char *ldif; - struct ldap_message *req; //, *rep; - NTSTATUS rtn; + struct ldb_ldif *ldb_req; + //struct ldap_message *req, *rep; + int rtn; ldif = talloc_asprintf(ctx, dn: %s\n changetype: delete\n, ctx-new_dc.dc_info2.server_dn); - + ldb_req = ldb_ldif_read_string(ldb_ctx,ldif); + rtn = ldb_delete(ldb_ctx,ctx-new_dc.dc_info2.server_dn); + printf(test_destroy_context(): deleting %s.\n,ctx-new_dc.dc_info2.server_dn); //req = ldap_ldif2msg(ctx, ldif); - req-type = LDAP_TAG_DelRequest; - req-r.DelRequest.dn = ctx-new_dc.dc_info2.ntds_dn; + //req-type = LDAP_TAG_DelRequest; + //req-r.DelRequest.dn = ctx-new_dc.dc_info2.ntds_dn; - rtn = ldap_transaction(ctx-admin.ldap.conn, req); + //rtn = ldap_transaction(ctx-admin.ldap.conn, req); } if (ctx-new_dc.join) { @@ -178,16 +197,12 @@ BOOL ret = True; struct event_context *event = NULL; - printf(test_DsBind():0\n); - status = dcerpc_pipe_connect_b(ctx, b-pipe, ctx-drsuapi_binding, DCERPC_DRSUAPI_UUID, DCERPC_DRSUAPI_VERSION, credentials, event); - printf(test_DsBind():1\n); - if (!NT_STATUS_IS_OK(status)) { printf(Failed to connect to server as a BDC: %s\n, nt_errstr(status)); return False; @@ -242,9 +257,6 @@ struct drsuapi_DsNameString names[1]; BOOL ret = True; - - printf(\ttest_GetInfo():0\n); - r.in.bind_handle= ctx-admin.drsuapi.bind_handle; r.in.level = 1; r.in.req.req1.unknown1 =
svn commit: samba r8766 - in branches/SOC/SAMBA_4_0: . source/torture source/torture/rpc
Author: brad Date: 2005-07-26 01:56:00 + (Tue, 26 Jul 2005) New Revision: 8766 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8766 Log: Trying to fix the crazy nesting in the branch Added: branches/SOC/SAMBA_4_0/source/torture/rpc/dssync.c Modified: branches/SOC/SAMBA_4_0/howto.txt branches/SOC/SAMBA_4_0/source/torture/config.mk branches/SOC/SAMBA_4_0/source/torture/rpc/drsuapi.c branches/SOC/SAMBA_4_0/source/torture/torture.c Changeset: Sorry, the patch is too large (1178 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8766
svn commit: samba r8767 - in branches/SOC/SAMBA_3_0/source/client: .
Author: kalim Date: 2005-07-26 01:57:14 + (Tue, 26 Jul 2005) New Revision: 8767 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8767 Log: Changed #include directives back to quoted form - caught by abartlett. Modified: branches/SOC/SAMBA_3_0/source/client/client.c Changeset: Modified: branches/SOC/SAMBA_3_0/source/client/client.c === --- branches/SOC/SAMBA_3_0/source/client/client.c 2005-07-26 01:56:00 UTC (rev 8766) +++ branches/SOC/SAMBA_3_0/source/client/client.c 2005-07-26 01:57:14 UTC (rev 8767) @@ -24,8 +24,8 @@ #define NO_SYSLOG -#include includes.h -#include libsmbclient.h +#include includes.h +#include libsmbclient.h #include client/client_proto.h #include client/get_auth_data_fn.h #ifndef REGISTER
svn commit: samba r8768 - in branches/SOC/SAMBA_3_0/source/client: .
Author: kalim Date: 2005-07-26 02:01:15 + (Tue, 26 Jul 2005) New Revision: 8768 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8768 Log: Authentication function for libsmbclient. Needs some work, but is ok for testing puposes. -Kalim Added: branches/SOC/SAMBA_3_0/source/client/get_auth_data_fn.h Changeset: Added: branches/SOC/SAMBA_3_0/source/client/get_auth_data_fn.h === --- branches/SOC/SAMBA_3_0/source/client/get_auth_data_fn.h 2005-07-26 01:57:14 UTC (rev 8767) +++ branches/SOC/SAMBA_3_0/source/client/get_auth_data_fn.h 2005-07-26 02:01:15 UTC (rev 8768) @@ -0,0 +1,52 @@ +static void +get_auth_data_fn(const char * pServer, + const char * pShare, + char * pWorkgroup, + int maxLenWorkgroup, + char * pUsername, + int maxLenUsername, + char * pPassword, + int maxLenPassword) + +{ +char temp[128]; + +fprintf(stdout, Workgroup: [%s] , pWorkgroup); +fgets(temp, sizeof(temp), stdin); + +if (temp[strlen(temp) - 1] == '\n') /* A new line? */ +{ +temp[strlen(temp) - 1] = '\0'; +} + +if (temp[0] != '\0') +{ +strncpy(pWorkgroup, temp, maxLenWorkgroup - 1); +} + +fprintf(stdout, Username: [%s] , pUsername); +fgets(temp, sizeof(temp), stdin); + +if (temp[strlen(temp) - 1] == '\n') /* A new line? */ +{ +temp[strlen(temp) - 1] = '\0'; +} + +if (temp[0] != '\0') +{ +strncpy(pUsername, temp, maxLenUsername - 1); +} + +fprintf(stdout, Password: ); +fgets(temp, sizeof(temp), stdin); + +if (temp[strlen(temp) - 1] == '\n') /* A new line? */ +{ +temp[strlen(temp) - 1] = '\0'; +} + +if (temp[0] != '\0') +{ +strncpy(pPassword, temp, maxLenPassword - 1); +} +}
svn commit: samba r8769 - in branches/SOC/SAMBA_4_0/SAMBA_4_0/source: heimdal/lib/asn1 torture/rpc
Author: brad Date: 2005-07-26 02:48:29 + (Tue, 26 Jul 2005) New Revision: 8769 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8769 Log: merging latest changes Modified: branches/SOC/SAMBA_4_0/SAMBA_4_0/source/heimdal/lib/asn1/parse.c branches/SOC/SAMBA_4_0/SAMBA_4_0/source/heimdal/lib/asn1/parse.h branches/SOC/SAMBA_4_0/SAMBA_4_0/source/torture/rpc/dssync.c Changeset: Modified: branches/SOC/SAMBA_4_0/SAMBA_4_0/source/heimdal/lib/asn1/parse.c === --- branches/SOC/SAMBA_4_0/SAMBA_4_0/source/heimdal/lib/asn1/parse.c 2005-07-26 02:01:15 UTC (rev 8768) +++ branches/SOC/SAMBA_4_0/SAMBA_4_0/source/heimdal/lib/asn1/parse.c 2005-07-26 02:48:29 UTC (rev 8769) @@ -1,7 +1,7 @@ -/* A Bison parser, made by GNU Bison 1.875d. */ +/* A Bison parser, made by GNU Bison 1.875c. */ /* Skeleton parser for Yacc-like parsing with Bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -222,7 +222,7 @@ /* A type that is properly aligned for any stack member. */ union yyalloc { - short int yyss; + short yyss; YYSTYPE yyvs; }; @@ -232,7 +232,7 @@ /* The size of an array large to enough to hold all stacks, each with N elements. */ # define YYSTACK_BYTES(N) \ - ((N) * (sizeof (short int) + sizeof (YYSTYPE))\ + ((N) * (sizeof (short) + sizeof (YYSTYPE)) \ + YYSTACK_GAP_MAXIMUM) /* Copy COUNT objects from FROM to TO. The source and destination do @@ -274,7 +274,7 @@ #if defined (__STDC__) || defined (__cplusplus) typedef signed char yysigned_char; #else - typedef short int yysigned_char; + typedef short yysigned_char; #endif /* YYFINAL -- State number of the termination state. */ @@ -398,7 +398,7 @@ # ifdef YYPRINT /* YYTOKNUM[YYLEX-NUM] -- Internal token number corresponding to token YYLEX-NUM. */ -static const unsigned short int yytoknum[] = +static const unsigned short yytoknum[] = { 0, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271, 272, 273, 274, @@ -638,12 +638,12 @@ #if defined (__STDC__) || defined (__cplusplus) static void -yy_stack_print (short int *bottom, short int *top) +yy_stack_print (short *bottom, short *top) #else static void yy_stack_print (bottom, top) -short int *bottom; -short int *top; +short *bottom; +short *top; #endif { YYFPRINTF (stderr, Stack now); @@ -910,9 +910,9 @@ to reallocate them elsewhere. */ /* The state stack. */ - short int yyssa[YYINITDEPTH]; - short int *yyss = yyssa; - register short int *yyssp; + shortyyssa[YYINITDEPTH]; + short *yyss = yyssa; + register short *yyssp; /* The semantic value stack. */ YYSTYPE yyvsa[YYINITDEPTH]; @@ -949,7 +949,6 @@ yyssp = yyss; yyvsp = yyvs; - goto yysetstate; /*. @@ -975,7 +974,7 @@ these so that the 's don't force the real ones into memory. */ YYSTYPE *yyvs1 = yyvs; - short int *yyss1 = yyss; + short *yyss1 = yyss; /* Each stack pointer address is followed by the size of the @@ -1003,7 +1002,7 @@ yystacksize = YYMAXDEPTH; { - short int *yyss1 = yyss; + short *yyss1 = yyss; union yyalloc *yyptr = (union yyalloc *) YYSTACK_ALLOC (YYSTACK_BYTES (yystacksize)); if (! yyptr) @@ -1426,8 +1425,8 @@ } -/* Line 1010 of yacc.c. */ -#line 1431 $base.c +/* Line 1000 of yacc.c. */ +#line 1430 $base.c yyvsp -= yylen; yyssp -= yylen; Modified: branches/SOC/SAMBA_4_0/SAMBA_4_0/source/heimdal/lib/asn1/parse.h === --- branches/SOC/SAMBA_4_0/SAMBA_4_0/source/heimdal/lib/asn1/parse.h 2005-07-26 02:01:15 UTC (rev 8768) +++ branches/SOC/SAMBA_4_0/SAMBA_4_0/source/heimdal/lib/asn1/parse.h 2005-07-26 02:48:29 UTC (rev 8769) @@ -1,7 +1,7 @@ -/* A Bison parser, made by GNU Bison 1.875d. */ +/* A Bison parser, made by GNU Bison 1.875c. */ /* Skeleton parser for Yacc-like parsing with Bison, - Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -102,7 +102,7 @@ Member *member; char *defval; } YYSTYPE; -/* Line 1285 of yacc.c. */ +/* Line 1275 of yacc.c. */ #line
svn commit: samba r8770 - in branches/SOC/SAMBA_4_0: .
Author: brad Date: 2005-07-26 02:53:43 + (Tue, 26 Jul 2005) New Revision: 8770 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8770 Log: removing nested branch Removed: branches/SOC/SAMBA_4_0/SAMBA_4_0/ Changeset:
svn commit: samba r8771 - in branches/SAMBA_4_0/source/libnet: .
Author: abartlet Date: 2005-07-26 03:11:16 + (Tue, 26 Jul 2005) New Revision: 8771 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8771 Log: Extend the SamSync code out to groups and aliases, as well as deleting. Andrew Bartlett Modified: branches/SAMBA_4_0/source/libnet/libnet_samsync_ldb.c Changeset: Sorry, the patch is too large (347 lines) to include; please use WebSVN to see it! WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8771
svn commit: samba r8772 - in branches/SAMBA_4_0/source/script/tests: .
Author: abartlet Date: 2005-07-26 03:46:41 + (Tue, 26 Jul 2005) New Revision: 8772 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8772 Log: Include the ldap ejs test in the standard 'make test' Andrew Bartlett Modified: branches/SAMBA_4_0/source/script/tests/test_ldap.sh Changeset: Modified: branches/SAMBA_4_0/source/script/tests/test_ldap.sh === --- branches/SAMBA_4_0/source/script/tests/test_ldap.sh 2005-07-26 03:11:16 UTC (rev 8771) +++ branches/SAMBA_4_0/source/script/tests/test_ldap.sh 2005-07-26 03:46:41 UTC (rev 8772) @@ -51,3 +51,7 @@ LDBDIR=lib/ldb export LDBDIR testit ldb tests $LDBDIR/tests/test-tdb.sh + +SCRIPTDIR=../testprogs/ejs + +testit ejs ldap test $SCRIPTDIR/ldap.js $SERVER -U$USERNAME%$PASSWORD || failed=`expr $failed + 1`
svn commit: samba r8773 - in branches/SAMBA_4_0/source/torture/raw: .
Author: tridge Date: 2005-07-26 04:47:16 + (Tue, 26 Jul 2005) New Revision: 8773 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8773 Log: fixed another dependency on directory ordering in RAW-SEARCH Thanks to andrew bartlett for helping to track this down (his was the only system that hit this) Modified: branches/SAMBA_4_0/source/torture/raw/search.c Changeset: Modified: branches/SAMBA_4_0/source/torture/raw/search.c === --- branches/SAMBA_4_0/source/torture/raw/search.c 2005-07-26 03:46:41 UTC (rev 8772) +++ branches/SAMBA_4_0/source/torture/raw/search.c 2005-07-26 04:47:16 UTC (rev 8773) @@ -799,6 +799,8 @@ CHECK_STATUS(status, NT_STATUS_OK); CHECK_VALUE(result.count, 2); + result.count = 0; + printf(Changing attributes and deleting\n); smbcli_open(cli-tree, BASEDIR \\T003-03.txt.2, O_CREAT|O_RDWR, DENY_NONE); smbcli_open(cli-tree, BASEDIR \\T013-13.txt.2, O_CREAT|O_RDWR, DENY_NONE); @@ -824,7 +826,7 @@ status = smb_raw_search_next(cli-tree, mem_ctx, io2, result, multiple_search_callback); CHECK_STATUS(status, NT_STATUS_OK); - CHECK_VALUE(result.count, 22); + CHECK_VALUE(result.count, 20); ret = check_result(result, t009-9.txt, True, FILE_ATTRIBUTE_ARCHIVE); ret = check_result(result, t014-14.txt, False, 0);
svn commit: samba r8774 - in branches/SAMBA_4_0/source/auth/gensec: .
Author: tridge Date: 2005-07-26 05:07:15 + (Tue, 26 Jul 2005) New Revision: 8774 WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=revroot=sambarev=8774 Log: make some gensec errors a bit less verbose Modified: branches/SAMBA_4_0/source/auth/gensec/gensec.c branches/SAMBA_4_0/source/auth/gensec/gensec_gssapi.c Changeset: Modified: branches/SAMBA_4_0/source/auth/gensec/gensec.c === --- branches/SAMBA_4_0/source/auth/gensec/gensec.c 2005-07-26 04:47:16 UTC (rev 8773) +++ branches/SAMBA_4_0/source/auth/gensec/gensec.c 2005-07-26 05:07:15 UTC (rev 8774) @@ -332,7 +332,7 @@ if (gensec_security-ops-client_start) { status = gensec_security-ops-client_start(gensec_security); if (!NT_STATUS_IS_OK(status)) { - DEBUG(1, (Failed to start GENSEC client mech %s: %s\n, + DEBUG(2, (Failed to start GENSEC client mech %s: %s\n, gensec_security-ops-name, nt_errstr(status))); } return status; Modified: branches/SAMBA_4_0/source/auth/gensec/gensec_gssapi.c === --- branches/SAMBA_4_0/source/auth/gensec/gensec_gssapi.c 2005-07-26 04:47:16 UTC (rev 8773) +++ branches/SAMBA_4_0/source/auth/gensec/gensec_gssapi.c 2005-07-26 05:07:15 UTC (rev 8774) @@ -256,7 +256,7 @@ GSS_C_NT_HOSTBASED_SERVICE, gensec_gssapi_state-server_name); if (maj_stat) { - DEBUG(1, (GSS Import name of %s failed: %s\n, + DEBUG(2, (GSS Import name of %s failed: %s\n, (char *)name_token.value, gssapi_error_string(gensec_gssapi_state, maj_stat, min_stat))); return NT_STATUS_INVALID_PARAMETER; @@ -271,7 +271,7 @@ GSS_C_NT_USER_NAME, gensec_gssapi_state-client_name); if (maj_stat) { - DEBUG(1, (GSS Import name of %s failed: %s\n, + DEBUG(2, (GSS Import name of %s failed: %s\n, (char *)name_token.value, gssapi_error_string(gensec_gssapi_state, maj_stat, min_stat))); return NT_STATUS_UNSUCCESSFUL;