summaryrefslogtreecommitdiffstats
path: root/source/libsmb
Commit message (Collapse)AuthorAgeFilesLines
...
* Use "password server" for searching for BDC's also as Tim suggested.Jeremy Allison2001-11-251-6/+8
| | | | Jeremy.
* Add a new torture test to extract a NT->DOS error map from an NT member of aAndrew Bartlett2001-11-254-5/+74
| | | | | | | | | samba domain. The PDC must be running a special authenticaion module that spits out NT errors based on username. Andrew Bartlett
* added "net join" commandAndrew Tridgell2001-11-241-0/+7
| | | | this completes the first stage of the smbd ADS support
* This is another rather major change to the samba authenticaionAndrew Bartlett2001-11-242-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | subystem. The particular aim is to modularized the interface - so that we can have arbitrary password back-ends. This code adds one such back-end, a 'winbind' module to authenticate against the winbind_auth_crap functionality. While fully-functional this code is mainly useful as a demonstration, because we don't get back the info3 as we would for direct ntdomain authentication. This commit introduced the new 'auth methods' parameter, in the spirit of the 'auth order' discussed on the lists. It is renamed because not all the methods may be consulted, even if previous methods fail - they may not have a suitable challenge for example. Also, we have a 'local' authentication method, for old-style 'unix if plaintext, sam if encrypted' authentication and a 'guest' module to handle guest logins in a single place. While this current design is not ideal, I feel that it does provide a better infrastructure than the current design, and can be built upon. The following parameters have changed: - use rhosts = This has been replaced by the 'rhosts' authentication method, and can be specified like 'auth methods = guest rhosts' - hosts equiv = This needs both this parameter and an 'auth methods' entry to be effective. (auth methods = guest hostsequiv ....) - plaintext to smbpasswd = This is replaced by specifying 'sam' rather than 'local' in the auth methods. The security = parameter is unchanged, and now provides defaults for the 'auth methods' parameter. The available auth methods are: guest rhosts hostsequiv sam (passdb direct hash access) unix (PAM, crypt() etc) local (the combination of the above, based on encryption) smbserver (old security=server) ntdomain (old security=domain) winbind (use winbind to cache DC connections) Assistance in testing, or the production of new and interesting authentication modules is always appreciated. Andrew Bartlett
* added lsaenumprivsaccount and lsalookupprivvalue to rpcclientJean-François Micouleau2001-11-241-0/+174
| | | | | | and more to come ... J.F.
* Changed how the privileges are stored in the group mapping code. It's nowJean-François Micouleau2001-11-231-0/+2
| | | | | | | | | | | | | | | | | | | | an array of uint32. That's not perfect but that's better. Added more privileges too. Changed the local_lookup_rid/name functions in passdb.c to check if the group is mapped. Makes the LSA rpc calls return correct groups Corrected the return code in the LSA server code enum_sids. Only enumerate well known aliases if they are mapped to real unix groups. Won't confuse user seeing groups not available. Added a short/long view to smbgroupedit. now decoding rpc calls to add/remove privileges to sid. J.F.
* Update some of the error mapping, based on on-the-wire observations of an ↵Andrew Bartlett2001-11-231-7/+7
| | | | | | | | | NT4 server. This lets our Win9X clients give sane error messages when you get passwords wrong and the like. Andrew Bartlett
* Finally worked out why a enumerate trusted domains was returning aTim Potter2001-11-232-11/+15
| | | | | | | | | | NT_STATUS_UNABLE_TO_FREE_VM error. This error code was mis-defined as 0x8000001a instead of 0xc000001a. The former is actually a NT_STATUS_NO_MORE_ENTRIES warning which is what we see in the status code. Removed the & 0xffffff from the loop in get_nt_error_msg() as all the error constants now have the correct high bits set.
* Added constants and error message for dos error code 1326 (logon failure).Tim Potter2001-11-232-1/+13
|
* added lsa_enum_sids to rpcclientJean-François Micouleau2001-11-221-0/+69
| | | | | | | fixed lsa_enum_rpivs server code. This time it works as W2K. fixed smbgroupedit to compile and work. J.F.
* Removed unused variable.Tim Potter2001-11-221-1/+0
|
* Oops - opening wrong pipe name in cli_lsa_initialise() helper function.Tim Potter2001-11-221-1/+1
|
* add another command to rpcclient: getdispname. Show the full descriptionJean-François Micouleau2001-11-221-0/+53
| | | | | | of a privilege. J.F.
* add a command to rpcclient: enumprivsJean-François Micouleau2001-11-221-0/+82
| | | | J.F.
* Got positive and negative name caching working correctly with ↵Jeremy Allison2001-11-221-22/+24
| | | | | | | | | lookupname/lookupsid. There was a bug in cli_lsa_lookup_name/lookup_sid where NT_STATUS_NONE_MAPPED was being mapped to NT_STATUS_OK, and also the *wrong* number of entries mapped was being returned. The correct field is mapped_count, *NOT* num_entries. Jeremy.
* W2K doesn't seem to respond to *#0 names in node status. Ensure nameJeremy Allison2001-11-213-11/+58
| | | | | lookup uses password server parameter when looking for PDCs. Jeremy.
* One more patch from Tom Jansen. Hope I didn't break the tree :-)Richard Sharpe2001-11-211-0/+7
|
* Fix up the build again...Andrew Bartlett2001-11-211-1/+1
| | | | Andrew Bartlett
* Fix up libsmbclient in head.Richard Sharpe2001-11-211-1366/+1413
| | | | | Apply the patches from Tom Jansen, get rid of fprintfs and change them to DEBUGs, etc ...
* add asn1 integer handling ready for the ldap netjoin codeAndrew Tridgell2001-11-201-0/+26
|
* - make sure we use a non-zero session id so we can have multiple connsAndrew Tridgell2001-11-201-8/+4
| | | | | | | | open to w2k - fix the string handling in the device name to match NT and smbd - don't pull the domain from negprot if CAP_EXTENDED_SECURITY is set
* LMHOSTSFILE is now dynamically configured too.Martin Pool2001-11-191-1/+1
|
* Fix problems with lp_workgroup() being passed to routines that will modifyRichard Sharpe2001-11-171-24/+44
| | | | it and fix smb://<IP-addr>.
* Tidyup formatting a bit (spaces->tabs) whilst reading new code to understandJeremy Allison2001-11-151-46/+34
| | | | | connection caching. Getting ready for back-merge to 2.2.3. Jeremy.
* Doxygen demo for Tim.Martin Pool2001-11-151-9/+24
|
* Close the socket and set the file descriptor to -1 if there was a socketTim Potter2001-11-141-0/+9
| | | | error in cli_receive_smb() and cli_send_smb().
* Removed the "reestablish" code. Tridge - scream if this was needed....Jeremy Allison2001-11-142-60/+2
| | | | Jeremy.
* Minor updates. A small dose of const.Andrew Bartlett2001-11-111-1/+1
|
* Add function to add those hosts who have added msbrowse (domain master browsers)Steve French2001-11-071-0/+8
|
* Fixed looking up domain (winbind) users ahead of local users inTim Potter2001-11-051-6/+18
| | | | domain_client_validate()
* free the negTokenInit structureAndrew Tridgell2001-11-051-0/+2
|
* merge from 2.2. Why is STR_CONVERT missing when comparingGerald Carter2001-11-051-1/+1
| | | | 2.2 to HEAD?
* Got serious about const again.Jeremy Allison2001-11-044-98/+100
| | | | | | | REMOVED BZERO CALLS YET AGAIN !!! Why do these keep creeping back in.... They are *NOT* POSIX. I'm also thinking of removing strncpy as I'm sure it's not being used correctly.... Jeremy.
* Added NT_USER_TOKEN into server_info to fix extra groups problem.Jeremy Allison2001-11-034-43/+58
| | | | | Got "medieval on our ass" about const warnings (as many as I could :-). Jeremy.
* Added support for UserListGroups, ServiceEnumSteve French2001-11-031-0/+125
|
* This is a farily large patch (3300 lines) and reworks most of the AuthRewriteAndrew Bartlett2001-10-312-31/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | code. In particular this assists tpot in some of his work, becouse it provides the connection between the authenticaion and the vuid generation. Major Changes: - Fully malloc'ed structures. - Massive rework of the code so that all structures are made and destroyed using malloc and free, rather than hanging around on the stack. - SAM_ACCOUNT unix uids and gids are now pointers to the same, to allow them to be declared 'invalid' without the chance that people might get ROOT by default. - kill off some of the "DOMAIN\user" lookups. These can be readded at a more appropriate place (probably domain_client_validate.c) in the future. They don't belong in session setups. - Massive introduction of DATA_BLOB structures, particularly for passwords. - Use NTLMSSP flags to tell the backend what its getting, rather than magic lenghths. - Fix winbind back up again, but tpot is redoing this soon anyway. - Abstract much of the work in srv_netlog_nt back into auth helper functions. This is a LARGE change, and any assistance is testing it is appriciated. Domain logons are still broken (as far as I can tell) but other functionality seems intact. Needs testing with a wide variety of MS clients. Andrew Bartlett
* More const.Andrew Bartlett2001-10-311-2/+2
|
* Added some extra fields to the auth_serversupplied_info structure.Tim Potter2001-10-311-2/+23
| | | | | | | | | To obtain the full group membership of a user (i.e nested groups on a win2k native mode server) it is necessary to merge this list of groups with the groups returned by winbindd when creating an nt access token. This breaks winbindd linking while AB and I sync up our changes to the authentication subsystem.
* Some tweaking to make the samlogon function look more like NT on the wire.Tim Potter2001-10-311-7/+7
|
* Parionia to ensure people don't install libsmb based programs setuid root.Andrew Bartlett2001-10-311-0/+6
| | | | | | | libsmb has not been written to be setuid, with things like LIBSMB_PROG allowing all sort of fun and games. Andrew Bartlett
* Fix debug in domain_client_validate() when password server = *.Tim Potter2001-10-301-1/+1
|
* Allow the logon level to be passed to cli_netlogon_sam_logon() rather thanTim Potter2001-10-301-13/+41
| | | | | | | the validation level. This allows us to test interactive or network logons. Interestingly enough a win2k native mode server generates a rpc fault when presented with a network logon!
* Added samlogon command to test against win2k native mode server. I thinkTim Potter2001-10-301-0/+72
| | | | there's a bug in the marshalling of net_sam_logon.
* This patch applied, except without the structure changes to nmblib.cAndrew Bartlett2001-10-295-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Andrew Bartlett. From kai@cmail.ru Mon Oct 29 18:50:42 2001 Date: Fri, 19 Oct 2001 17:26:06 +0300 From: Andrew V. Samoilov <kai@cmail.ru> To: samba-technical@lists.samba.org Subject: [patch]: makes some arrays const to be shared between processes Hi! This patch makes some arrays const. So these arrays go to text/rodata segment and are shared between all of the processes which use shared library with these arrays. Regards, Andrew V. Samoilov. P.S. Please cc your answer to kai@cmail.ru, I don't subscribed to this list. ChangeLog: * cliconnect.c (prots): Make const. * clierror.c (rap_errmap): Likewise. * nmblib.c (nmb_header_opcode_names): Likewise. (lookup_opcode_name): Make opcode_namep const. Eliminate i. * nterr.c (nt_err_code_struct): Typedef const. * smberr.c (err_code_struct): Make const. (err_classes): Likewise.
* This commit is number 4 of 4.Andrew Bartlett2001-10-292-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In particular this commit focuses on: Actually adding the 'const' to the passdb interface, and the flow-on changes. Also kill off the 'disp_info' stuff, as its no longer used. While these changes have been mildly tested, and are pretty small, any assistance in this is appreciated. ---- These changes introduces a large dose of 'const' to the Samba tree. There are a number of good reasons to do this: - I want to allow the SAM_ACCOUNT structure to move from wasteful pstrings and fstrings to allocated strings. We can't do that if people are modifying these outputs, as they may well make assumptions about getting pstrings and fstrings - I want --with-pam_smbpass to compile with a slightly sane volume of warnings, currently its pretty bad, even in 2.2 where is compiles at all. - Tridge assures me that he no longer opposes 'const religion' based on the ability to #define const the problem away. - Changed Get_Pwnam(x,y) into two variants (so that the const parameter can work correctly): - Get_Pwnam(const x) and Get_Pwnam_Modify(x). - Reworked smbd/chgpasswd.c to work with these mods, passing around a 'struct passwd' rather than the modified username --- This finishes this line of commits off, your tree should now compile again :-) Andrew Bartlett
* more compiler warningsHerb Lewis2001-10-231-2/+2
|
* a quick fix to get rpcclient working again. This just disablesAndrew Tridgell2001-10-222-1/+8
| | | | | | | NTLMSSP in cli_establish_connection() What we really need to do is kill off the pwd_cache code. It is horrible, and assumes the challenge comes in the negprot reply.
* Fix for @ in pathname from Kian Win.Jeremy Allison2001-10-221-1/+5
| | | | Jeremy.
* Ok, I know it's a language thing and it shouldn't matter.... but a kerberosJeremy Allison2001-10-213-21/+21
| | | | | name is a "principal", not a principle. English majors will complain :-). Jeremy.
* Fix for compilation on non-krb5 systemsAndrew Bartlett2001-10-211-1/+1
|