summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_netlog_nt.c
AgeCommit message (Collapse)AuthorFilesLines
2008-08-22rpc_server: make it a little more obvious what flags we send to a client.Günther Deschner1-1/+10
Guenther (This used to be commit f3791e03ab09cadb1f54e32e67f4dfb3cf42e708)
2008-06-26Remove a check on p->vuid in _netr_LogonSamLogon/offVolker Lendecke1-6/+0
This is in preparation of removing p->vuid completely. I don't think this check here makes any sort of sense, it only proves that the user having done the session setup on its way to the schannel bind (ususally anonymous) did not do a logoff in between. But this would have been caught way before this in reply_pipe_write_and_X. (This used to be commit fbc00460f8deaa57bfbf16b12d29acec56578b63)
2008-06-21Make pipes_struct its own talloc ctxVolker Lendecke1-19/+10
(This used to be commit 829b1ad4697f2f1ea008377d591456722dccd025)
2008-05-17Factor out generation of an info3 struct from a serversupplied_infoVolker Lendecke1-183/+12
(This used to be commit e60faccc1bdd2b80e039ec8c93683be10752f937)
2008-04-29_netr_LogonSamLogon: fix lm session key length.Günther Deschner1-1/+1
Thanks Volker for pointing this out. Guenther (This used to be commit 7ccca9a004c7a4794781cbd7c703c53a0481bd51)
2008-03-27Fix samlogon rpc client & server.Günther Deschner1-1/+1
Guenther (This used to be commit 0aaf975560dce3b4e58ab71687c3412c0c2a72cf)
2008-03-26Fix _netr_LogonControl2(). Return talloced dcname.Günther Deschner1-4/+10
Guenther (This used to be commit 42971b71acec9c9fd94011c06d41702dac6b4f87)
2008-02-27Add my copyright.Günther Deschner1-0/+1
Guenther (This used to be commit d078a8757182d84dfd3307a2e1b751cf173aaa97)
2008-02-16Use pidl for _netr_LogonSamLogon() and _netr_LogonSamLogonEx().Günther Deschner1-146/+145
Guenther (This used to be commit 0d0b93995399bba0acf891fab107fd93ecec321f)
2008-02-15Replace DOM_CHAL with "struct netr_Credential" where we can right now.Günther Deschner1-3/+3
This allows to remove some more old netlogon client calls. Guenther (This used to be commit c0b1a876583230a5130f5df1965d6c742961bcdc)
2008-02-15Fix the netlogon rpc_server build.Günther Deschner1-5/+5
Guenther (This used to be commit 47806386e5cb12919615bb3075c9ed613efa4fdb)
2008-02-15Use pidl for _netr_LogonSamLogoff().Günther Deschner1-29/+14
Guenther (This used to be commit a9683cbf4352ce331156f40b24a481fc87854b50)
2008-02-15Use pidl for _netr_ServerAuthenticate2().Günther Deschner1-55/+33
Guenther (This used to be commit 5d81cc136bcd8f53bedea6de5380b1147862c391)
2008-02-15Use pidl for _netr_ServerAuthenticate().Günther Deschner1-40/+22
Guenther (This used to be commit 943386c5dd601f5c8cf85bfcb08f731dd5a6437d)
2008-02-15Use pidl for _netr_ServerPasswordSet().Günther Deschner1-40/+18
Guenther (This used to be commit 85b7489dd2e8181ee48caa8273020885a08bbb74)
2008-02-13Use pidl for _netr_LogonControl2.Günther Deschner1-27/+50
Guenther (This used to be commit 4bd02aa6cdfdfd8f3b678fc81a0a1bd70cef9a67)
2008-02-13Add some netr_NETLOGON_INFO init functions.Günther Deschner1-3/+43
Guenther (This used to be commit f0c66688588a4e62c4a250b0d21a0fe14bbc5099)
2008-02-13Use pidl for _netr_ServerReqChallenge.Günther Deschner1-22/+12
Guenther (This used to be commit ef424319410b7a29ecdfefca53b7e9704beb6139)
2008-02-13Pure cosmetics: remove trailing whitespace in netlogon server.Günther Deschner1-69/+69
Guenther (This used to be commit 983ac0a6762b52945a784ccbc371f4df99a0a52b)
2008-02-13Use pidl for _netr_LogonControl.Günther Deschner1-19/+22
Guenther (This used to be commit ec4947525e0881bfcde661f906ccd1f66fe54f5a)
2008-02-13Use pidl for _netr_NetrEnumerateTrustedDomains().Günther Deschner1-18/+14
This call is completely broken. For now, just make sure that we return the exact same data as before the conversion to pidl. Guenther (This used to be commit 243bdaeea7900ab6a65edfda877e8c225ec7b213)
2008-01-31Enable build of pidl generated netlogon server.Günther Deschner1-0/+472
Guenther (This used to be commit cb0fad1c97e1b590791fc0661f8ada1cdaa69318)
2008-01-31Cleanup status codes inside _net_logon_ctrl2() reply structs.Günther Deschner1-13/+5
Guenther (This used to be commit 1acb9daf809acab15bc390f6598814549b88368c)
2008-01-29Remove unused rpc_ds marshalling code that is unused now.Günther Deschner1-1/+1
Guenther (This used to be commit 153253e14f82fc7078e9cc6f12409e6eda7ee7cb)
2008-01-17Finally enable pidl generated SAMR & NETLOGON headers and clients.Günther Deschner1-1/+1
Guenther (This used to be commit f7100156a7df7ac3ae84e45a47153b38d9375215)
2007-12-15Replace sid_string_static by sid_string_dbg in DEBUGsVolker Lendecke1-4/+2
(This used to be commit bb35e794ec129805e874ceba882bcc1e84791a09)
2007-11-27Remove pstring from everything in rpc_server exceptJeremy Allison1-14/+13
srv_spoolss_nt.c and srv_srvsvc_nt.c. They're next :-). Jeremy. (This used to be commit 55b4f9d003b036af69085f7b64e0df08c5ba440d)
2007-11-03Remove most of the remaining globals out of lib/util_sock.c.Jeremy Allison1-2/+2
I have a plan for dealing with the remaining..... Watch this space. Jeremy. (This used to be commit 963fc7685212689f02b3adcc05b4273ee5c382d4)
2007-11-03I can't get away without a 'length' arg. :-).Jeremy Allison1-1/+1
Jeremy. (This used to be commit 95d01279a5def709d0a5d5ae7224d6286006d120)
2007-11-03Stop get_peer_addr() and client_addr() from using globalJeremy Allison1-2/+4
statics. Part of my library cleanups. Jeremy. (This used to be commit e848506c858bd16706c1d7f6b4b032005512b8ac)
2007-10-24This is a large patch (sorry). Migrate from struct in_addrJeremy Allison1-3/+3
to struct sockaddr_storage in most places that matter (ie. not the nmbd and NetBIOS lookups). This passes make test on an IPv4 box, but I'll have to do more work/testing on IPv6 enabled boxes. This should now give us a framework for testing and finishing the IPv6 migration. It's at the state where someone with a working IPv6 setup should (theorecically) be able to type : smbclient //ipv6-address/share and have it work. Jeremy. (This used to be commit 98e154c3125d5732c37a72d74b0eb5cd7b6155fd)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-5/+5
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10r23801: The FSF has moved around a lot. This fixes their Mass Ave address.Andrew Tridgell1-2/+1
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'mVolker Lendecke1-1/+1
doing this because for the clustering the marshalling is needed in more than one place, so I wanted a decent routine to marshall a message_rec struct which was not there before. Tridge, this seems about the same speed as it used to be before, the librpc/ndr overhead in my tests was under the noise. Volker (This used to be commit eaefd00563173dfabb7716c5695ac0a2f7139bb6)
2007-10-10r22911: Pass a messaging_context to message_send_allVolker Lendecke1-1/+2
(This used to be commit cc92ce665dcfe9054d09429219883b18a4cab090)
2007-10-10r22761: This introduces lib/conn_tdb.c with two main functions: ↵Volker Lendecke1-15/+1
connections_traverse and connections_forall. This centralizes all the routines that did individual tdb_open("connections.tdb") and direct tdb_traverse. Volker (This used to be commit e43e94cda1ad8876b3cb5d1129080b57fa6ec214)
2007-10-10r22001: change prototype of dump_data(), so that it takes unsigned char * now,Stefan Metzmacher1-1/+1
which matches what samba4 has. also fix all the callers to prevent compiler warnings metze (This used to be commit fa322f0cc9c26a9537ba3f0a7d4e4a25941317e7)
2007-10-10r19058: Implement "user cannot change password", and complete "user must changeJim McDonough1-1/+1
password at next logon" code. The "password last set time" of zero now means "user must change password", because that's how windows seems to use it. The "can change" and "must change" times are now calculated based on the "last set" time and policies. We use the "can change" field now to indicate that a user cannot change a password by putting MAX_TIME_T in it (so long as "last set" time isn't zero). Based on this, we set the password-can-change bit in the faked secdesc. (This used to be commit 21abbeaee9b7f7cff1d34d048463c30cda44a2e3)
2007-10-10r16409: Fix Klocwork ID's.Volker Lendecke1-0/+5
1177 In reg_perfcount.c: 1200 1202 1203 1204 In regfio.c: 1243 1245 1246 1247 1251 Jerry, the reg_perfcount and regfio.c ones, can you take a look please? This is really your code, and I'm not sure I did the right thing to return an error. smbcacls.c: 1377 srv_eventlog_nt.c: 1415 1416 1417 srv_lsa_nt.c: 1420 1421 srv_netlog_nt.c: 1429 srv_samr_nt: 1458 1459 1460 Volker Volker (This used to be commit d6547d12b1c9f9454876665a5bdb010f46b9f5ff)
2007-10-10r16241: Fix Klocwork #106 and others like it.Jeremy Allison1-10/+14
Make 2 important changes. pdb_get_methods() returning NULL is a *fatal* error. Don't try and cope with it just call smb_panic. This removes a *lot* of pointless "if (!pdb)" handling code. Secondly, ensure that if samu_init() fails we *always* back out of a function. That way we are never in a situation where the pdb_XXX() functions need to start with a "if (sampass)" test - this was just bad design, not defensive programming. Jeremy. (This used to be commit a0d368197d6ae6777b7c2c3c6e970ab8ae7ca2ae)
2007-10-10r16054: Janitor for Volker ? Volker - some reason you didn'tJeremy Allison1-2/+1
fix this in 3.0 ? Jeremy. We had no way to return NT_STATUS_OK from the netlogon serverpwset, although we successfully set the machine password... One thing the samba3 join test found. Volker (This used to be commit e5b7acc9b5cb6e8cf3d03c9d392fad06e0d282d9)
2007-10-10r14450: Fix more get_md4pw() breakage caused by missing "breaks"Gerald Carter1-0/+3
in the switch statement which matched the schannel type against the account type. (This used to be commit 57c705ea63381ed9ab09145b4f57a736931fa6ca)
2007-10-10r14448: * protect against NULL cli_state* pointers in cli_rpc_pipe_open()Gerald Carter1-3/+4
* Fix inverted logic check for machine accounts in get_md4pw() (This used to be commit a36529535dcb5a262e7627b80fb62a31240dc8ad)
2007-10-10r14443: rework get_md4pw() to ease debugging. The only functional change is thatGünther Deschner1-24/+69
we now check wheter the sec_channel_type matches the trust account type. Guenther (This used to be commit c35eb449375d53ffa0815897e7723c203be1f732)
2007-10-10r13711: * Correctly handle acb_info/acct_flags as uint32 not as uint16.Günther Deschner1-2/+2
* Fix a couple of related parsing issues. * in the info3 reply in a samlogon, return the ACB-flags (instead of returning zero) Guenther (This used to be commit 5b89e8bc24f0fdc8b52d5c9e849aba723df34ea7)
2007-10-10r13590: * replace all pdb_init_sam[_talloc]() calls with samu_new()Gerald Carter1-3/+8
* replace all pdb_{init,fill}_sam_pw() calls with samu_set_unix() (This used to be commit 6f1afa4acc93a07d0ee9940822d7715acaae634f)
2007-10-10r13576: This is the beginnings of moving the SAM_ACCOUNT data structureGerald Carter1-12/+12
to make full use of the new talloc() interface. Discussed with Volker and Jeremy. * remove the internal mem_ctx and simply use the talloc() structure as the context. * replace the internal free_fn() with a talloc_destructor() function * remove the unnecessary private nested structure * rename SAM_ACCOUNT to 'struct samu' to indicate the current an upcoming changes. Groups will most likely be replaced with a 'struct samg' in the future. Note that there are now passbd API changes. And for the most part, the wrapper functions remain the same. While this code has been tested on tdb and ldap based Samba PDC's as well as Samba member servers, there are probably still some bugs. The code also needs more testing under valgrind to ensure it's not leaking memory. But it's a start...... (This used to be commit 19b7593972480540283c5bf02c02e5ecd8d2c3f0)
2007-10-10r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()Gerald Carter1-3/+3
macro which sets the freed pointer to NULL. (This used to be commit b65be8874a2efe5a4b167448960a4fcf6bd995e2)
2007-10-10r13557: (Hopefully) get the creds store/restore key right fromJeremy Allison1-18/+35
the correct part of the netlogon and schannel packets. Jeremy. (This used to be commit 4877f336b257e6f59833a6e0679959a2ec879974)