summaryrefslogtreecommitdiffstats
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
...
* libsmbconf: move initialization of registry value down after error checks.Michael Adam2008-04-111-6/+6
| | | | | Michael (cherry picked from commit 2a8029985f9bde4da8ca20bc24d937150eab444c)
* charcnv: add talloc_strdup_lower() - talloc variant of strdup_lower().Michael Adam2008-04-111-0/+26
| | | | | Michael (cherry picked from commit 5f6c730cbeddd1ac2f515bd985c08ceb4ca9bc47)
* registry: add support for REG_MULTI_SZ to registry_push_value().Michael Adam2008-04-111-0/+56
| | | | | | | This enables us to fetch multi_sz values from registry... Michael (cherry picked from commit a8cedfef27a0400c6aa05ddb5e51308ce0b789bd)
* registry: remove parameter checks from smbconf backend: they are in libsmbconf.Michael Adam2008-04-111-191/+1
| | | | | Michael (cherry picked from commit 118cf3813336122a060916848e37d2d5d25bff92)
* libwbclient: add wbcGetGroups()Stefan Metzmacher2008-04-112-0/+64
| | | | | metze (cherry picked from commit 596d030b976102e7476a2460fce355914c4e8210)
* wbcAllocateGid returns a gid_t, not a uid_tVolker Lendecke2008-04-112-2/+2
| | | | (cherry picked from commit 3130fb7b32285b8501f5ee8cbc62b478c09cccd3)
* libwbclient: add wbcInterfaceDetails()Stefan Metzmacher2008-04-112-0/+90
| | | | | metze (cherry picked from commit fee3806326b9ba214e35868271e6481c0c8b9c4b)
* libwbclient: use WBC_ERROR_IS_OK() in BAIL_ON_WBC_ERROR() macroStefan Metzmacher2008-04-111-4/+5
| | | | | metze (cherry picked from commit de2e8d5db93d32e5ebf04a2018a08f766eb9a233)
* libwbclient: remove prototype of non existing wbcDomainSequenceNumbers()Stefan Metzmacher2008-04-111-2/+0
| | | | | metze (cherry picked from commit 7a4de23aa318bd24948e576a5582a5c74d335154)
* libwbclient: add wbcListUsers() and wbcListGroups()Stefan Metzmacher2008-04-112-0/+150
| | | | | metze (cherry picked from commit df127f0b40d36ea8ee605c24ea88558c7d40a7fe)
* libwbclient: add wbcLookupUserSids()Stefan Metzmacher2008-04-112-0/+87
| | | | | metze (cherry picked from commit 38007a387a1f1b53877ef9ea518f83ecf026f4f3)
* Remove unused variable.James Peach2008-04-111-1/+0
| | | | (cherry picked from commit 3ed2c65bde0c2e5ad10cf777dae8a2d3e626a42c)
* Fix Kerberos interop with Mac OS X 10.5 clients.Bill Ricker2008-04-113-23/+45
| | | | | | Ignore optional req_flags. Use the Kerberos mechanism OID negotiated with the client rather than hardcoding OID_KERBEROS5_OLD. (cherry picked from commit 59a2bcf30fef14ecc826271862b645dd3a61cb48)
* Use bool for BOOL and true/false for True/False. We need lowercaseJames Peach2008-04-111-63/+76
| | | | | bool to get the declarations picked up by the prototype parser. (cherry picked from commit fd168e7b5065ba15b1cf56522b6810b8e6fdd7d5)
* net rpc registry: add getvalue command.Michael Adam2008-04-101-0/+100
| | | | | | | | | This is the same as already implemented for "net registry". usage: net rpc registry getvalue <key> <valuename> Michael (cherry picked from commit ba59383437aed9058a58bdeedcf61a0076a94924)
* net registry: add a getvalue subcommand that prints a single given value.Michael Adam2008-04-101-0/+41
| | | | | | | usage: "net registry getvalue <keyname> <valuename>" Michael (cherry picked from commit 77f049943e133986dc47d25fff2415def1cec32f)
* net (registry util): refactor printing of value without name out.Michael Adam2008-04-104-7/+14
| | | | | | | | This renames print_registry_value() to print_registry_value_with_name(). The new function is called print_registry_value(). Michael (cherry picked from commit 88c4851ad7240bc4f72a5ef92e21629e6a4c99c6)
* net_rpc: let get_user_sids() use wbcLookupName(), wbcGidToSid() and ↵Stefan Metzmacher2008-04-101-51/+47
| | | | | | | wbcGetGroups() metze (cherry picked from commit 31375c02631cb3f37a8bbd4ea17d3ef69c4d07bf)
* net_rpc: let get_user_tokens() use wbcListUsers()Stefan Metzmacher2008-04-101-38/+22
| | | | | metze (cherry picked from commit 4f712452e911db1f0aa74e3ccd636c1a18bdf9ef)
* net_rpc_registry: return available error code on failure in deletevalue.Michael Adam2008-04-101-1/+1
| | | | | Michael (cherry picked from commit 0dc9840cefb08b2732d294eb45508ce687ded324)
* net_rpc_registry: consistently return error upon wrong use.Michael Adam2008-04-101-5/+5
| | | | | Michael (cherry picked from commit 26e3d71cd0b2d1bb31c50627ea71267328d52448)
* net: change split_hive_key() to properly allocate subkeynameMichael Adam2008-04-104-6/+11
| | | | | | | instead of returning a pointer into another string. Michael (cherry picked from commit 68d08ecf92be3444b759300237b2b7cf5238d022)
* net_rpc_registry: use split_hive_key to normalize hive befor open.Michael Adam2008-04-101-28/+39
| | | | | | | | THis allows to specify keys in the form "HKLM/Software/samba", i.e. "/" instead of "\\". Michael (cherry picked from commit 61d09caef340d2fee303e429f6f25d011cb3023c)
* net_rpc_registry: use utility function print_registry_value().Michael Adam2008-04-101-30/+1
| | | | | Michael (cherry picked from commit 3d039b518f04b9dd3c87b9af2ec816e049554e27)
* net_rpc_registy: use function print_registry_keyMichael Adam2008-04-101-5/+2
| | | | | Michael (cherry picked from commit cc1da3ee2c369181efa6d150c966571d0aff0728)
* net_registry: split utility function of common interest out into util module.Michael Adam2008-04-104-87/+151
| | | | | Michael (cherry picked from commit 3bf890783fadd245c59280173627a6caca2dbefe)
* Add a talloc context parameter to current_timestring() to fix memleaks.Michael Adam2008-04-107-22/+38
| | | | | | | | | | | | | | current_timestring used to return a string talloced to talloc_tos(). When called by DEBUG from a TALLOC_FREE, this produced messages "no talloc stackframe around, leaking memory". For example when used from net conf. This also adds a temporary talloc context to alloc_sub_basic(). For this purpose, the exit strategy is slightly altered: a common exit point is used for success and failure. Michael (cherry picked from commit 16b5800d4e3a8b88bac67b2550d14e0aaaa302a9)
* libwbclient: fix Coverity ID 536 remove duplicate error path (dead code).Michael Adam2008-04-101-2/+1
| | | | | | | I leave the more explicit error path in the "if (cmd == 0)" block. Michael (cherry picked from commit 2ae19b5fb89e0a992962af14a81b641bf13b7892)
* libreplace: fix coverity ID 517 - untangle close from open in test/os2_delete.cMichael Adam2008-04-101-1/+8
| | | | | | | | This is not a proper bug but the code is clearer now and we are tracking failure of open separate from that of close. Michael (cherry picked from commit 451fc9ae05f841883081a334e179cf31625a772c)
* posix_acls: clarify loop condition code, removing unneeded counter variable.Michael Adam2008-04-101-7/+2
| | | | | | | | | | | | Coverity ID 545 falsely classified this as a NULL dereferencing bug. By putting the loop of walking the list of aces more naturely not using additional counters, it becomes much more obvious that it is not entered when dir_ace == NULL. The same modifications are done for the file_ace loop. Michael (cherry picked from commit 6dab6cf0647d7db01e5e472f8b5cf21395b7dbf0)
* winbindd: only call winbindd_validate_cache when not in offline logon mode.Michael Adam2008-04-102-20/+17
| | | | | | | | | | | | | originally, the cache was cleared before calling validate, but this way, we skipt the validation of the database when not in offline logon mode. This is put into a new wrapper function winbindd_cache_validate_and_initialize() which is now called in winbindd.c instead calling validate and initialize functions separately. Michael (cherry picked from commit 641b5e3fecfce9581536de8daf6d7e6ecbefaf34)
* winbindd: fix break out early condition in fill_grent_mem().Michael Adam2008-04-101-1/+1
| | | | | | | | if (!&new_glist) would always be skipped, if (new_glist == NULL) is what must have been meant... Michael (cherry picked from commit c1b60cdecff2a53f0a75a432a1ad7730eb734908)
* Also accept 0x15 getdc repliesVolker Lendecke2008-04-101-19/+22
| | | | | | My NT4SP6 which my DC here trusts sends 0x15 instead of 0x13, from looking at the sniff at least the DC name is at the same place. (cherry picked from commit 79bc6796b81395d591fc6ef389f153dd981fe68b)
* Try anonymous session setupVolker Lendecke2008-04-101-1/+3
| | | | | | | ... if there's no trust password Attempt to fix bug 5350 (cherry picked from commit 99f6b63f3c637457fdda7ed930c6666171b25b61)
* objectclass -> objectClassKarolin Seeger2008-04-101-3/+3
| | | | | Karolin (cherry picked from commit b865b8a79afd8f3b43bb3adcdcbcbca623dc76a2)
* Fix typo.Karolin Seeger2008-04-101-1/+1
| | | | | Karolin (cherry picked from commit 42fbbeb1caf93e4e17bb62f31ff90a853bd169fb)
* Fix typos.Karolin Seeger2008-04-094-4/+4
| | | | | Karolin (cherry picked from commit 6cee34703503fbf3629057345fe221b866560648)
* Destroy DMAPI session when main smbd daemon exits.Alexander Bokovoy2008-04-092-0/+33
| | | | | | | | DMAPI session is precious resource maintained at kernel level. We open one of them and use across multiple smbd daemons but once last of them exits, DMAPI session needs to be destroyed. There are some HSM implementations which fail to shutdown when opened DMAPI sessions left. Ensure we shutdown our session when it is really not needed anymore. This is what recommended by DMAPI specification anyway. (cherry picked from commit a0cefd44009d414fa00ec6e08c70d21b74acdbcb)
* Use size_t for strlen return, not int. Karolin pleaseJeremy Allison2008-04-091-1/+1
| | | | | | pull. Jeremy. (cherry picked from commit f4a1fdaac0dd6b1b241fac9879416c8ad4403eff)
* Allow broader range of HSM systems in vfs_tsmsmAlexander Bokovoy2008-04-091-5/+31
| | | | | | | | Allow to specify value of DMAPI attribute returned during offline file checks, 'tsmsm: dmapi value'. Previously tsmsm module has supported only IBM TSM SM engine which reports file state by *existence* of a certain DMAPI attribute. Other HSM systems report a certain value as DMAPI request's result. Port from Tridge's v3-0-ctdb git tree. (cherry picked from commit 1faa97d5cc51277abbc6cb5c37d31c429bea04e4)
* Rewrite the wrap checks to deal with gcc 4.x optimisations.Jeremy Allison2008-04-083-101/+142
| | | | | | Karolin, please pull once Volker has reviewed. Thanks. Jeremy. (cherry picked from commit 09852899cadc48abe2f2651ecbceaf881198e648)
* Fix bug #5372. With a large CUPS installation with a remote server, contactingJeremy Allison2008-04-072-12/+45
| | | | | | | | | the server when searching for a name for the location and comment fields can take so much time the client times out. When searching for a name we don't use these fields anyway, so add a function get_a_printer_search() which doesn't contact the CUPS server. Jeremy. (cherry picked from commit 92d9f20852d5384e92a93dd0b051034718840ca8)
* When using plaintext ucs2 passwords clistr_push calls ucs2_align, which causesJeremy Allison2008-04-071-3/+9
| | | | | | | | | | the space taken by the unicode password to be one byte too long (as we're on an odd byte boundary here). Reduce the count by 1 to cope with this. Fixes smbclient against NetApp servers which can't cope. Fix from bryan.kolodziej@allenlund.com in bug #3840. Jeremy. (cherry picked from commit 1e7e7d86a1ae1cd2c3cc3de9f36b7326ad249b82)
* Fix bug 5375Volker Lendecke2008-04-071-3/+4
| | | | | Thanks to Moskvin for testing (cherry picked from commit d3c31aa36c451f0a19496cd33c0b055b466e6b09)
* Fix a misleading debug messageVolker Lendecke2008-04-071-2/+3
| | | | (cherry picked from commit 494b32197f0872b115f0cd1a35421d00a89360a6)
* mapping_tdb: fix enumeration of mappings.Michael Adam2008-04-061-1/+1
| | | | | | | db->traverse_read returns the number of traversed object on success. Michael (cherry picked from commit 2be2188a97060f04c2dea3ca9ed0fd3db0b3df7c)
* mapping.tdb: fix creation of entries with GROUP_PREFIXMichael Adam2008-04-061-1/+1
| | | | | | | Macro is no expanded inside literal string. Michael (cherry picked from commit 872a3d3d38287ab9cbb260d05777481d94e03539)
* Fix a segfault (an uninitialized variable)Volker Lendecke2008-04-041-3/+3
| | | | (cherry picked from commit 75eb30884a83266fd7331d8f1e3905a0245bb3d8)
* net_registry: fix build/linking of net_registry.Michael Adam2008-04-041-1/+3
| | | | | | Michael Signed-off-by: Michael Adam <obnox@samba.org>
* test: add diagnostic message to net_registry test.Michael Adam2008-04-041-0/+1
| | | | | Michael (cherry picked from commit c04a234f8f6fbdf8e54c69414024d84aa71fec45)