summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Winbind updates!Andrew Bartlett2002-07-319-51/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This updates the 'winbind' authentication module and winbind's 'PAM' (actually netlogon) code to allow smbd to cache connections to the DC. This is particulary relevent when we need mutex locks already - there is no parallelism to be gained anyway. The winbind code authenticates the user, and if successful, passes back the 'info3' struct describing the user. smbd then interprets that in exactly the same way as an 'ntdomain' logon. Also, add parinoia to winbind about null termination. Andrew Bartlett
* | Rework parinioa to ensure we never get passwords longer than MAX_PASS_LEN, norAndrew Bartlett2002-07-311-18/+11
| | | | | | | | | | | | | | | | longer than the buffer they claim to be in. Many thanks to tridge for explaining the macros. Andrew Bartlett
* | fixed the length checking for plaintext passwords (thanks to andrewbAndrew Tridgell2002-07-311-2/+11
| | | | | | | | for spotting this)
* | Don't accidenity mess with the wrong domain's sids.Andrew Bartlett2002-07-311-2/+2
| |
* | fix debug, at idra's suggestion.Andrew Bartlett2002-07-311-1/+1
| | | | | | | | Andrew Bartlett
* | Only allow 'security=ads' when we HAVE_ADS.Andrew Bartlett2002-07-311-0/+2
| | | | | | | | Andrew Bartlett
* | support netbiosless search for the DC using ADS in the winbindd AUTHAndrew Tridgell2002-07-311-58/+110
| | | | | | | | code.
* | fixed multi-line strings for portabilityAndrew Tridgell2002-07-311-2/+2
| |
* | make sure we zero the unusued elements in a SID when parsingAndrew Tridgell2002-07-311-0/+3
| |
* | added 'disable netbios = yes/no' option, default is noAndrew Tridgell2002-07-312-2/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | When this option is disabled we should not do *any* netbios operations. You should also not start nmbd at all. I have put initial checks in at the major points we do netbios operations in smbd but there are bound to be more needed. Right now I've disabled all netbios name queries, all WINS lookups and node status queries in smbd and winbindd. I've been testing this option and the most noticable thing is how much more responsive things are! wthout those damn netbios timeouts things certainly are much slicker.
* | fixed a net crash bug if we can't find a DC in a 'net rpc' commandAndrew Tridgell2002-07-311-0/+4
| |
* | added support for smbd listening on port 445 and 139. It now listensAndrew Tridgell2002-07-314-47/+88
| | | | | | | | | | | | | | on both by default, and you can specify a list of ports to listen on either with "smb ports = " in smb.conf or using the -p option to smbd. this is needed for proper netbiosless operation.
* | the ads_connect() here doesn't need to actually succeed, as its onlyAndrew Tridgell2002-07-311-3/+1
| | | | | | | | needed to find the DC IP. Just don't check its return value!
* | make sure that 'net ads info' gives info on the server we specify, notAndrew Tridgell2002-07-311-0/+4
| | | | | | | | our smb.conf setup.
* | Remove VFS module build so RPMs can build for now.John Terpstra2002-07-311-13/+13
| |
* | Fix the build for now..Jim McDonough2002-07-301-1/+1
| | | | | | | | Tridge, please look at this. Did you mean to take out the last parm?
* | Add LSA RPC 0x2E, lsa_query_info2. Only level implemented is 0x0c, whichJim McDonough2002-07-306-5/+313
| | | | | | | | | | is netbios and dns domain info. Also add code to set/fetch the domain GUID from secrets.tdb (although set is not yet called by anyone).
* | net ads info now reports the IP of the LDAP server as well as its name - ↵Andrew Tridgell2002-07-304-4/+14
| | | | | | | | very useful in scripts
* | this fixes plaintext passwords with win2000Andrew Tridgell2002-07-303-8/+10
| | | | | | | | | | | | | | | | | | | | there were 2 bugs: 1) we were sending a null challenge when we should have sent an empty challenge 2) the password can be in unicode if unicode is negotiated. This means our client code was wrong too :(
* | always include the (void) for void fns ...Andrew Tridgell2002-07-301-1/+1
| |
* | a couple more minor tweaks. This now allows us to operate in ADS modeAndrew Tridgell2002-07-302-4/+9
| | | | | | | | | | without any 'realm =' or 'ads server =' options at all, as long as DNS is working right.
* | 2nd try at a fix for netbiosless connections to a ADS DC. This alsoAndrew Tridgell2002-07-301-31/+90
| | | | | | | | | | make the code a fair bit cleaner as it splits up the ADS and RPC cases, which really are very different.
* | removed a gratuitous standard_sub_basic() on the 'password server'Andrew Tridgell2002-07-301-2/+0
| | | | | | | | field. This has got to be pointless.
* | - if we are in ADS mode then avoid an expensive netbios lookup to findAndrew Tridgell2002-07-301-7/+16
| | | | | | | | | | | | | | | | the servers netbios name when we don't need it. This also fixes ADS mode when the DC has netbios disabled. - if the password server is specified as an IP then actually use that IP, don't do a lookup for the servers name :)
* | OK!Simo Sorce2002-07-3013-560/+622
| | | | | | | | | | | | | | | | Finally the cascaded VFS patch is in. Testing is very welcome, specially with layered multiple vfs modules. A big thank to Alexander Bokovoy for his work and patience :) Simo.
* | Update a pile of Samba's SID lookup code to ensure:Andrew Bartlett2002-07-302-75/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - That we never call winbind recursivly - That we never use an 'algorithmic' RID when we have a fixed uid or gid mapping in either the passdb or the group mapping db. Also, remove restrictions that say 'this domain only'. If we have a mapping configured, allow it to be returned. If we later decide certian mappings are invalid, then we sould put that in the code that actually does the map. Allow 'sid->name' transtations on the fixed 'well known' groups for NT, even if they are not represented by Unix groups yet. Andrew Bartlett
* | Make some of the charconv code a bit easier to read and work with - when weAndrew Bartlett2002-07-301-8/+8
| | | | | | | | | | | | | | are dealing with utf8 we may as well specify char** for the pointer, save otherwise casting in the caller. Andrew Bartlett
* | Some crash fixes for netshareenum returning zero shares.Tim Potter2002-07-302-1/+4
| |
* | These pointers should be for the service we just cloned, not the new serviceAndrew Bartlett2002-07-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | as it might actually not be a clone, but a 'found' service. Previously this meant that a second session setup on the same TCP/IP connection for a user would write '' as the home directory. Instead, I want it to update the share to be there current home directory (so that this can be updated without the need to reboot the client for example). Andrew Bartlett
* | These are not critical errors, they should not be a level 0.Andrew Bartlett2002-07-301-3/+3
| | | | | | | | Andrew Bartlett
* | Add quotes so we can see 0 length strings.Andrew Bartlett2002-07-301-1/+1
| |
* | Reran configure.Tim Potter2002-07-301-691/+694
| |
* | Do AC_MSG_RESULT(yes) when using included popt.Tim Potter2002-07-301-1/+1
| |
* | Fixed for memory leak in connection caching code when a dc isTim Potter2002-07-301-1/+13
| | | | | | | | permanently down. Found by Dan Coppock.
* | Our include popt is starting to get a bit old - fixed some compileTim Potter2002-07-292-4/+4
| | | | | | | | | | | | problems here. Also fixed some non-constant initialisers in samsync.
* | add another registry rpc (opnum 0x14). Have no idea what it's real nameGerald Carter2002-07-294-5/+130
| | | | | | | | | | | | | | is. I'm calling it REG_SAVE_KEY, because 2k preps a regedt32.exe Registry->Save Key with this call. Done in the process of tracking down a PrinterDriverData issue.
* | couple of minor formatting fixes to help me see better.Gerald Carter2002-07-292-6/+7
| |
* | passing -1 for the src length in rpcstr_pull results in onlyGerald Carter2002-07-291-1/+1
| | | | | | | | | | converting the first character of the unicode string., See convert_string() for why. uniarray_2_dosarray() passes 0 for the src length now which works.
* | hardcode printprocessor name since it is everywhere elseGerald Carter2002-07-291-1/+1
| |
* | simple perl script for retreiving cvs log messages for a fileGerald Carter2002-07-291-0/+102
| | | | | | | | | | | | | | | | | | after a given date. I use it to help update the WHATSNEW.txt for a release. ./cvslog.pl SAMBA_2_2 '>2002-06-18' configure.in The output is a little messy right now, but I plan to clean that up.
* | merge from SAMBA_2_2Gerald Carter2002-07-291-7/+13
| |
* | introduced a get_file_size() macro in trans2.c to make it easier toAndrew Tridgell2002-07-291-19/+21
| | | | | | | | experiment with file size returns
* | We don't need this silly unix username stuff. NT username is basicly unused,Andrew Bartlett2002-07-291-13/+3
| | | | | | | | | | | | and must == unix username for sane implementation in passdb. Andrew Bartlett
* | an initial fix for handling sparse files in smbdAndrew Tridgell2002-07-295-72/+138
| | | | | | | | | | | | | | | | This gets my test code working, where we previously failed with files above 20G in size. I'm still not completely happy with this. There are just too many fields in trans2.c that we don't fill in.
* | as suggested by Alexander Oswald <oswald@is.haw-hamburg.de>Simo Sorce2002-07-292-8/+8
| | | | | | | | | | | | hide only unwriteable files and not dirs with this one. may be a hide unwriteable dirs param will follow.
* | Started to get samsync to insert account information in the passdb. It'sTim Potter2002-07-291-110/+309
| | | | | | | | | | | | | | | | pretty half-arsed at the moment and doesn't work very well but Mr Bartlett was interested in it. Also started playing around with the more interesting bits of popt. The auto-generated usage information is pretty neat.
* | Added extern for popt_common_debug.Tim Potter2002-07-291-0/+4
| |
* | Add lib/popt_common.oTim Potter2002-07-291-1/+1
| |
* | Use common popt definition for -d option.Tim Potter2002-07-293-10/+3
| |
* | A place to store common popt routines.Tim Potter2002-07-291-0/+49
| |