summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* Move the is_known_pipename check into np_openVolker Lendecke2008-10-253-21/+16
|
* Add str_list_check[_ci] to s3's proto.hVolker Lendecke2008-10-251-0/+3
| | | | | | Jelmer, when I include lib/util/util.h into some s3 file I get errors, this is why I put those prototypes here as a workaround. Might be fixed differently later.
* Fix "make etags" -- the args list gets really long for s4 with the prefixVolker Lendecke2008-10-251-1/+34
|
* Remove "pipe_handle_offset" -- pipes now use "struct files_struct"Volker Lendecke2008-10-253-22/+0
|
* Error return is False, not -1Derrell Lipman2008-10-241-3/+3
| | | | | | | | | - There were a few places in SMBC_getatr() that returned -1 instead of a boolean. -1 was intended to mean error, but that's what False is for, and the usages of this function assume that it returns a boolean with False as the error condition. Derrell
* Revert Samba3 back to using its own charset handling code.Jelmer Vernooij2008-10-241-1/+1
|
* Remove more uses of global_loadparm.Jelmer Vernooij2008-10-241-1/+1
|
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2008-10-2411-95/+280
|\
| * s3: fix simple "incompatible pointer type" build warningTim Prouty2008-10-231-1/+1
| |
| * Fix "ndr_size_PAC_LOGON_INFO defined but not used" build warningTim Prouty2008-10-232-6/+1
| | | | | | | | | | | | | | This patch removes the gensize option from krb5pac.idl because it generates an unused function that has been causing warnings during the s3 build. I re-ran 'make samba3-idl' to update the generated files for s3. For s4 I ran a full build with no problems.
| * netapi: make sure to always cleanup after testing NetUser calls.Günther Deschner2008-10-241-0/+4
| | | | | | | | Guenther
| * netapi: add more group tests to netapitest.Günther Deschner2008-10-241-3/+220
| | | | | | | | Guenther
| * s3-samr-server: return NT_STATUS_NOT_SUPPORTED for group rename.Günther Deschner2008-10-241-0/+3
| | | | | | | | Guenther
| * s3-samr-server: remove unused historic code.Günther Deschner2008-10-241-60/+0
| | | | | | | | Guenther
| * svcctl: move some non-rpc related bits out of rpc_svcctl.h.Günther Deschner2008-10-243-23/+49
| | | | | | | | Guenther
| * Fix prototype for set_sockaddr_port.Jelmer Vernooij2008-10-232-2/+2
| |
* | Fix merged build paths.Jelmer Vernooij2008-10-242-2/+2
|/
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2008-10-231-1/+0
|\
| * Fix "parameter has incomplete type" build warning.Tim Prouty2008-10-231-1/+0
| | | | | | | | | | | | | | | | | | | | When libcli-util was moved to the top level (3be0f6ea56ed8e43cd287ed020e942efb675b87b) it introduced a build warning. Since ndr_map_error2ntstatus depends on the definition of enum ndr_err_code and libndr.h can't be easily included in error.h, I moved the definition of enum ndr_err_code to libndr.h. This also eliminates the need for the duplicate definition in proto.h
* | Move set_sockaddr_port to libutil.Jelmer Vernooij2008-10-231-12/+0
|/
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2008-10-232-4/+6
|\
| * s3-build: add missing generated svcctl changes.Günther Deschner2008-10-232-4/+6
| | | | | | | | Guenther
* | Use common net utility code (address and sockaddr manipulation).Jelmer Vernooij2008-10-239-409/+21
| |
* | Use sockaddr_storage only where we rely on the size, use sockaddrJelmer Vernooij2008-10-2317-115/+118
|/ | | | | otherwise (to clarify we can also pass in structs smaller than sockaddr_storage, such as sockaddr_in).
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2008-10-232-70/+8
|\
| * s3-build: remove duplicate svcctl bits and re-run make samba3-idl.Günther Deschner2008-10-232-70/+8
| | | | | | | | Guenther
* | Use libutil genrand.Jelmer Vernooij2008-10-234-225/+6
|/
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2008-10-231-0/+3
|\
| * Make use of a large buffer for smbclient put commandVolker Lendecke2008-10-231-0/+3
| |
* | Import talloc_stack into util library.Jelmer Vernooij2008-10-234-189/+3
|/
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2008-10-234-1/+1
|\
| * Share codepages.Jelmer Vernooij2008-10-234-1/+1
| |
* | Use WERR_FILE_EXISTS which is the equivalent of WERR_ALREADY_EXISTSJelmer Vernooij2008-10-236-6/+6
| | | | | | | | previously present in Samba 3.
* | Use common error definitions.Jelmer Vernooij2008-10-2311-999/+8
|/
* s3-build: fix another build warning with the new ASN1 code.Günther Deschner2008-10-231-2/+5
| | | | Guenther
* netapi: fix add_GROUP_USERS_INFO_X_buffer.Günther Deschner2008-10-231-4/+12
| | | | Guenther
* netapi: fix NetUserGetGroups_r returning partial results.Günther Deschner2008-10-231-2/+3
| | | | Guenther
* s3-samr-server: unify callback convention: _samr_UserSetInfo.Günther Deschner2008-10-231-34/+19
| | | | Guenther
* s3-samr-server: unify callback convention: _samr_QueryDomainInfo.Günther Deschner2008-10-231-32/+18
| | | | Guenther
* s3-samr-server: fix return code in _samr_QueryDisplayInformation.Günther Deschner2008-10-231-1/+1
| | | | Guenther
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2008-10-233-3/+5
|\
| * s3-build: fix some const build warnings.Günther Deschner2008-10-231-2/+2
| | | | | | | | Guenther
| * netapi: NetGroupEnum_r needs to handle servers with no groups.Günther Deschner2008-10-231-1/+1
| | | | | | | | Guenther
| * s3-samr-server: _samr_DeleteUser needs to wipe out the user_handle on success.Günther Deschner2008-10-231-0/+2
| | | | | | | | Guenther
* | Remove unused copy of tables.plJelmer Vernooij2008-10-231-89/+0
| |
* | Remove unused copy of ndrdump.c.Jelmer Vernooij2008-10-231-445/+0
|/
* s3-samr-server: fix access check in _samr_QuerySecurity().Günther Deschner2008-10-221-1/+1
| | | | Guenther
* s3-build: fix the build.Günther Deschner2008-10-221-2/+2
| | | | Guenther
* Fix net rpc vampire, based on an *amazing* piece of debugging work by ↵Jeremy Allison2008-10-225-45/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "Cooper S. Blake" <the_analogkid@yahoo.com>. "I believe I have found two bugs in the 3.2 code and one bug that carried on to the 3.3 branch. In the 3.2 code, everything is located in the utils/net_rpc_samsync.c file. What I believe is the first problem is that fetch_database() is calling samsync_fix_delta_array() with rid_crypt set to true, which means the password hashes are unencrypted from the RID encryption. However, I believe this call is redundant, and the corresponding call for samdump has rid_crypt set to false. So I think the rid_crypt param should be false in fetch_database(). If you follow the code, it makes its way to sam_account_from_delta() where the password hashes are decrypted a second time by calling sam_pwd_hash(). I believe this is what is scrambling my passwords. These methods were refactored somewhere in the 3.3 branch. Now the net_rpc_samsync.c class calls rpc_vampire_internals, which calls libnet/libnet_samsync.c, which calls samsync_fix_delta_array() with rid_crypt always set to false. I think that's correct. But the second bug has carried through in the sam_account_from_delta() function: 208 if (memcmp(r->ntpassword.hash, zero_buf, 16) != 0) { 209 sam_pwd_hash(r->rid, r->ntpassword.hash, lm_passwd, 0); 210 pdb_set_lanman_passwd(account, lm_passwd, PDB_CHANGED); 211 } 212 213 if (memcmp(r->lmpassword.hash, zero_buf, 16) != 0) { 214 sam_pwd_hash(r->rid, r->lmpassword.hash, nt_passwd, 0); 215 pdb_set_nt_passwd(account, nt_passwd, PDB_CHANGED); If you look closely you'll see that the nt hash is going into the lm_passwd variable and the decrypted value is being set in the lanman hash, and the lanman hash is being decrypted and put into the nt hash field. So the LanMan and NT hashes look like they're being put in the opposite fields." Fix this by removing the rid_crypt parameter. Jeremy.
* s3-asn1: make all of s3 asn1 code do a proper asn1_init() first.Günther Deschner2008-10-227-408/+494
| | | | Guenther