summaryrefslogtreecommitdiff
path: root/source3
AgeCommit message (Collapse)AuthorFilesLines
2009-06-19Fix coverity #900. Resource leak.Jeremy Allison1-0/+5
Jeremy.
2009-06-19Fix coverity #920. Possible NULL deref.Jeremy Allison1-0/+4
Jeremy.
2009-06-19Fix coverity #676. Forward NULL.Jeremy Allison1-0/+6
Jeremy.
2009-06-19s3: fix make test with external libtalloc or libtdb.Michael Adam1-4/+13
This skips the talloctort and tdbtorture tests when the corresponding binaries are not present. There might be more clever ways of detecting wether samba has been linked with internal or external libraries, but as a first approximation, this seems valid. Michael
2009-06-19s3:build: build talloctort only when using the internal liballocMichael Adam2-3/+8
Fixes the build with the external libtalloc. And is the reasonable thing to do anyways. Michael
2009-06-19s3:build: build the tdb tools only when using the internal libtdbMichael Adam2-4/+18
This fixes the build when internal libtdb is used. Michael
2009-06-19s3:build: remove LIBTDB_OBJ from TDBTORTURE_OBJ collectionMichael Adam1-1/+1
tdbtorture is linked with LIBTDB_LIBS, which is whatever configure has determined to be (-ltdb or LIBTDB_OBJ ...). Michael
2009-06-19s3:build: check for availability of external libtdb and use it if availableMichael Adam1-18/+34
Link internal libtalloc statiaclly if extenal libtalloc is not found or does not have appropriate version. Michael
2009-06-19s3:build: link libtalloc statically if using internal libtallocMichael Adam1-0/+1
Michael
2009-06-19Don't require "Modify property" perms to unjoin bug #6481)Jim McDonough6-18/+50
"net ads leave" stopped working when "modify properties" permissions were not granted (meaning you had to be allowed to disable the account that you were about to delete). Libnetapi should not delete machine accounts, as this does not happen on win32. The WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE flag really means "disable" (both in practice and docs). However, to keep the functionality in "net ads leave", we will still try to do the delete. If this fails, we try to do the disable. Additionally, it is possible in windows to not disable or delete the account, but just tell the local machine that it is no longer in the account. libnet can now do this as well.
2009-06-19Add a missing talloc_move() in tldap_search_recvVolker Lendecke1-1/+1
2009-06-19Fix Coverity IDs 922 and 933Volker Lendecke2-3/+6
In copy_internals(), if the !CAN_WRITE(conn) kicks in, we end up dereferencing a NULL smb_filename. This adds a simple protection around it. Tim, please check! Volker
2009-06-19Add tiny tldap testVolker Lendecke2-1/+37
2009-06-19Add tldap_fetch_rootdseVolker Lendecke2-0/+138
2009-06-19Make tevent_req_is_ldap_error publicVolker Lendecke2-1/+3
2009-06-19Add tldap_context_[gs]etattrVolker Lendecke2-0/+81
This adds the ability to attach extended information to a tldap_context. This will become useful once we start to do automatic reconnects for example, a callback function might want attach a pointer to credentials so that it can rebind. The initial user of this will be a cached rootdse, so that things like the ability to do paged searches can be cached.
2009-06-19s3:dmapi: prefer dmapi libs from gpfs over system libsBjörn Jacke1-4/+4
Patch from William Jojo sent to samba-technical: This is based on some pain felt when building 32-bit and 64-bit Clustered Samba on AIX with GPFS support. Part of the problem lies in AIX only providing 32-bit shared object in libxdsm.a(shr.o). So without libdmapi.a from gpfs.base, you get no DMAPI support under 64-bit.
2009-06-18Fix bug 4699: Remove pidfile on clean shutdownVolker Lendecke5-8/+28
2009-06-18acl_group_override() doesn't need to call stat. Pass thisJeremy Allison1-28/+17
down from above (as const). Jeremy.
2009-06-18Add some const to the stat struct in the dosmode calls.Jeremy Allison8-102/+72
Fix a couple more unix_convert uses to filename_convert. Fix bug in acl_group_override() where an uninitialized struct could be used. Move unix_convert with wildcard use in SMBsearch reply to boilerplate code. Jeremy.
2009-06-18Replace the boilerplate calls to :Jeremy Allison6-270/+154
resolve_dfspath() -> unix_convert() -> get_full_smb_filename() -> check_name() with a new function filename_convert(). This restores the check_name() calls that had gone missing since the default create_file was changed. All "standard" pathname processing now goes through filename_convert(). I'll take a look at the non-standard pathname processing next. As a benefit, fixed a missing resolve_dfspath() in the trans2 mkdir call. Jeremy.
2009-06-18s3:netlogon Cope with recent rename in netlogon.idlAndrew Bartlett1-1/+1
2009-06-18Fix resource leak in lib/ldb/tools/ldbmodify.cSlava Semushin1-0/+1
Patch for bug #6389
2009-06-18Fix syntax error in lib/ldb/ldb_sqlite3/base160.cSlava Semushin1-1/+1
Patch for bug #6388
2009-06-17s3 onefs: Remove dfs resolution from create_file() now that it's being done ↵Tim Prouty1-22/+1
at a higher level
2009-06-17s3: Change SMB_VFS_OPEN to take an smb_filename structTim Prouty23-127/+392
This was a little messy because of all of the vfs modules I had to touch. Most of them were pretty straight forward, but the streams modules required a little attention to handle smb_filename. Since the use of smb_filename enables the vfs modules to access the raw, over-the-wire stream, a little bit of the handling that was being done by split_ntfs_stream_name has now been shifted into the individual stream modules. It may be a little more code, but overall it gives more flexibility to the streams modules, while also allowing correct stream handling.
2009-06-17s3: Plumb smb_filename from create_file all of the way down to fd_openTim Prouty5-206/+282
I used the smb_filename struct everywhere that was feasible for the first pass. There are still some places in this path that need to be changed to use smb_filename, but this is a good start. I also: - Removed fname/path arguments from a few functions that weren't really using them. - Added a utility function for detecting whether an smb_filename is a stream.
2009-06-17Fix bug #6476 - more then 3000 smbd-zombies in memoryJeremy Allison1-0/+12
We weren't reaping children in the [x]inetd case. Jeremy.
2009-06-17s3-net: Fix Bug #6328: support "net sam rights grant/revoke" with multiple ↵David Markey1-18/+24
rights. David Signed-off-by: Günther Deschner <gd@samba.org>
2009-06-17s3/i18n: Add Russian to the list.Karolin Seeger1-1/+1
Karolin
2009-06-17s3/i18n: Add Russian translation for SWAT messages.Karolin Seeger12-0/+694
Thanks to Yuri Kozlov <kozlov.y [at] gmail.com>! This is part of a fix for bug #4755.
2009-06-17s3-net: Fix Bug #6328: allow multiple rights in "net sam rights grant".Günther Deschner1-10/+14
Guenther
2009-06-17s3/i18n: Update German SWAT translations.Karolin Seeger1-215/+239
This is part of a fix for bug #4755. Patch was provided (mainly) by Helge Kreutzmann <debian [at] helgefjell.de>. Thanks! Karolin
2009-06-17s3/libsmb: Fix typo in error message.Karolin Seeger1-1/+1
Thanks to Herb Lewis <hlewis [at] panasas.com> for noticing! Karolin
2009-06-16Remove msdfs pathname processing from default create file.Jeremy Allison1-25/+0
No longer needed. Jeremy
2009-06-16Fix msdfs after the change to smb_filename struct. We must *always*Jeremy Allison5-29/+161
pull the pathname, then call resolve_dfspath(), before unix_convert(). Jeremy.
2009-06-16_lsa_EnumAccountRights and _lsa_EnumPrivsAccount can return anJeremy Allison1-19/+17
empty set of privilages if the SID doesn't have any. (From [MS-LSAD.pdf]) Jeremy.
2009-06-16s3-netapi: Fix Bug #6451: net/libnetapi user rename using wrong access bits.Günther Deschner1-0/+2
Guenther
2009-06-16s3-netapi: Fix Bug #6305. Correctly prompt for a password when a username ↵Günther Deschner1-1/+5
was given. When no callback or wrapping has managed to get a password, prompt in the netapi connection manager for a password. Guenther
2009-06-16s3-netapi: add NetGetJoinInformation example code.Günther Deschner2-0/+110
Guenther
2009-06-15s3 onefs: Fix reading over the end of the array, because the incorrect array ↵Tim Prouty1-2/+3
was being read.
2009-06-15s3 onefs: Change onefs modules to use the new createfile apiTim Prouty3-43/+46
2009-06-15s3/libsmb: Fix debug message.Karolin Seeger1-1/+1
This fixes bug #6472. Karolin Signed-off-by: Volker Lendecke <vl@samba.org>
2009-06-15Do a correct TALLOC_FREE in an error caseVolker Lendecke1-1/+4
2009-06-14Remove "winbindd_request" and "winbindd_response" from winbindd_cli_stateVolker Lendecke3-11/+15
This shrinks the memory footprint of an idle client by 5592 bytes to 60 bytes on my 32-bit box.
2009-06-14Make winbindd_cli_state->response a pointer instead of a struct memberVolker Lendecke14-240/+246
Same comment as in baa6084378e530b: This is just a preparatory checkin. Volker
2009-06-14Remove an unused struct member in winbindd_cli_stateVolker Lendecke1-1/+0
2009-06-14Fix an error message: We get the errno in "err"Volker Lendecke1-1/+1
2009-06-14winbind: replace process_loop() by tevent_loop_once()Volker Lendecke1-68/+5
2009-06-14Make rescan_trusted_domains a timed eventVolker Lendecke3-26/+20