summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2008-10-23Use sockaddr_storage only where we rely on the size, use sockaddrJelmer Vernooij17-115/+118
otherwise (to clarify we can also pass in structs smaller than sockaddr_storage, such as sockaddr_in).
2008-10-23Remove support for obsolete data type "ipv4address"Jelmer Vernooij1-34/+0
2008-10-23Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij3-71/+54
2008-10-23Use libutil genrand.Jelmer Vernooij4-225/+6
2008-10-23s3-build: remove duplicate svcctl bits and re-run make samba3-idl.Günther Deschner2-70/+8
Guenther
2008-10-23idl: add svcctl specific access bits.Günther Deschner1-1/+46
Guenther
2008-10-23Merge branch 'master' of git://git.samba.org/sambaJelmer Vernooij30-1022/+53
Conflicts: lib/util/asn1_proto.h
2008-10-23Inline asn1_proto.h since the API is stable and public.Jelmer Vernooij3-62/+40
2008-10-23Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2-5/+23
2008-10-23Make use of a large buffer for smbclient put commandVolker Lendecke1-0/+3
2008-10-23Optimize x_fread to speed up the smbclient put commandVolker Lendecke1-5/+20
2008-10-23Import talloc_stack into util library.Jelmer Vernooij6-3/+5
2008-10-23Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij9-2/+97
2008-10-23Merge branch 'master' of git://git.samba.org/sambaJelmer Vernooij1-0/+95
2008-10-23Share codepages.Jelmer Vernooij8-2/+2
2008-10-23s3-docs: fix typos in locator manpage found by metze.Günther Deschner1-4/+6
Guenther
2008-10-23selftest.pl: Silence verbose tdbsam output.Jelmer Vernooij1-1/+1
2008-10-23s3-docs: add very basic winbind_krb5_locator.7 manpage.Günther Deschner1-0/+93
Guenther
2008-10-23Use WERR_FILE_EXISTS which is the equivalent of WERR_ALREADY_EXISTSJelmer Vernooij6-6/+6
previously present in Samba 3.
2008-10-23Use common error definitions.Jelmer Vernooij18-1011/+22
2008-10-23s3-build: fix another build warning with the new ASN1 code.Günther Deschner1-2/+5
Guenther
2008-10-23netapi: fix add_GROUP_USERS_INFO_X_buffer.Günther Deschner1-4/+12
Guenther
2008-10-23netapi: fix NetUserGetGroups_r returning partial results.Günther Deschner1-2/+3
Guenther
2008-10-23s3-samr-server: unify callback convention: _samr_UserSetInfo.Günther Deschner1-34/+19
Guenther
2008-10-23s3-samr-server: unify callback convention: _samr_QueryDomainInfo.Günther Deschner1-32/+18
Guenther
2008-10-23s3-samr-server: fix return code in _samr_QueryDisplayInformation.Günther Deschner1-1/+1
Guenther
2008-10-23Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij5-5/+15
2008-10-23Fix header file installation.Jelmer Vernooij2-5/+5
2008-10-23Merge branch 'master' of ssh://git.samba.org/data/git/samba into master-develAndrew Bartlett4-5/+7
2008-10-23Clarify the linked attribute module behaviour with commentsAndrew Bartlett1-1/+9
2008-10-23Import NTSTATUS defines from Samba 3.Jelmer Vernooij2-5/+9
2008-10-23Import WERROR defines from Samba 3.Jelmer Vernooij1-9/+57
2008-10-23Import new DOS error codes from Samba 3.Jelmer Vernooij1-0/+4
2008-10-23Move libcli-util error code to top-level.Jelmer Vernooij8-4/+2
2008-10-23Remove unused copy of tables.plJelmer Vernooij1-89/+0
2008-10-23Remove unused copy of ndrdump.c.Jelmer Vernooij1-445/+0
2008-10-23s4-smbtorture: fix build warning.Günther Deschner1-1/+1
Guenther
2008-10-23s3-build: fix some const build warnings.Günther Deschner1-2/+2
Guenther
2008-10-23netapi: NetGroupEnum_r needs to handle servers with no groups.Günther Deschner1-1/+1
Guenther
2008-10-23s3-samr-server: _samr_DeleteUser needs to wipe out the user_handle on success.Günther Deschner1-0/+2
Guenther
2008-10-22s3-samr-server: fix access check in _samr_QuerySecurity().Günther Deschner1-1/+1
Guenther
2008-10-22s3-build: fix the build.Günther Deschner1-2/+2
Guenther
2008-10-22Fix net rpc vampire, based on an *amazing* piece of debugging work by ↵Jeremy Allison5-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.
2008-10-22s3-build: temporarily add asn1_proto file.Günther Deschner1-0/+59
Jelmer, how can we get this autogenerated from samba3 in the non merged-build case ? Guenther
2008-10-22s3-asn1: make all of s3 asn1 code do a proper asn1_init() first.Günther Deschner7-408/+494
Guenther
2008-10-22s3-asn1/spnego: use OIDs including dots.Günther Deschner1-4/+4
Guenther
2008-10-22s3: use shared asn1 code.Günther Deschner13-743/+57
Guenther
2008-10-22s3-spnego: move spnego defines to spnego.hGünther Deschner2-17/+17
Guenther
2008-10-22lib-util: merge from s3 asn1.Günther Deschner1-0/+3
Guenther
2008-10-22lib-util: fix c++ compile warning.Günther Deschner1-1/+1
Guenther