summaryrefslogtreecommitdiffstats
path: root/source/rpc_server
Commit message (Collapse)AuthorAgeFilesLines
* Revert "s3-srvsvc: fix _srvsvc_NetShareAdd segfault."Karolin Seeger2008-11-171-3/+1
| | | | This reverts commit aa9a74f33f1a1862836569565d64861706de5429.
* Revert "Unify access checks for lsa server functions."Karolin Seeger2008-11-171-17/+4
| | | | This reverts commit afed4929f9c707fb72b0e8dd12b1a1e8dcab9a84.
* Revert "s3-samr-server: be consistent when reporting we do password complexity."Karolin Seeger2008-11-171-4/+0
| | | | This reverts commit f8d4596ec2b8f35dd3cc05aa7ee356abb9c0920b.
* Revert "Cope with MAXIMUM_ALLOWED_ACCESS requests when opening handles."Karolin Seeger2008-11-171-59/+5
| | | | This reverts commit 042e50f8709cfbe45d5b184cb3c4fe1b16bdc3b0.
* Revert "s3-samr-server: _samr_DeleteUser needs to wipe out the user_handle ↵Karolin Seeger2008-11-171-2/+0
| | | | | | on success." This reverts commit ae01a98d49be39c258e479d610fa2e58ea2b6c62.
* Revert "Remove the requirement for ldap call made as root. Add in security"Karolin Seeger2008-11-171-63/+4
| | | | This reverts commit b339f17132b18edad52b4c2f6b348e4b8d789bcb.
* Revert "s3-samr-server: fix access check in _samr_QuerySecurity()."Karolin Seeger2008-11-171-1/+1
| | | | This reverts commit 96b35c32ae99d74608ad95d063629554fee77979.
* s3-samr-server: fix access check in _samr_QuerySecurity().Günther Deschner2008-10-231-1/+1
| | | | | Guenther (cherry picked from commit 25cb282f7042e8192c0bc6d720df0646b74e9a47)
* Remove the requirement for ldap call made as root. Add in securityJeremy Allison2008-10-231-4/+63
| | | | | | checks for all SAMR calls. Jeremy. (cherry picked from commit b848f96d747fb41c074dd073f24f186539257d71)
* s3-samr-server: _samr_DeleteUser needs to wipe out the user_handle on success.Günther Deschner2008-10-231-0/+2
| | | | | | Guenther (cherry picked from commit 8a0054c6d273049bea235803db25912f6cf03610) (cherry picked from commit 40a904ee021e4c9390235f1d476bc37b87ac9b70)
* Cope with MAXIMUM_ALLOWED_ACCESS requests when opening handles.Jeremy Allison2008-10-231-5/+59
| | | | | Jeremy. (cherry picked from commit 82ec832f7edffe2fcfd1bb067e092c159bed2973)
* s3-samr-server: be consistent when reporting we do password complexity.Günther Deschner2008-10-211-0/+4
| | | | | Guenther (cherry picked from commit 7c2831c5872ad26e1e0cd7df59d6c0b88d566760)
* Unify access checks for lsa server functions.Jeremy Allison2008-10-211-4/+17
| | | | | Jeremy. (cherry picked from commit ef15ff6abec34377ab7fa75201e2799c0bb72aeb)
* s3-srvsvc: fix _srvsvc_NetShareAdd segfault.Günther Deschner2008-10-061-1/+3
| | | | | | | | parm_err is not a ref pointer. Guenther (cherry picked from commit 29942b7043c1a31ad4fb76d01ab19fd3dbf26f0a) (cherry picked from commit 6debf35c1575a25f98f927726742a7f34b3a55a9)
* Fix coverity CID: 594. Resource leak on error path.Jeremy Allison2008-08-141-2/+4
| | | | | Jeremy. (cherry picked from commit dcd28df09538922369cb613ac95c147365e02c42)
* Canonicalize servername in the printer functions to remove leading '\\' ↵Jeremy Allison2008-07-061-54/+59
| | | | | | | characters. Ensure we always return consistent names. Jeremy. (cherry picked from commit d47ab1d07ba043f42a24a17f7644bf672c12791a)
* Fix a file descriptor leak in add_port_hookVolker Lendecke2008-06-291-4/+1
| | | | | | | This was probably cut&paste from add_printer_hook which further down has the unconditional close(fd). In add_port_hook() we're not interested in the output of 'addport command', so don't create the out fd. (cherry picked from commit 0c5ca2127ac6e3c71e369242376d27429c3aee5e)
* Fix valgrind errors in _spoolss_addprinterdriverVolker Lendecke2008-06-271-0/+11
| | | | | | | | | | Jerry, this was dropped as part of your SVN r15309 (037f9f83). Can you please check? Thanks, Volker (cherry picked from commit 5aa2411f0b3720b790439359a2dadb23008e936e)
* Sorry volker, lost your original git-id due to proto.h conflicts.Jeremy Allison2008-06-241-4/+2
| | | | | | | | | | | | | Remove the "exists" parameter from create_msdfs_link Jeremy, setting "exists" to True in _dfs_Add prevented the initial creation of a new symlink for me, because the SMB_VFS_UNLINK failed. This also exists in 3.2. I only check it into 3.3 as I would like you to look at it first. Thanks, Volker (cherry picked from commit 47e66814c176d597d9a3c165a7cfa6a5a2fd70be)
* Check for sec_initial_uid() instead of uid==0 in dfs managementVolker Lendecke2008-06-241-2/+2
| | | | (cherry picked from commit 12d816dc997b1bfc048c5c042945a5e935abf4b4)
* Fix bug 5500 -- thanks to mathion at thorrovydeti.com for reportingVolker Lendecke2008-06-161-0/+2
| | | | (cherry picked from commit 996c3ce6f0dbe79b0679ae30afd873c24fe5b1eb)
* Fix a crash in _winreg_QueryValueVolker Lendecke2008-06-131-0/+4
| | | | | | | | | | | | Coverity ID 474, value_length and type are both unique, not ref pointers and can thus be NULL. Karolin, please merge this to -stable. Thanks, Volker (cherry picked from commit 999533c0ccced59141d8baff5bc248d63e2a966f)
* Don't reset password last set time just because the expired flagJim McDonough2008-06-101-1/+9
| | | | | | | | is set to 0. If the account wasn't expired but autolocked, using "net user /dom <username> /active:y" would clear this, incorrectly setting the current time as the new "password last set" time. (cherry picked from commit 2089c692cfe5a4f9bbed1e658c6f73c310dbff57)
* Allow server manager to close open files selected by id.Jeremy Allison2008-06-051-2/+55
| | | | | Jeremy. (cherry picked from commit 4b312d4e6fdd30ea754cf499fbe86ce932d1d9d2)
* Remove MAX_SESS_ENTRIES and MAX_CONN_ENTRIES limitsJeremy Allison2008-05-231-19/+6
| | | | | | | | | | | | | as they are no longer needed now we have IDL marshalling. Change the calculation of the 32-bit fileid we return to a Windows client. We can't just use the generation count as it starts at zero for every smbd - and this command must enumerate all files open across all smbds. We'd really like combination of process-id + dev + inode + generation count to be unique, but as we can't fit that into 32 bits just use 16 bits of pid + generation count. Jeremy. (cherry picked from commit edf73a97f674d4cb30f20b0cc3d6e6b43b4ca3eb)
* Arggh. Got the path/user the wrong way around. IDL is correct :-).Jeremy Allison2008-05-231-4/+4
| | | | | Jeremy. (cherry picked from commit 40548ba51c93de1e2b8a29be07e2f53540f4e9d4)
* Fix 2 bugs with displaying open file state. FirstlyJeremy Allison2008-05-231-3/+3
| | | | | | | | | | the IDL is documented incorrectly in the MS-DOCS. Username and path need to be reversed (yes I will raise this with MS). Secondly, we need to check access_mask for the permissions, not share_access (share_access are the deny modes). Jeremy. (cherry picked from commit 35f8b3e7948230bd404078db28eed67bfd896bf7)
* dsgetdcname: use existing messaging_context if possible.Günther Deschner2008-05-221-0/+2
| | | | | Guenther (cherry picked from commit 7889516a384c155a9045aad4409c041fddd0d98d)
* Fix typo.Günther Deschner2008-05-211-1/+1
| | | | | Guenther (cherry picked from commit d3dd7ea5a77414c0d802668ab5bfbe3487b66926)
* Fix a valgrind error in _samr_LookupNamesVolker Lendecke2008-05-211-5/+8
| | | | (cherry picked from commit fb0a25d59ddd28ea1d5af33ec7d9f817fac3fb9d)
* Make sure to zero the returned handle in _svcctl_CloseServiceHandle().Günther Deschner2008-05-201-0/+2
| | | | | Guenther (cherry picked from commit 84a079af490cb135dd557091932ea079e1d7ff5b)
* 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)
* 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)
* _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 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)
* Fix an uninitialized variable warningVolker Lendecke2008-05-051-0/+1
| | | | (cherry picked from commit 4cc09ec40609484c973361a0cc0f05bfaef1738e)
* init_srv_share_info_ctr: Add debug messages.Michael Adam2008-05-051-0/+3
| | | | | Michael (cherry picked from commit 8b2cc36ffcb3bccb760ec7cb0a22558eab56070d)
* Strip whitespace in ntsvcs rpc server.Günther Deschner2008-05-051-13/+13
| | | | | Guenther (cherry picked from commit 0c7af8bc136f45484eab3c36b761046f88653b93)
* The first of Martin Zielinski <mz@seh.de> Vista printing patches.Jeremy Allison2008-05-051-3/+6
| | | | | | | Jerry will test and should get into 3.2 final (and the next 3.0.x release). Jeremy. (cherry picked from commit 3fc1ab210b8772ee9f867499c0b1a7bb4bcdd285)
* NetrUnjoinDomain2: Honor registry config to try config changes.Günther Deschner2008-04-221-0/+1
| | | | | Guenther (cherry picked from commit b42304c299224238a0247e0e1561eb2ad3217b96)
* WKSSVC: In _wkssvc_NetrJoinDomain2, do modify the local configuration if ↵Günther Deschner2008-04-221-0/+1
| | | | | | | enabled. Guenther (cherry picked from commit 260efafb8fb6527eb0a182f9a6bfed8239dd8315)
* Fix _samr_GetUserPwInfo() (to return more then just zeros).Günther Deschner2008-04-121-8/+45
| | | | | Guenther (cherry picked from commit 624371ce32a7c0816963745059e743e5b3e92e2a)
* Fix _samr_GetDomPwInfo (to return more then zeros).Günther Deschner2008-04-121-2/+16
| | | | | Guenther (cherry picked from commit 1cde9579f10ab8c43c25dfd6e5c658c7653f9a37)
* A level 25 setuserinfo does change the pwdlastsetVolker Lendecke2008-04-111-6/+22
| | | | (cherry picked from commit f65cb5d4b51e2e7b9b16b73e47cd2a8d55d5d4b0)
* Fix bug #5372. With a large CUPS installation with a remote server, contactingJeremy Allison2008-04-071-1/+7
| | | | | | | | | 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)
* Fix build warning.Günther Deschner2008-04-011-1/+1
| | | | | Guenther (cherry picked from commit c40522cfe97c4e5eedccc9c56f47f9d4a8bcdaaf)
* Fix SRVSVC ShareInfo level 502 server side handling.Günther Deschner2008-04-011-4/+6
| | | | | Guenther (cherry picked from commit 776facabf6f09f643d6dc526aa83f8db517465f9)
* Fix SRVSVC ShareInfo max_users handling server side.Günther Deschner2008-04-011-6/+6
| | | | | Guenther (cherry picked from commit b4d944e724f7ae2a97ba788b185aba7b7308b475)
* Fix _srvsvc_NetShareSetInfo.Günther Deschner2008-04-011-3/+5
| | | | | Guenther (cherry picked from commit 2fd90b62d7e61fa0c23f8f41e9f12fc16f29a8b1)