summaryrefslogtreecommitdiffstats
path: root/source/libsmb
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | make sure resolve_name() only returns valid IP addressesAndrew Tridgell2002-01-111-4/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | this is actually a workaround for old broken nmbd daemons, especially from Samba 2.0
| * | | | | | Merge from appliance-head:Tim Potter2002-01-091-4/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - put in some level 10 debugs so we can see what internal_resolve_name() is doing - remove duplicates from returned ip list of internal_resolve_name()
| * | | | | | Converted getprinterdriver to WERROR - it always returns dos error 6Tim Potter2002-01-071-54/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (invalid handle) though. )-:
| * | | | | | Converted enumprinters and enumports cli functions to return WERRORs.Tim Potter2002-01-061-106/+129
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the offered and needed buffer size into parameters.
| * | | | | | Check for winbind separator in user name for cli_session_setup()Tim Potter2002-01-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Patch from Alexander Bokovoy <a.bokovoy@sam-solutions.net>
| * | | | | | spoolss rpc client cleanup:Tim Potter2002-01-061-56/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - converted OpenPrinterEx and ClosePrinter to WERROR instead of NT_STATUS - doc
| * | | | | | Define a rpc_client doc group.Tim Potter2002-01-061-0/+3
| | | | | | |
| * | | | | | Minor doc cleanups.Tim Potter2002-01-061-2/+2
| | | | | | |
| * | | | | | Added a get_dos_error_msg() function to mirror the get_nt_error_msg()Tim Potter2002-01-061-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One day I'll get around to refactoring the DOS error handling so it mirrors the NT error handling code.
| * | | | | | DOS error 31 is ERRgeneral, General Failure. This is the WERROR equivalentTim Potter2002-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | to NT_STATUS_UNSUCCESSFUL according to AB's funky new error map.
| * | | | | | fixed another DATA_BLOB constructorAndrew Tridgell2002-01-051-6/+1
| | | | | | |
| * | | | | | simple fix for creating blank data blobsAndrew Tridgell2002-01-051-3/+1
| | | | | | |
| * | | | | | Add a comment on how this error map was derrived.Andrew Bartlett2002-01-051-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This applies only to the NT->Dos map, I'm still trying to come up with a way to do the reverse.
| * | | | | | Add a touch of constAndrew Bartlett2002-01-051-1/+1
| | | | | | |
| * | | | | | Update the NT_STATUS -> DOS error table.Andrew Bartlett2002-01-032-407/+430
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new table is rather different to the old one (see diff posted to the list for a sorted list of differences) and needs a *lot* of testing. It does however seem to line up much better with what NT is using, as exampled by the change to the OBJECT_NAME_COLLISION DOS error, it now matches win2k where it didn't before. I can't see any critical errors we now get wrong, and I know that the auth errors are correct as per my on-the-wire observations. This table was produced (and I hope to comment this better later) by using the ERRMAPEXTRACT smbtorture tool, a Win2k domain member and the 'name_to_ntstatus' auth module on the HEAD PDC. This module returned the username as the error, and the NT box was forced to give me a dos error becouse thats all I negotiated on that connection. Hence the map. Andrew Bartlett
| * | | | | | Initialise result on success in cli_spoolss_enum_printers() so we don't getTim Potter2002-01-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | stuck in an infinite loop.
| * | | | | | The werror<->nt status code map has changed and has broken all the spoolssTim Potter2002-01-031-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commands in rpcclient. Replacing ERROR_INSUFFICIENT_BUFFER with NT_STATUS_BUFFER_TOO_SMALL fixes it. Yay! I always thought the caller (i.e cmd_spoolss.c) should take care of the whole requested/needed buffer size thingy though...
| * | | | | | This brings the NT->DOS error mapping into better line with what NT does.Andrew Bartlett2002-01-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I'll post the changes to the actual map to the list for comment, but this fixes the 'unknown' case. Andrew Bartlett
| * | | | | | Add a function to convert 'NT_STATUS...' strings back into their actual errorAndrew Bartlett2002-01-011-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | code. Andrew Bartlett
| * | | | | | Add a specialised version of tpot's libsmb samlogon code for use withAndrew Bartlett2002-01-011-0/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | presupplied challange-response pairs, and only using the 'network' version. This will be used to move the auth subsystem over to a libsmb (rather than rpc_client) base. Andrew Bartlett
| * | | | | | Ensure the output cli can't have spurious values if the connection fails...Andrew Bartlett2001-12-311-1/+7
| | | | | | |
| * | | | | | Fix up the comment in the copyright headerAndrew Bartlett2001-12-311-2/+1
| | | | | | |
| * | | | | | util_sid.c - respect a const variabile (addedd strdup)Simo Sorce2001-12-301-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cli_reg.c - indentation pdb_ldap.c - some checks on init fns parameters pdb_tdb.c - some checks on init fns parameters + make sure we close the db on failure
| * | | | | | Finish idra's cleanup of the RPC remote shutdown code.Andrew Bartlett2001-12-301-3/+2
| | | | | | |
| * | | | | | - handle kerberos session setup reply with broken null terminationAndrew Tridgell2001-12-211-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - don't display Domain=[] for auth protocols that don't give us a domain
| * | | | | | try to handle end of packet for not null terminated domain stringsAndrew Tridgell2001-12-211-1/+3
| | | | | | |
| * | | | | | added trusted realm support to ADS authenticationAndrew Tridgell2001-12-191-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the method used for checking if a domain is a trusted domain is very crude, we should really call a backend fn of some sort. For now I'm using winbindd to do the dirty work.
| * | | | | | there is no unknown field in LSA_SEC_QOSJean-François Micouleau2001-12-171-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | some cleanup of the lsa_open_policy and lsa_open_policy2 parser. the length fields are not correct but that's what NT send. We don't anymore underflow or overflow the decoding. added the domain admins group to the default SD. we are now checking the desired access flag in the lsa_open_policy_X() calls and in most functions also. J.F.
| * | | | | | Added comment.Tim Potter2001-12-131-0/+2
| | | | | | |
| * | | | | | update the ldap support code. it compiles.Jean-François Micouleau2001-12-131-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ignacio you can update your howto ;-) samsync: a small patch to try chaning challenges. J.F.
| * | | | | | Always use ASCII strings when changing passwords with RAP.Jeremy Allison2001-12-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Jeremy.
| * | | | | | handle a NULL hostname in cli_connect()Andrew Tridgell2001-12-111-0/+3
| | | | | | |
| * | | | | | detect attempts to connect to names of the type NAME#xx and do aAndrew Tridgell2001-12-111-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | netbios lookup for name NAME with node type xx. This affects all our client progs. Very useful :)
| * | | | | | Doing some research into ACLs on the LSA and SAM policy objects.Tim Potter2001-12-111-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - added lsaquerysecobj to rpcclient - renamed querysecobj to samquerysecobj - removed duplicated display_sec_acl() code from cmd_spoolss.c and cmd_samr.c and moved it into display_sec.c
| * | | | | | NT_STATUS(0x80000005) maps to ERRDOS,234Jean-François Micouleau2001-12-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | J.F.
| * | | | | | added enum alias groups to rpcclientJean-François Micouleau2001-12-101-0/+78
| | | | | | |
| * | | | | | Treat RAP codes differently.Jeremy Allison2001-12-101-19/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Jeremy.
| * | | | | | RAP error strings take precedence as they are not encoded in the SMB headerJeremy Allison2001-12-101-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (ie. the call can succeed, but still be an encoded error). Jeremy.
| * | | | | | Added client and server code for the GetPrintProcessorDirectory SPOOLSSTim Potter2001-12-101-0/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rpc. This was supposed to fix a printer driver download bug but it didn't but it seemed a shame to trash all this code so I'm commiting it #ifdef'ed out in case someone needs it one day.
| * | | | | | added internal sasl/gssapi code. This means we are no longer dependent on ↵Andrew Tridgell2001-12-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | cyrus-sasl which makes the code much less fragile. Also added code to auto-determine the server name or realm
| * | | | | | Leak less memory.Andrew Bartlett2001-12-081-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now, is there any reason that the prs_init() doesn't use the talloc context that it is supplied as an argument for the actual data buffer? It would seem logical to replace the malloc with a talloc, but I'm sure there is some method to the madness (extrnal use/Reallocing of it I presume) Andrew Bartlett
| * | | | | | Added fetch_domain_sid. Not used in current code, but a nice exampleJeremy Allison2001-12-051-0/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of how to use this interface. Jeremy.
| * | | | | | OK. Smbpasswd -j is DEAD.Andrew Bartlett2001-12-052-1/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This moves the rest of the functionality into the 'net rpc join' code. Futhermore, this moves that entire area over to the libsmb codebase, rather than the crufty old rpc_client stuff. I have also fixed up the smbpasswd -a -m bug in the process. We also have a new 'net rpc changetrustpw' that can be called from a cron-job to regularly change the trust account password, for sites that run winbind but not smbd. With a little more work, we can kill rpc_client from smbd entirly! (It is mostly the domain auth stuff - which I can rework - and the spoolss stuff that sombody else will need to look over). Andrew Bartlett
| * | | | | | Ditto on the const religion.Andrew Bartlett2001-12-051-2/+2
| | | | | | |
| * | | | | | Add 'net rpc join' to match the ADS equiv.Andrew Bartlett2001-12-042-12/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This kills off the offending code in smbpasswd -j -Uab%c In the process we have changed from unsing compelatly random passwords to random, 15 char ascii strings. While this does produce a decrese in entropy, it is still vastly greater than we need, considering the application. In the meantime this allows us to actually *type* the machine account password duruign debugging. This code also adds a 'check' step to the join, confirming that the stored password does indeed do somthing of value :-) Andrew Bartlett
| * | | | | | Fix up funtion name, as this finds local, not domain master browsers.Andrew Bartlett2001-12-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (as per tridge's instructions)
| * | | | | | Added error message for ERRdiskfull.Tim Potter2001-12-041-0/+1
| | | | | | |
| * | | | | | when using non-encrypted password ignore the ntpass variable toAndrew Tridgell2001-12-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | session setup
| * | | | | | const religionAndrew Tridgell2001-12-031-1/+1
| | | | | | |
| * | | | | | This change reworkes the connection code for both rpcclient and net newAndrew Bartlett2001-12-031-1/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'net' untility. This should make it easier to port rpcclient code across to net. It also allows SPNEGO (the NTLMSSP subsystem in particular) to work, becouse it kills off the early destruction of the clear-text password. Andrew Bartlett