summaryrefslogtreecommitdiffstats
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix a memleak in construct_printer_info_7()Volker Lendecke2008-05-201-2/+5
| | | | | Also fix a "ignoring asprintf result" warning (cherry picked from commit 64d21f39636019d6a17f84efc6fb9e61e67a235e)
* Restructuring of code to fix #5460. Remove searchJeremy Allison2008-05-202-38/+12
| | | | | | | | by name code from conn, we were already doing the same check in the dfs_redirect() function, so move it into parse_dfs_path() instead. Jeremy. (cherry picked from commit f1021e4c8d5ace6356c5b2106153288a6eb89a6b)
* build: fix the build w/o ldap.Günther Deschner2008-05-191-1/+3
| | | | | Guenther (cherry picked from commit a159ec5f1f3ec8e9232b8f3230a996a3f9986bc1)
* Fix Bug #5461 and implement a very basic _samr_GetDisplayEnumerationIndex().Günther Deschner2008-05-191-20/+139
| | | | | | | | | Citrix PM cannot use a Samba DC when having more then 900 groups as citrix insists on calling _samr_GetDisplayEnumerationIndex() after receiving the first 900 groups via _samr_QueryDisplayInfo() to get the continuation index. Guenther (cherry picked from commit 1c4adc8dda68eae9839bdff843aadf8c98dd9e87)
* IDL: rerun make idl.Günther Deschner2008-05-194-12/+38
| | | | | Guenther (cherry picked from commit c92b585cc42ba9f42727512c08c896ee40e5e319)
* IDL: Fix IDL for samr_GetDisplayEnumerationIndex{2}.Günther Deschner2008-05-191-2/+2
| | | | | Guenther (cherry picked from commit cb0b0fd2684b63257421aba599f9d2111c0438bf)
* VERSION: Raise version from pre3 to rc1.Karolin Seeger2008-05-191-2/+2
| | | | | Karolin (cherry picked from commit ced04ac5af954d91223421c6c7d34e4fc3fb2947)
* Fix client authentication with -P switch in client tools (Bug 5435).Günther Deschner2008-05-159-35/+122
| | | | | Guenther (cherry picked from commit d077ef64cd1d9bbaeb936566c2c70da508de829f)
* Fix Bug #5465 (joining with createcomputer=ou1/ou2/ou3).Günther Deschner2008-05-152-7/+6
| | | | | | Guenther (cherry picked from commit f3251ba03a69c2fd0335861177159a32b2bc9477) (cherry picked from commit 6d445c134d4d78f8261c998a5a83feaafb01bbca)
* Ensure we don't keep searching for sharename if it'sJeremy Allison2008-05-151-3/+3
| | | | | | not the start of the list. Jeremy. (cherry picked from commit 4d30a6bff9ce8e826f0109e99021d6683ec4299f)
* Fix debug message.Jeremy Allison2008-05-151-2/+2
| | | | | Jeremy. (cherry picked from commit 0a68f230cd92b97efed2b3bad19a3bf9a750d401)
* Second part of patch for bug #5460. Cope with pathnamesJeremy Allison2008-05-151-15/+39
| | | | | | that don't look like \xxx\yyy, cope with arbitrary length. Jeremy. (cherry picked from commit c3328a252430007cd716a406d85fd2a0bbbff607)
* Fix bug #5460. The problem is RHEL5.0 shipped a CIFS clientJeremy Allison2008-05-152-2/+33
| | | | | | | | | | | | | | | | | | that sets the DFS bit on pathnames but doesn't send DFS paths. This causes lookups to fail as the smbd/msdfs.c code now just eats the first two parts of the pathname and uses the rest as the local path. The previous hostname check used to protect us from that as we knew that when the hostname was invalid it was a local path (and a broken client). I didn't want to put that check back in, but came up with another idea - even though the hostname can be a different one, the sharename must be valid on this machine. So we can check for a valid sharename instead. Jeremy. (cherry picked from commit 5c6ed7774220dea30c2c8a564648406b4f3eacbf)
* Fix bug #5464. Pointed out by Herb @ Connectathon. In fork_domain_child() we ↵Jeremy Allison2008-05-151-3/+3
| | | | | | | | | | | | | | | call : CatchChild(); *before* we fork the domain child. This call establishes a signal handler that eats SIGCLD signals and doesn't call sys_select_signal() as the main daemon SIGCLD handler should do. This causes the parent to ignore dead children and time out, instead of calling winbind_child_died() on receipt of the signal. The correct fix is to move the CatchChild call into the child code after the fork. Jeremy. (cherry picked from commit 6da910cc1c6baccbb143f0b2d347e31e9f84c35b)
* _netr_LogonSamLogon: fix lm session key length.Günther Deschner2008-05-141-1/+1
| | | | | | | Thanks Volker for pointing this out. Guenther (cherry picked from commit 7ccca9a004c7a4794781cbd7c703c53a0481bd51)
* Fix signing problem in the client with transs requestsVolker Lendecke2008-05-141-0/+3
| | | | | | | | | | | | This is a different fix than Jeremy put into 3-0-test with 040db1ce85 and other branches with different hashes. Jeremy, I think your fix led to bug 5436, so I reverted your fix. This fixes the original problem I found with the transs requests for large rpc queries in a different way. Please check! Thanks, Volker (cherry picked from commit 6200e8886b29469cb1dbbe441e4f642fb28b83f2)
* Revert "Fix signing bug found by Volker. That one was *subtle*."Volker Lendecke2008-05-142-5/+88
| | | | | This reverts commit 816aea6c1a426eb2450061b847729e22bdac33a0. (cherry picked from commit 67f90361a07841972a01a4faf575da25ebbbb29c)
* Fix replacement getpass. If we ^C at the prompt echo was left off.Jeremy Allison2008-05-131-5/+2
| | | | | | Fix bug #5456. Karolin please pull for 3.2-stable. Jeremy. (cherry picked from commit 726d9d168d5b4bca86b478c34204eacb97907443)
* net ads: Upper case he realm name when calling kinit() using machine creds.coffeedude2008-05-131-0/+1
| | | | | | Needed fix for the DNS Update option as part of "net ads join" (cherry picked from commit aebae0b71b427838fdc6344d69d6dea87a5dd58b) (cherry picked from commit 437a59598d886b316fd58ca88ed40f5fb325c47f)
* loadparm: Fix activation of registry globals in lp_load_*.Michael Adam2008-05-111-2/+2
| | | | | | | | | | This completes bba04a8fba6fd5cf62578733cfdabea590e8ff51: The reverted logic has to be put into the callers lp_load() and lp_load_initial_only() of lp_load_ex(), too. Silly bug. Michael (cherry picked from commit 8bab6d651f1cd0efe5aa1e7808b3f043602a3dfa)
* Fix bug #5452 - smbclient put always creates zero lengthJeremy Allison2008-05-091-2/+2
| | | | | | | | | files. Thanks to Kai Engert <kengert@redhat.com> for reporting. Karolin - this is a showstopper and must be pulled into 3.2-stable. Thanks ! Jeremy. (cherry picked from commit f7982f573dd2d339fea50c1811a42816c7721279)
* Winbind: Prevent cycle in children list when reaping dead child processes.Gerald W. Carter2008-05-071-0/+4
| | | | | | | | | | | | | | | | | | | | | Thanks to Glenn Curtis and Kyle Stemen @ Likewise. Their explanation is: In winbindd_dual.c, there is a list of children processes that is maintained using macros DTLIST_ADD and DTLIST_REMOVE. In the case when a scheduled_async_request fails, the particular child was located in the list, and its attributes were cleared out and it was reused for a subsequent async request. The bug was that the new request would queue the same node into the doubly-linked list and would result in list->next pointing to the same node as list itself. This would set up an infinite loop in the processing of the for loop when the list of children was referenced. Solution was to fully remove the child node from the list, such that it could be inserted without risk of being inserted twice. Note that the child is re-added to the list in fork_domain_child() again. (cherry picked from commit b379b5b5d8a6daccc69aaf2be6d9a6e276e7dd78) (cherry picked from commit 5a270bc99f52483f168d662d843672d05be74473)
* Remove redundant parameter fd from SMB_VFS_CLOSE().Michael Adam2008-05-0711-26/+26
| | | | | | | Now all those redundant fd's have vanished from the VFS API. Michael (cherry picked from commit 14294535512a7f191c5008e622b6708e417854ae)
* Slight reformatting of fd_close_posix(), while I'm at it.Michael Adam2008-05-071-5/+9
| | | | | | | Wrap lines and remove trailing space. Michael (cherry picked from commit 74ed53a115b2063d4d5c8572af8f1302bc658882)
* Change fd_close_posix() to return int instead of NTSTATUS.Michael Adam2008-05-072-15/+6
| | | | | | | The errno is handed up through the VFS layer to the callers. Michael (cherry picked from commit d928e6648d61cf2d3c1b77db440efb835b729a84)
* Don't modify the fsp in fd_close_posix() anymore.Michael Adam2008-05-071-4/+0
| | | | | | | | | Now that it is inside the vfs layer, this function should not alter the fsp (i.e. set fsp->fh->fd = -1) anymore. That belongs above the vfs layer. Michael (cherry picked from commit df264bf3e00d7d77afcf55e54d2669b9ffa9af4a)
* Move the posix pending close functionality down into the VFS layer.Michael Adam2008-05-073-8/+16
| | | | | | | | | | | | | | | | | | This hides the pending close fds from the outside. Call order of SMB_VFS_CLOSE is reversed. Originally, it was: fd_close -> fd_close_posix -> SMB_VFS_CLOSE -> close And now it is: fd_close -> SMB_VFS_CLOSE -> fd_close_posix -> close This is in preparation of removing the fd parameter from the SMB_VFS_CLOSE function. But it is also the right place for the pending close calls anyways. Michael (cherry picked from commit 3cf56b124a2886c6260455bba4bf77d08e9a4f77)
* Next round fixing bug 5420, build on IRIXVolker Lendecke2008-05-071-2/+1
| | | | | | The IRIX make does not like lines with only whitespace. With LIBNETAPI_LIBS evaluating to nothing this happens there. (cherry picked from commit 2883e554f45ca01dbfc205baa0b4149d2f2a01e8)
* pam_winbind: Fix Bug #5430 (patch from fumiyas@osstech.co.jp).Günther Deschner2008-05-072-1/+3
| | | | | | Guenther (cherry picked from commit 5b65df6245c1458ca21cc602df11c49aa97a25c5) (cherry picked from commit 06f33d3725e0d82568c4a3278f59892e3e57a8ee)
* BUG 5107: Fix handling of large DNS replies on AIX and Solaris.Gerald W. Carter2008-05-071-6/+32
| | | | | | | | | | On AIX, Solaris, and possibly some older glibc systems (e.g. SLES8) truncated replies never give back a resp_len > buflen which ends up causing DNS resolve failures on large tcp DNS replies. Also add more debug lines about processing the DNS reply. (cherry picked from commit 5ed9b92097460cd8180db806a08213e97cfb8daa) (cherry picked from commit 5dff914f9ebcda63b9e3c78d6d0bb5a3212c6690)
* BUG 5429: Clarify log msgs re: failure to create BUILTIN\{Administrators,Users}Gerald W. Carter2008-05-071-7/+9
| | | | | | | Raise the debug msgs from Lvl 0 in the create_builtin_XX() functions to prevent unnecessary panic from people reading the logs. (cherry picked from commit 2983b9dc790e0f90ec1e6add131438c6bfd361b4) (cherry picked from commit c28e21c63eca87a266078b65d65b436badc4e349)
* Fix bug found by Igor Mammedov <niallain@gmail.com> where we areJeremy Allison2008-05-071-14/+42
| | | | | | | not returning a directory value for a QPATHINFO on a msdfs link with a non-dfs path. Windows does this. Jeremy. (cherry picked from commit 1b2f189e1f78a52a4d1e224bb5d20d77bb192d56)
* Cleanup size_t return values in convert_string_allocateTim Prouty2008-05-076-76/+91
| | | | | | This patch is the first iteration of an inside-out conversion to cleanup functions in charcnv.c returning size_t == -1 to indicate failure. (cherry picked from commit 59124382d2894a1b194b48dd82bc5f956959eb48)
* wins: fix null pointer crash in nss_wins module.Günther Deschner2008-05-071-0/+3
| | | | | | Guenther (cherry picked from commit 5bf47ebf0fb9f7d94ed36bce6bcaa31b508009bd) (cherry picked from commit d4984ac18a907773134cc906c689655338d3949e)
* netapi: add -f switch for DsGetDCName() example and be more verbose on output.Günther Deschner2008-05-071-3/+15
| | | | | | Guenther (cherry picked from commit 3feaa9829cc5bdeb7a5401c3c24b3811816396ce) (cherry picked from commit 65d3822182a4a4d1c2970a40e708844ddc319e3d)
* Fix bug #5095, "Manage Documents privilege is not functional".Jeremy Allison2008-05-072-15/+29
| | | | | | | Should map the created sd to printer jobs, not printer. Confirmed fix by the reporter. Karolin please pull for 3.2-stable. Jeremy. (cherry picked from commit f620182ac41eaf659cf53842df1089ce1f823654)
* Fix a panic in the [ug]id2sid valgrind bug fixVolker Lendecke2008-05-061-4/+6
| | | | | Always, always run "make test" before pushing stuff :-) (cherry picked from commit 7fa2f4f9b2a17eb5a3ba787cc90b22afbe6c3c5c)
* Fix a valgrind bug in the new [ug]id2sid cacheVolker Lendecke2008-05-061-6/+6
| | | | | | When we're given a SID, it is not always padded with zeros. Only look at the initialized parts in the SID. (cherry picked from commit 90c37a7c2cdac3de0b75f889d63f5fe1b87a48e3)
* fix some extrasemi compile warningsBjörn Jacke2008-05-052-3/+3
| | | | (cherry picked from parts of cbdb79b7a1044945e515a294f487e4c1a9c91be5)
* Fix a "nested extern declaration" warningVolker Lendecke2008-05-051-1/+2
| | | | (cherry picked from commit e473e6d50c56f52ef5e4853e4ca3b3548af06f51)
* Make use of ZERO_STRUCT instead of memset in namequery.cVolker Lendecke2008-05-051-1/+1
| | | | (cherry picked from commit 4f1d49615e1407b9c3ad5eeb50a248b8fee50e23)
* configure: fix a comment typoMichael Adam2008-05-051-1/+1
| | | | | Michael (cherry picked from commit af2a1f15e6d45139ba62e334a3529d407430e6bd)
* Fix Coverity ID 565Volker Lendecke2008-05-051-2/+0
| | | | | This would crash safely (cherry picked from commit 0f14357c86aee9a76ffbb45ea6419f4cc4106d62)
* srv_winreg: add a debug message to _winreg_CreateKey().Michael Adam2008-05-051-0/+3
| | | | | Michael (cherry picked from commit 971f6749ed23523f6eafe5136f6d4c920c20aec4)
* smbspool: Fix the smbspool build.James Peach2008-05-051-11/+15
| | | | (cherry picked from commit a51cb3c1a9549d74c1e5cf05bc43b955af1a25b7)
* smbspool: minor formatting cleanups.James Peach2008-05-051-88/+133
| | | | (cherry picked from commit 831a09ae25e98eacc0b0be5390d3ac3aa671a8a5)
* smbspool: Run indent to approximate conding standards.James Peach2008-05-051-533/+485
| | | | (cherry picked from commit 4244be792eeb69e883a1ece013b62fe6941086f2)
* smbspool: add my copyright.James Peach2008-05-051-0/+1
| | | | (cherry picked from commit b294b2055a422e1af59e3b6843b84750b6786d99)
* smbspool: Fix CUPS authentication protocol support.Mike Sweet2008-05-051-34/+75
| | | | | | | There were a couple of places where we weren't checking for authentication correctly. This chance fixes those places and properly supports Kerberos where available. (cherry picked from commit 8eff35bc4acc13807c895af43b52db79ee195cb5)
* smbspool: fix Kerberos support for CUPS 1.3.Mike Sweet2008-05-051-144/+87
| | | | | | | | | | | | | | | | | | | | | | | To summarize the changes, the patches remove the old (probably non- working) Kerberos support code which is unnecessary with CUPS 1.3 and adds some checks on the NT status we get back to see whether the connection error is related to authentication. If so, we send the ATTR: message to tell CUPS we need a username and password and return exit code 2 so cupsd will do the right thing. AUTH_USERNAME, AUTH_PASSWORD, and KRB5CCNAME are set and supported by CUPS 1.3. The new exit code is supported by CUPS 1.2.x and 1.3, and it treated as a general failure in CUPS 1.1. The ATTR: message is only supported by CUPS 1.3, while CUPS 1.2 will assume the "username,password" value we are setting. The current code only uses the AUTH_* env vars if they are set. If not, we fall back to the previous behavior. I really can't tell whether the Kerberos code that was in there would work at all. It did not work for Mac OS X which is why I dropped it. (cherry picked from commit 8c12c5cea01d9b801fe80c2a87b8139c488a62a5)