summaryrefslogtreecommitdiffstats
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
...
* | r23091: Add rpccli_netlogon_sam_network_logon_ex, fix its parsing. This does notVolker Lendecke2007-05-233-1/+112
| | | | | | | | | | | | use the credential chain and only works over netlogon, but it would allow multiple outstanding auth requests for a single workstation account.
* | r23088: Fix rename for cifsfs client. This may be needed forJeremy Allison2007-05-221-2/+2
| | | | | | | | | | 3.0.25a. Jeremy.
* | r23087: Fix POSIX setfilepathinfo to use lstat, not stat.Jeremy Allison2007-05-222-10/+27
| | | | | | | | | | | | | | Still missing lchown (will add this for 3.0.26). Don't merge for 3.0.25a - possibly 3.0.25b (if it exists). Jeremy.
* | r23086: Port r23070 and r23073 from 3_0. Original comment:Michael Adam2007-05-221-0/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The lsa rpc lookup sids call has a maximum number of SIDS to be looked up at one time. This limit is at 20480 for w2k3. Our rpccli_lsa_lookup_sids function ignores this limit, so when we give the server too long a list of SIDs, then we will get nothing back. Since typically rpccli_lsa_lookup_sids is given one SID (or a small number of SIDS), this did not do harm up to now. But since I want to use lsa_lookup_sids in a subsequent modification to winbindd_ads.c:lookup_groupmem to get rid of a vast number of dn_lookup calls to the server, I had to make sure we do it correctly. I have added a function rpccli_lsa_lookup_sids_all function that has the same prototype but internally splits the list of SIDs up into hunks of a (conservative, hard coded) 1000 SIDs each for a first go. If this approach is agreed upon, the new function could replace the original rpccli_lsa_lookup_sids function. Michael
* | r23085: Activate the winbindd validation code in 3_0_26, too.Michael Adam2007-05-221-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | Original comment of the 3_0 checkin (r23040): Activate the winbindd cache validation code in the winbindd main function. I have tested and somewhat extended the code, and it seems to do a good job. I have possibly not caught all error conditions though. Michael
* | r23080: Fix bug #4637 - we hads missed some cases whereJeremy Allison2007-05-228-84/+133
| | | | | | | | | | we were calling PRS_ALLOC_MEM with zero count. Jeremy.
* | r23077: Minor cleanupVolker Lendecke2007-05-221-4/+0
| |
* | r23075: more duplicate code blocks from bad mergeGerald Carter2007-05-221-4/+0
| |
* | r23074: Remove duplicate code blocks from bad mergeGerald Carter2007-05-221-10/+0
| |
* | r23068: Fix some uninitialized variables in the solarisacl moduleVolker Lendecke2007-05-221-6/+6
| |
* | r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'mVolker Lendecke2007-05-2125-400/+539
| | | | | | | | | | | | | | | | | | | | | | doing this because for the clustering the marshalling is needed in more than one place, so I wanted a decent routine to marshall a message_rec struct which was not there before. Tridge, this seems about the same speed as it used to be before, the librpc/ndr overhead in my tests was under the noise. Volker
* | r23054: Move the check for the lookup_domain of S-1-22-{1,2} before the Gerald Carter2007-05-211-18/+17
| | | | | | | | | | | | check for IS_DC. Otherwise we will for example fail to lookup a sid of S-1-22-1-780 because it has no valid struct winbindd_domain* in the list. Thanks to Simo for the catch.
* | r23051: sid_to_[ug]id fixes for smbdSimo Sorce2007-05-211-12/+26
| |
* | r23048: Simo is correct in that winbind_lookup{sid,name}_async() needsGerald Carter2007-05-213-2/+29
| | | | | | | | | | | | | | | | | | to be able to handle SIDs in the S-1-22-{1,2} domain in order for winbindd_sid_to_uid(), et. al. to succeed. For 3.0.25a, we will short circuit in the sid_to_uid() family of functions so that smbd is ok. For 3.0.26, we need to allow winbindd to handle all types of SIDs.
* | r23046: Few missing merges from cleaning out the Centeris winbindd tree.Gerald Carter2007-05-214-1/+21
| | | | | | | | Nothing of major interest. Will fix a few problems with one way trusts.
* | r23042: Add the IDL files necessary to build gen_ndr for informational purposesVolker Lendecke2007-05-215-0/+2815
| |
* | r23041: Remainder of fix for 4630: fix special case of unix_to_nt_time() forJim McDonough2007-05-211-2/+10
| | | | | | | | TIME_T_MAX, and also display of it in http_timestring()
* | r23038: use a helper function to construct the TDB_DATA keyStefan Metzmacher2007-05-211-2/+1
| | | | | | | | | | | | as strlen_m() is totally wrong here anyway metze
* | r23025: Some logic simplificationsVolker Lendecke2007-05-201-29/+27
| |
* | r23024: Ok, neither the duplicates_allowed nor the timeout argument toVolker Lendecke2007-05-201-112/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | message_send_pid is used anymore. Two users of duplicates_allowed: winbind and the printer notify system. I don't thing this really changes semantics: duplicates_allowed is hell racy anyway, we can't guarantee that we don't send the same message in sequence twice, and I think the only thing we can harm with the print notify is performance. For winbind I talked to Günther, and he did not seem too worried. Volker
* | r23023: Get rid of the only caller of message_send_pid_with_timeout(). This ↵Volker Lendecke2007-05-202-15/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | replaces the timeouts on the individual message send calls with an overall timeout on all the calls. The timeout in message_send_pid_with_timeout() did not make much sense IMO anyway, because the tdb_fetch() for the messages_pending_for_pid was blocking in a readlock anyway, we "just" did the timeout for the write lock. This new code goes through the full wait for the write lock once and then breaks out of sending the notifies instead of running into the timeout per target. Jerry, please check this! Thanks, Volker
* | r23022: ReformattingVolker Lendecke2007-05-201-37/+47
| |
* | r23016: Remove extra & - thanks to Volker for spotting this.Jeremy Allison2007-05-191-1/+1
| | | | | | | | Jeremy.
* | r23015: Make message_(de)register static to messages.cVolker Lendecke2007-05-199-71/+130
| |
* | r23014: For all branches, ensure that if we're blocked on a POSIXJeremy Allison2007-05-195-16/+62
| | | | | | | | | | | | | | | | lock we know nothing about that we retry the lock every 10 seconds instead of waiting for the standard select timeout. This is how we used to (and are supposed to) work. Jeremy.
* | r23010: Make the output of "smbcontrol --help" match that of "smbcontrol help".James Peach2007-05-191-5/+30
| | | | | | | | Bug #3181.
* | r23009: Both contains a strchr_m(server,'/') few lines after replacing all / ↵James Peach2007-05-192-10/+4
| | | | | | | | | | | | | | | | with \. This patch removes this dead code. Patch from Pascal Terjan <pterjan@mandriva.com> for bug #2313.
* | r23007: Ensure we don't allow large read over the possibleJeremy Allison2007-05-191-0/+4
| | | | | | | | | | packet size. Jeremy.
* | r23006: Arg. Fix stupid typo in 64-bit path.Jeremy Allison2007-05-181-1/+1
| | | | | | | | Jeremy.
* | r23005: If we're running on a system where time_t is 8 bytesJeremy Allison2007-05-184-18/+57
| | | | | | | | | | | | | | | | we have to take care to preserve the "special" values for Windows of 0x80000000 and 0x7FFFFFFF when casting between time_t and uint32. Add conversion functions (and use them). Jeremy.
* | r23004: Fix the build of the Tru64 ACL vfs module.Michael Adam2007-05-181-6/+6
| | | | | | | | | | | | | | | | (This is r22918 in SAMBA_3_0.) Where the heck did that smb_acl_permset_t come from? I can't remember, but I am sure this built once... Michael
* | r23003: - Fix but #4634. Type of the size parameter to getpeername was wrong.Derrell Lipman2007-05-181-1/+1
| |
* | r23000: merge from SAMBA_4_0:Stefan Metzmacher2007-05-181-1/+1
| | | | | | | | | | | | only if the output of which has a leading '/' the output is useful... metze
* | r22994: Fix HP/UX compiler flags by Don McCall. Lets see how the other HP/UXVolker Lendecke2007-05-181-1/+2
| | | | | | | | boxes like this. Thanks, Don!
* | r22981: Do not prompt for password on sec=none for mount.cifs (and allow guestSteve French2007-05-171-2/+5
| | | | | | | | option to pass to kernel code so it can know when to retry)
* | r22980: Add in misc frees that valgrind noticed for mount.cifs.cSteve French2007-05-171-15/+23
| |
* | r22978: Don't use current_user to prep the security ctx in change_to_user Gerald Carter2007-05-171-7/+15
| | | | | | | | | | | | since any SID/uid/gid translation calls will reset the struct when popping the security ctx. This should fix the standalone server configuration issues reported by David Rankin (thanks for the logs).
* | r22977: Trim noise by removing redundant WARNING log message thatGerald Carter2007-05-171-4/+0
| | | | | | | | | | would flood at log level 2. We know when we're using the legacy mapping code anyways since it will log an informative msg.
* | r22975: BUG 4616: Don't return a dns or forest name when replying to the Gerald Carter2007-05-171-7/+7
| | | | | | | | DsDGetPrimaryRoleInfo() and configured for security = domain.
* | r22973: Apparently, 3.0.25 broke smb4k badly ;-)Alexander Bokovoy2007-05-171-2/+6
| | | | | | | | | | | | | | | | smb4k uses 'net rap server domain' to list servers in domain. Previously we just ignored all arguments in net_rap_server() but now we don't as 'net rap server name' has added an explicit check on arguments. Allow 'net rap server domain' to aid smb4k. Any other arguments will cause help message.
* | r22957: Use 1 for pointer, instead of casting to a 32-bit valueJeremy Allison2007-05-171-2/+2
| | | | | | | | | | from (potentially) a 64-bit pointer. Jeremy.
* | r22956: Fix security=server (bug #4622). Volker's patchJeremy Allison2007-05-161-11/+0
| | | | | | | | | | (slightly truncated by me). Will be in 3.0.25a. Jeremy.
* | r22954: More messaging_registerVolker Lendecke2007-05-165-27/+32
| |
* | r22951: Merge Volkers's logic fix from r22930. Only readJeremy Allison2007-05-161-2/+3
| | | | | | | | | | the rest of the data if there is any. Jeremy.
* | r22949: Merge modified and extended winbindd cache validation code Michael Adam2007-05-161-40/+787
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | from 3_0. (Essentially r22845 and r22847). Original log: (r22845) Modified and extended the winbindd cache validation code: * Replaced signal catching/longjmp magic by a fork: Let the child do the actual validation of the entries. Exit code and signals are intercepted by waitpid. * Fix logic so that also encounter of an unknown key in the tdb leads to an error. * Extended status of validation is kept in a (as yet simple) stuct and communicated over a pipe from child to parent. * Added two validation_ functions for two new keys. The call of winbindd_validate_cache is still commented out in the winbindd main loop. But I am currently testing it and so far it seems to work fine. The next step in my plan is to generalize the validation mechanism to a tdb_open_log_validate function in lib/util_tdb.c. There ist nothing very special about the cache tdb here, and this might be useful elsewhere... Michael
* | r22948: sync lib/tdb/ with SAMBA_3_0Stefan Metzmacher2007-05-1619-480/+3498
| | | | | | | | metze
* | r22947: HP-UX acl implementation. Taken from 3_0 (r22529).Michael Adam2007-05-161-56/+1137
| | | | | | | | Michael
* | r22946: remove reference to backup_tdb()Stefan Metzmacher2007-05-163-31/+6
| | | | | | | | metze
* | r22945: merge 22009 from SAMBA_3_0 + some warning fixes for new code:Stefan Metzmacher2007-05-1646-298/+280
| | | | | | | | | | | | | | | | change TDB_DATA from char * to unsigned char * and fix all compiler warnings in the users metze
* | r22943: More message_register -> messaging_registerVolker Lendecke2007-05-163-60/+102
| |