summaryrefslogtreecommitdiff
path: root/source3
AgeCommit message (Collapse)AuthorFilesLines
2003-01-15Doing a malloc(strlen(s)) then a pstrpcp(y, s) is just silly, make it a strdupAndrew Bartlett1-3/+1
instead. Andrew Bartlett (This used to be commit c781e34d274f4185ec932cc59029d3f9a65e47c4)
2003-01-15added cli_lsa_enum_account_rights() call. Note that this is inAndrew Tridgell6-0/+247
principal similar to the existing cli_lsa_enum_privsaccount() call, except that cli_lsa_enum_account_rights() doesn't require a call to open_account first. There is also the minor matter that cli_lsa_enum_account_rights() works whereas cli_lsa_enum_privsaccount() doesn't! this call can be used to find what privileges an account or group has. This is a first step towards proper privileges support in Samba. (This used to be commit 65bac11d716f873dcdbda528313c33634c26a072)
2003-01-15Fix warnings by getting the function into a shape the autoprototyper willAndrew Bartlett1-6/+4
read, and add a static. Andrew Bartlett (This used to be commit 919889de78fc3c7bc5dfebcc180385f2f3d7a564)
2003-01-15Crash fixes:Andrew Bartlett2-2/+8
- fix a crash when a second NTLMSSP session tried to free the first - fix a crash due to some NULL pointers in the Add Printer Wizard (or read printer code too it appears). As far as I can tell it's just that the GUID just might not exist. Andrew Bartlett (This used to be commit 51b1413056b0d001076ff47a755eb35baa2d9e6d)
2003-01-15One more from waitpid() audit: Correctly interpret waitstatus when aMartin Pool1-1/+5
child fails. Possibly this was causing smbmount to exit(0) when it really should have indicated a failure. (This used to be commit 1e33083fe66dfc1e168ffeb2f9d87953534a2d5d)
2003-01-15Run autoheaderMartin Pool1-6/+0
(This used to be commit 82e4bb598c9fc26eaa090687d0daa6505fa0d550)
2003-01-15Fix bug where the existence of config.cache would cause functions likeMartin Pool1-14/+3
yp_get_default_domain to be misdetected. According to the autoconf manual we need to check for libraries before looking for functions in them. (This used to be commit 468c487df42c6fc25d1862f36995b3d9a78902ff)
2003-01-15IRIX uses libns_winbind.so instead of libnss_winbind.soHerb Lewis2-8978/+18874
(This used to be commit 50adb8cc1074e9bedac365a92db96c5f01f30223)
2003-01-14[merge] removing unused variable and unused fileGerald Carter1-237/+0
(This used to be commit 099e844571975eecde7aea342c64d3f768110e03)
2003-01-14Fix some debug lines, and add a bit more info to help track down ldapAndrew Bartlett1-8/+15
connectivity problems. Andrew Bartlett (This used to be commit 68de9a59203ed9778f11b78f233dc437b9dab55d)
2003-01-14make -i flag work lik eit did in 2.2Gerald Carter1-2/+5
(This used to be commit 54b054c1edd44096c7158993a886f915d7a07493)
2003-01-14Commit my (disabled) fstring/pstring mixup detection code.Andrew Bartlett1-0/+21
We need to fix some 'overmalloc' cases before it can be enabled by default. Andrew Bartlett (This used to be commit 2c2c52a18be1bd0a5ae1f4a48b1d9e18f4887dda)
2003-01-14The last of the fstring/pstring mixups, and an extra 'static'.Andrew Bartlett4-5/+5
(This used to be commit b328b67fd8fd605636ed58ffd33cf5be3d480672)
2003-01-14A couple more pstcpy/fstrcpy mixups - doing an fstrcpy into a pstring isAndrew Bartlett1-3/+3
harmless, but breaks my automated check. (This used to be commit e5d2b1f6c3c0883054f4e0eab2cac958706a790d)
2003-01-14Added comment about a SMB_ASSERT()Tim Potter1-0/+3
(This used to be commit 056bdfbce73bbd7ddaa198d18e596b94b2224d3d)
2003-01-14Remove wrapper function _get_trust_account_password() as it doesn'tTim Potter1-15/+2
seem to do anything useful anymore other than call secrets_fetch_trust_account_password(). (This used to be commit 7b0c03cbf1376f82b0bb5f4cf86e2db3b0bc1dec)
2003-01-14Added a comment in case anyone is thinking of doing a SMB_ASSERT in winbindd.Tim Potter1-0/+2
(This used to be commit c64e2308bae31d48171685b3b67b8cace1b003b5)
2003-01-14query_alt_name takes a forced unicode string in win2000. It is notAndrew Tridgell2-2/+2
null terminated. Thanks to Metze for finding this. (This used to be commit e4ce26332b8f876e25ff9baf06d4767a473e2676)
2003-01-14clearer debug message when the user is already in the ldap dbAndrew Tridgell1-1/+2
(This used to be commit 31894ba0e5847eb934688598cd8d65bead23c58b)
2003-01-14add help text for 'net ads lookup'Andrew Tridgell1-0/+2
(This used to be commit 2a642a1169a3c09988daa9623dcb4f21b0a2ad1f)
2003-01-13Missing indirect in final free.Jeremy Allison1-2/+2
Jeremy. (This used to be commit faf443e5198e270f1a60d7a0939074efca750a94)
2003-01-13Always initialise this variable - and don't set the 'must change now' if it wasAndrew Bartlett2-1/+3
last changed at '0'. We need to actually change this password sometime... Andrew Bartlett (This used to be commit 740bf439d2d1512127c873cf0e57697161d6566b)
2003-01-13Fix typo, and the build.Andrew Bartlett1-1/+1
(This used to be commit d7452e73b511ceaebfaed66c18e7c61cbe0289d2)
2003-01-13Make sure that those cleanups actually went in.Richard Sharpe4-18865/+8983
(This used to be commit 9a38e378115a1c36d0cd7c41f4c5767c23b4eb3f)
2003-01-13Patch from metze to add what he feels is the correct semantics for a DomainAndrew Bartlett3-0/+61
Controller. As we have had a number of attempts at this over the last little while, I need to get my test rig going, and give this whole area a poke... Meanwhile, if you want to use this, just adjust your 'auth methods' line to use samstrict_dc... Andrew Bartlett (This used to be commit 18e598ec24493026008fcfe486057555b8832108)
2003-01-13Patch from metze to to make testparm show values for 'workgroup', 'netbiosAndrew Bartlett3-15/+32
name' and 'netbios scope'. Probably has a similar effect on SWAT. Also adds '-V' to testparm. Andrew Bartlett (This used to be commit 71f4d8efd36351ddb2180103c160a6d737da62b1)
2003-01-13Patch from ab, to make findsmb omit -r most of the time.Andrew Bartlett1-7/+14
(original mail follows) -- From: Alexander Bokovoy <a.bokovoy@sam-solutions.net> Greetings! I propose to make an optional argument '-r' for findsmb utility to pass '-r' option to nmblookup optionally and default to omit it. The reason is to have findsmb working more user-friendly in contemporary office environments where Windows 95/98 boxes are rare and also to allow usage of the utility under non-priviledged accounts when Windows95/98 boxes are in minority or even absent in network neighbourhood. An attached patch provides this change for HEAD together with documentation changes. -- / Alexander Bokovoy (This used to be commit d0bebea521e12fb9cef66feecd969216607ef63d)
2003-01-13Updates to our NTLMSSP code:Andrew Bartlett10-244/+514
This tries to extract our server-side code out of sessetup.c, and into a more general lib. I hope this is only a temporay resting place - I indend to refactor it again into an auth-subsystem independent lib, using callbacks. Move some of our our NTLMSSP #defines into a new file, and add two that I found in the COMsource docs - we seem to have a double-up, but I've verified from traces that the NTLMSSP_TARGET_TYPE_{DOMAIN,SERVER} is real. This code also copes with ASCII clients - not that we will ever see any here, but I hope to use this for HTTP, were we can get them. Win2k authenticates fine under forced ASCII, btw. Tested with Win2k, NTLMv2 and Samba's smbclient. Andrew Bartlett (This used to be commit b6641badcbb2fb3bfec9d00a6466318203ea33e1)
2003-01-13Accessing data after it's been free()ed really is a no-no...Andrew Bartlett3-4/+17
Andrew Bartlett (This used to be commit 6e821285a4aacfc0031957b88ddbec73d7e1dc11)
2003-01-13Fix to debian bug #171071 - we had the wrong dereference on the pointer to beAndrew Bartlett1-4/+4
Realloc()ed, causing it to fail. Big thanks to Sandor Sonfeld <sonf@linuxmail.org> for the debug, stack and valgrind traces! Andrew Bartlett (This used to be commit 7abca6d281da6388899f78e3440d7ce37bf2094e)
2003-01-13Don't force the DOS password into a 14 char space, as this would imply nullAndrew Bartlett1-1/+2
termination - the password will not be null terminated before hashing if len >= 14. related to debian bug #157432 Andrew Bartlett (This used to be commit c6535836f2e48903aa89a18c11cbb37576fb4a20)
2003-01-13Ensure we do not pass uninitialised data to the kernel. (Picked up byAndrew Bartlett2-0/+4
valgrind). Andrew Bartlett (This used to be commit f8d9880c5f5321f4dba6b42896419412284c3e7b)
2003-01-13Fix typo in comment.Martin Pool1-1/+1
(This used to be commit 26660f939f0e0650d54631bf8243b22f32b64132)
2003-01-13Merge of remove "winbindd holding pattern" from appliance. It's a bitTim Potter3-28/+10
simpler as the rescanning of trusted domains helps us out a bit. (This used to be commit 089729c02cb2088e85f0e7f8ec79afb58fe98be7)
2003-01-12Keep all the const warnings in one place, by adding a utility function toAndrew Bartlett1-44/+31
make the TDB_DATA. Andrew Bartlett (This used to be commit f087fe546fd0c943dec022c657f849803f4b807e)
2003-01-12Oops, this is the change to use an fstring for the incoming service buffer -Andrew Bartlett1-3/+3
the commit to reply.c just matches a pstrcpy for the pstring. (harmless, fixes it for the automated test). Andrew Bartlett (This used to be commit ef9c7586ac152304cacaf2c16115adc2bccefc22)
2003-01-12Make the 'service' in make_connection() use an fstrcpy(), and an fstring,Andrew Bartlett2-2/+1
becouse that is what it's input (reply_tcon_and_x) uses, and becouse we really don't want supprises for service names. Also remove a legacy #define, in favor of the lp_ equiv. Andrew Bartlett (This used to be commit 7854a439ac601d3c23703b115cd5a8d4257c7717)
2003-01-11While the usage is most bisarre, this fixes up another fstring/pstring mixup.Andrew Bartlett1-1/+2
(In this case, an fstrcpy() into a pstring, ie harmless). Andrew Bartlett (This used to be commit 7b92d26d479dbc0923484967936511cfc645c5f4)
2003-01-11Use size_t for the counter vars, to match the type they are assigned fromAndrew Bartlett1-3/+3
(signed/unsigned mixup). Andrew Bartlett (This used to be commit f42cf0783fa3aeddc4992021df9ee6f3b1aa58f3)
2003-01-11A couple more fstring/pstring issues - and move from sizeof(fstring) toAndrew Bartlett2-34/+32
sizeof(var) in slprintf statements, so as to ensure we don't get mixups there. Also remove fstrcpy() into a variable that is about to be printed into anyway. Andrew Bartlett (This used to be commit 9b761237321d475c324a3995fe6f0922550ae995)
2003-01-11Remove an unused paramter for our old LM-only password change code, and fix aAndrew Bartlett2-4/+3
(harmless) fstring/pstring mixup. Andrew Bartlett (This used to be commit 5ff5f540ccc2ee2c9859213b84598baa400f57a5)
2003-01-11Fix a number of client-side fstring/pstring mixups.Andrew Bartlett9-37/+39
Andrew Bartlett (This used to be commit fe1cc779d5ea77e87dbc0e2edf7c34a354fee6e0)
2003-01-11Patch from Nik Conwell <nik@bu.edu>. Don't reference free()ed data when tryingAndrew Bartlett1-1/+3
to figure out if we have got our ticket yet. Andrew Bartlett (This used to be commit a66ced2cf69145c0a5be5ed91ac306db50c313d1)
2003-01-11Return the 'freindly' NT error message if at all possible.Andrew Bartlett2-2/+3
Andrew Bartlett (This used to be commit 90d05176534cfd97ed3827bddfeb3a0cb7f22683)
2003-01-11No point having this for both parts of the 'if' statement.Andrew Bartlett1-4/+2
Andrew Bartlett (This used to be commit 3b2e5f68cd4e1ff07dbd0032f521b3ba6e53746a)
2003-01-11typo from mergeGerald Carter1-1/+1
(This used to be commit 1f33b4acb32c5461b9249d3786ea5fc6898e5f18)
2003-01-11fix tdb_append() prototypeGerald Carter1-1/+1
(This used to be commit df6e4559922bb55b53f587ca917110a045e222d7)
2003-01-11[merge] make sure to updatre print queue cache during timeout_processing() ↵Gerald Carter4-18/+64
to send notify events; CR 1491 (This used to be commit 142c5029c701e7a82074e301278846c02843f46f)
2003-01-11Added new message_send_pid() code that uses tdb append to reduce lockingJeremy Allison1-54/+55
contention on the messaging tdb. Jeremy. (This used to be commit 5b8cf0810a7297f239b35c93ec50d20f1eed793b)
2003-01-11Added tdb_append() call. Efficiently adds to an entry. Used by new messagingJeremy Allison3-12/+148
code. Also added torture tests for it. Jeremy. (This used to be commit b515525a060a388c6ae0a03006a882c9be2e42b6)