summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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).
* Remove support for obsolete data type "ipv4address"Jelmer Vernooij2008-10-231-34/+0
|
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2008-10-233-71/+54
|\
| * s3-build: remove duplicate svcctl bits and re-run make samba3-idl.Günther Deschner2008-10-232-70/+8
| | | | | | | | Guenther
| * idl: add svcctl specific access bits.Günther Deschner2008-10-231-1/+46
| | | | | | | | Guenther
* | Use libutil genrand.Jelmer Vernooij2008-10-234-225/+6
|/
* Merge branch 'master' of git://git.samba.org/sambaJelmer Vernooij2008-10-2330-1022/+53
|\ | | | | | | | | Conflicts: lib/util/asn1_proto.h
| * Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2008-10-232-5/+23
| |\
| | * Make use of a large buffer for smbclient put commandVolker Lendecke2008-10-231-0/+3
| | |
| | * Optimize x_fread to speed up the smbclient put commandVolker Lendecke2008-10-231-5/+20
| | |
| * | Import talloc_stack into util library.Jelmer Vernooij2008-10-236-3/+5
| |/
| * Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2008-10-239-2/+97
| |\
| * | selftest.pl: Silence verbose tdbsam output.Jelmer Vernooij2008-10-231-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-2318-1011/+22
| | |
* | | Inline asn1_proto.h since the API is stable and public.Jelmer Vernooij2008-10-233-62/+40
| |/ |/|
* | Merge branch 'master' of git://git.samba.org/sambaJelmer Vernooij2008-10-231-0/+95
|\ \
| * | s3-docs: fix typos in locator manpage found by metze.Günther Deschner2008-10-231-4/+6
| | | | | | | | | | | | Guenther
| * | s3-docs: add very basic winbind_krb5_locator.7 manpage.Günther Deschner2008-10-231-0/+93
| |/ | | | | | | Guenther
* / Share codepages.Jelmer Vernooij2008-10-238-2/+2
|/
* 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-235-5/+15
|\
| * Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-develAndrew Bartlett2008-10-234-5/+7
| |\
| | * s4-smbtorture: fix build warning.Günther Deschner2008-10-231-1/+1
| | | | | | | | | | | | Guenther
| | * 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
| * | Clarify the linked attribute module behaviour with commentsAndrew Bartlett2008-10-231-1/+9
| | |
* | | Fix header file installation.Jelmer Vernooij2008-10-232-5/+5
| | |
* | | Import NTSTATUS defines from Samba 3.Jelmer Vernooij2008-10-232-5/+9
| | |
* | | Import WERROR defines from Samba 3.Jelmer Vernooij2008-10-231-9/+57
| | |
* | | Import new DOS error codes from Samba 3.Jelmer Vernooij2008-10-231-0/+4
| | |
* | | Move libcli-util error code to top-level.Jelmer Vernooij2008-10-238-4/+2
| | |
* | | 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-build: temporarily add asn1_proto file.Günther Deschner2008-10-221-0/+59
| | | | | | | Jelmer, how can we get this autogenerated from samba3 in the non merged-build case ? Guenther
* s3-asn1: make all of s3 asn1 code do a proper asn1_init() first.Günther Deschner2008-10-227-408/+494
| | | | Guenther
* s3-asn1/spnego: use OIDs including dots.Günther Deschner2008-10-221-4/+4
| | | | Guenther
* s3: use shared asn1 code.Günther Deschner2008-10-2213-743/+57
| | | | Guenther
* s3-spnego: move spnego defines to spnego.hGünther Deschner2008-10-222-17/+17
| | | | Guenther
* lib-util: merge from s3 asn1.Günther Deschner2008-10-221-0/+3
| | | | Guenther
* lib-util: fix c++ compile warning.Günther Deschner2008-10-221-1/+1
| | | | Guenther