summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* r23484: When chasing AD referrals make sure to honor the base returned from ↵Günther Deschner2007-06-141-1/+2
| | | | | | the server. Guenther
* r23483: Revert 23482, I must have run 'make test' in the wrong subdir.Volker Lendecke2007-06-141-14/+18
|
* r23482: Slightly simplify the rename code: Remove two local variables that areVolker Lendecke2007-06-141-18/+14
| | | | not really needed.
* r23479: Merge branches/SAMBA_3_0@23478James Peach2007-06-142-9/+51
| | | | | | | | Change the handling of the developer CFLAGS so that they are always emited to the Makefile in the DEVELOPER_CFLAGS variable. This makes it easy to turn developer mode on and off without waiting for configure to run. The developer flags are only added to CFLAGS for the --enable-developer and --enable-krb5developer cases.
* r23477: Build farm fix: Use int rather than MIT's krb5_int32 when setting ↵Gerald Carter2007-06-131-1/+1
| | | | context flags.
* r23476: Merge branches/SAMBA_3_0@23475James Peach2007-06-131-2/+2
| | | | | Fix the prototype for sys_broken_setgroups and log *BSD group list truncation a bit more verbosely.
* r23474: Here's a small patch that disables the libkrb5.so replay cache Gerald Carter2007-06-134-42/+68
| | | | | | | | | | | | | | | | | | when verifying a ticket from winbindd_pam.c. I've found during multiple, fast, automated SSH logins (such as from a cron script) that the replay cache in MIT's krb5 lib will occasionally fail the krb5_rd_req() as a replay attack. There seems to be a small window during which the MIT krb5 libs could reproduce identical time stamps for ctime and cusec in the authenticator since Unix systems only give back milli-seconds rather than the micro-seconds needed by the authenticator. Checked against MIT 1.5.1. Have not researched how Heimdal does it. My thinking is that if someone can spoof the KDC and TDS services we are pretty hopeless anyways.
* r23473: Merge Merge branches/SAMBA_3_0@23470James Peach2007-06-131-2/+8
| | | | | | Fix supplementary group list truncation for *BSD. We need to pass the correct group list length and only truncate to NGROUPS_MAX if it is too long.
* r23471: Here's a rough patch for expanding domain group membershipGerald Carter2007-06-133-155/+351
| | | | | | | | | | | | in the winbindd_getgrnam() call. Couple of comments: * Adds "winbind expand groups" parameter which defines the max depth winbindd will expand group members. The default is the current behavior of one level of expansion. * The entire getrgnam() interface should be async. I haven't done that. * Refactors the domain users hack in fill_grent_mem() into its own function.
* r23469: Fix a commentVolker Lendecke2007-06-131-1/+1
|
* r23468: Open registry.tdb with sequence number.Michael Adam2007-06-131-3/+15
| | | | | | | | | Add a function to retrieve the registry db sequence number. This is in preparation of loadparm integration of registry global smb.conf options: this will allow to detect changes in order to trigger reload. Michael
* r23467: Next little simplification: In rename_internals it's a bit pointless toVolker Lendecke2007-06-131-38/+13
| | | | | | first ask for existence of a file when we do the open_file_ntcreate in can_rename later on anyway. That also gets us the right error message in case the file is not there automatically.
* r23466: Fix RAW-NOTIFY: by using delete on close the notify is triggered deepVolker Lendecke2007-06-131-6/+0
| | | | inside close_file() already.
* r23465: There was this diff between reg_printing in 3_0 and 3_0_26:Michael Adam2007-06-131-1/+4
| | | | | | | | | | | before writing to secdesc_buf->sd, 3_0 checked secdesc_buf->sd while 3_0_26 checked secdesc_buf->sd_size. This patch makes both revisions check _both_ befor writing. Jerry / Jeremy : please check if this is correct! Michael
* r23464: Merge r19913 from 3_0:Michael Adam2007-06-131-1/+1
| | | | Fix a const warning.
* r23463: Merge r19853 and r19858 from 3_0:Michael Adam2007-06-131-1/+6
| | | | fix a memleak, add a const, update a link
* r23462: Merge r20209 from 3_0:Michael Adam2007-06-131-4/+7
| | | | Fix two memleaks.
* r23461: More or less merge r21977 from 3_0:Michael Adam2007-06-131-4/+2
| | | | | | little cosmetic change to remove a local var that's not really needed Michael
* r23457: After Jeremy's ack:Volker Lendecke2007-06-131-24/+29
| | | | | | | | | | | | | | The attached patch removes a little race condition for people with real kernel oplock support, and reduces some code paths. It changes reply_unlink to open_file_ntcreate, set_delete_on_close and close_file. The race condition happens if we break the oplock in can_delete via open_file_ntcreate, we close the file, someone else gets a batch oplock and we try to unlink. It reduces code paths by calling SMB_VFS_UNLINK in 2 fewer places.
* r23454: Merge r20018 from 3_0:Michael Adam2007-06-121-2/+4
| | | | Fix a memleak in reg_createkey
* r23453: fetch_reg_keys_specific and fetch_reg_values_specific are nowMichael Adam2007-06-123-111/+138
| | | | | | | | | only used in rpc_server/srv_winreg_nt.c. By moving them to a module of their own, this patch reduces the diff between the registry code of 3_0 and 3_0_26 even more. Michael
* r23452: Merge r22135 and r22496 from 3_0:Michael Adam2007-06-127-351/+1518
| | | | | | | | | | | | | | | | | | | * Refactor the code in registry/ essentially by moving functions around and creating a new reg_frontend_hilvl.c to minimize the linker dependencies for parts of the registry code. This initial refactoring allows to link registry code to e.g. "bin/net" * Add the "net conf" utility: It gives convenient local acces to the HKLM\Software\Samba\smconf key in the registry, where the samba registry shares are stored. * make reg_enumvalue return WERR_NO_MORE_ITEMS instead of WERR_BAD_FILE when all items have been successfully enumerated. Besides seeming the reasonable code to return, this is what I have seen from w2k3, w2k, wxp. (r22496) Michael
* r23451: Merge r20626 from 3_0:Michael Adam2007-06-121-0/+1
| | | | | | Fix a memleak found by the IBM checker. Michael
* r23450: max_params_return is complete fiction when getting a changenotifyJeremy Allison2007-06-122-18/+6
| | | | | | request. Ignore it. Should fix bug #4689 but more tests and valgrinding will follow. Jeremy.
* r23448: Doh ! Don't call winbind_child_died() *before* theJeremy Allison2007-06-121-7/+6
| | | | | kill call as that sets pid = 0 ! :-). Jeremy.
* r23447: Add kill signal to child dead path. After talkingJeremy Allison2007-06-121-0/+3
| | | | | to Jerry add to 3.0.25b. Jeremy.
* r23446: Restore Jeremy's original formatting, just fix the comment.Volker Lendecke2007-06-121-21/+17
|
* r23445: Fix suggested by Volker. Don't call rename_open_filesJeremy Allison2007-06-121-2/+0
| | | | | if the name wasn't changed. Jeremy.
* r23444: Merge r20210 from3_0:Michael Adam2007-06-122-58/+1
| | | | | | | * registry_fetch_values is not needed anymore * fix comment typo Michael
* r23443: Merge r20006 from 3_0:Michael Adam2007-06-121-55/+30
| | | | | | Convert the registry shares to use the new API (reg_api.c) Michael
* r23442: Merge r20004 from 3_0:Michael Adam2007-06-121-2/+1
| | | | | | Remove a const, "name" is allocated anyway. Michael
* r23441: Merge r20037 from 3_0:Michael Adam2007-06-122-115/+69
| | | | | | "Reduce code size slightly by shuffling stuff around." Michael
* r23440: Merge r20016 from 3_0:Michael Adam2007-06-121-1/+95
| | | | | | Add two utility functions for easy opening/creating registry keys. Michael
* r23439: Merge r20005 from 3_0:Michael Adam2007-06-121-0/+58
| | | | | | | new function reg_open_path should become the replacement for regkey_open_internal Michael
* r23438: Merge r21959 from 3_0: fix a comment.Michael Adam2007-06-121-1/+2
| | | | Michael
* r23437: Merge r21547 from 3_0:Michael Adam2007-06-122-3/+10
| | | | | | Refuse registry shares without path. Michael
* r23436: Merge (a considerable amount of) r19991 from 3_0:Michael Adam2007-06-1212-95/+620
| | | | | | | | | | | | * Introduce registry/reg_api.c, which closely resembles the winreg api. This is important for the subsequent merges of the "net conf" code. * The rewrite of rpc_server/srv_winreg_nt.c is _not_ merged since the preliminary changes have not been merged. * Change some routines from NTSTATUS to WERROR. * Remove "parent" argument to regkey_open_internal (and rewrite to use the new api functions like reg_openhive and so on). Michael
* r23435: Merge r19777 from 3_0:Michael Adam2007-06-121-20/+22
| | | | | | Make regsubkey_ctr_addkey return WERROR. Michael
* r23431: Merge rpcclient/cmd_spoolss.c portion of r16945 and r19811.Michael Adam2007-06-121-9/+15
| | | | Michael
* r23430: Merge r19963 from 3_0:Michael Adam2007-06-1213-61/+472
| | | | | | Add 'registry shares = yes' and registry key security descriptors. Michael
* r23428: Merge r19828 from 3_0: Add registry_fetch_values.Michael Adam2007-06-121-0/+56
| | | | Michael
* r23427: Merge r19947 from 3_0:Michael Adam2007-06-124-92/+98
| | | | | | | | | | | Change regkey_open_internal to take the parent key and a talloc_ctx as arguments. This also replaces regkey_close_internal by TALLOC_FREE. (The modification to srv_winreg_nt.c differs from the original patch and is kept as minimal as possible due to preliminary commits not having been merged.) Michael
* r23426: Correct a comment. The default timeout is not 1min, but 30s. WhileVolker Lendecke2007-06-121-17/+21
| | | | | | | | there, do some reformatting. Jeremy, I think we should also kill the child. It might hang in something (an fcntl lock for example) that the next child might run into immediately again.
* r23425: Volker noticed this obvious fix for the wins serverJeremy Allison2007-06-121-2/+2
| | | | | code :-). Thanks Volker ! Jeremy.
* r23424: Thanks to Jerry, we finally tracked down the :Jeremy Allison2007-06-111-0/+62
| | | | | | winbindd: Exceeding 200 client connections, no idle connection found" bug #3204. This fixes it in Jerry's testing ! Jeremy.
* r23423: Use the correct structure types in the NT_ACL operations. It's notJames Peach2007-06-111-2/+2
| | | | | clear to my why the catia module feels it's necessary to implement these operations, but at least they're now the right type.
* r23422: Merge (parts of) r19807, r19811, r19827.Michael Adam2007-06-113-3/+143
| | | | | | Preleminary merge for subsequent merge of restructuring of registry code. Michael
* r23421: Merge parts of r18963 that apply:Michael Adam2007-06-114-62/+72
| | | | | | | | Move defines from rpc_reg.h to reg_object.h. rpc_reg.h is not completely removed, since not all of the hand-marshalled code is replaced by ndr code in 3_0_26. Michael
* r23416: Forgot to "svn add lib/util_reg.c" in r23415...Michael Adam2007-06-111-0/+110
| | | | Michael
* r23415: Merge introduction of lib/util_reg.c from r16945.Michael Adam2007-06-113-50/+44
| | | | | | (Can't find logs/diffs from trunk anymore.) Michael