summaryrefslogtreecommitdiffstats
path: root/source/param
Commit message (Collapse)AuthorAgeFilesLines
...
* Applied new display mode FLAGS for SWAT.John Terpstra2002-09-161-170/+178
|
* small fixesJelmer Vernooij2002-08-291-0/+3
| | | | make lp_sam_backend() a list
* Reverted and tidied up the "special" files patch. Adds "hide special files"Jeremy Allison2002-08-261-0/+4
| | | | | | option (set to false by default). Made checking for hide unreadable/writable more efficient (less stat calls, less allocating printf calls). Jeremy.
* Put back in BDC support in set_server_role(). Tidied up debugs.Tim Potter2002-08-221-8/+22
|
* Fix debug level initialization for net.cVolker Lendecke2002-08-211-0/+1
| | | | Volker
* fix typoJelmer Vernooij2002-08-201-1/+1
|
* fix typo auth/auth_server.cJelmer Vernooij2002-08-191-4/+0
| | | | remove unused 'max packet' and 'packet size' options
* remove 'admin log' parameter (discussed with Jeremy)Jelmer Vernooij2002-08-191-7/+0
| | | | remove 'alternate permissions' parameter (deprecated and not used since 2.0) (discussed with tridge)
* Rework the 'guest account get's RID 501' code again...Andrew Bartlett2002-08-171-1/+1
| | | | | | | | | | This moves it right into the passdb subsystem, where we can do this in just one (or 2) places. Due to the fact that this code can be in a tight loop, I've had to make 'guest account' a 'const' paramater, where % macros cannot be used. In any case, if the 'guest account' varies, we are in for some nasty cases in the other code, so it's useful anyway. Andrew Bartlett
* Merge of netbios namecache code from APPLIANCE_HEAD.Tim Potter2002-08-161-0/+6
| | | | | | | Tridge suggested a generic caching mechanism for Samba to avoid the proliferation of little cache files hanging around limpet like in the locks directory. Someone should probably implement this at some stage.
* Allow ADS PDC to existJim McDonough2002-08-121-2/+2
|
* fix log level, set a default, and also copy the value set in smb.conf into ↵Simo Sorce2002-08-031-2/+5
| | | | | | | parm_struct.ptr this one also fixes log level not shown in swat fix swat help system
* Only allow 'security=ads' when we HAVE_ADS.Andrew Bartlett2002-07-311-0/+2
| | | | Andrew Bartlett
* added 'disable netbios = yes/no' option, default is noAndrew Tridgell2002-07-311-0/+3
| | | | | | | | | | | | | 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.
* added support for smbd listening on port 445 and 139. It now listensAndrew Tridgell2002-07-311-0/+4
| | | | | | | 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.
* OK!Simo Sorce2002-07-301-0/+4
| | | | | | | | 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.
* 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
* Add quotes so we can see 0 length strings.Andrew Bartlett2002-07-301-1/+1
|
* as suggested by Alexander Oswald <oswald@is.haw-hamburg.de>Simo Sorce2002-07-291-4/+4
| | | | | | hide only unwriteable files and not dirs with this one. may be a hide unwriteable dirs param will follow.
* found nasty bug in intl/lang_tdb.c tdb structure was not tested to not be ↵Simo Sorce2002-07-281-2/+2
| | | | | | | | | | | | null before close this one fixes swat not working with browsers that set more then one language. along the way implemented language priority in web/neg_lang.c with bubble sort also changet str_list_make to be able to use a different separator string Simo.
* This patch does two things:Andrew Bartlett2002-07-281-18/+21
| | | | | | | | | The first is to add sensible quotes to various default paramaters, and the second is to ensure that we don't remove to many " characters from paramaters. (Both from the debian patches to Samba). Andrew Bartlett
* nice day todaySimo Sorce2002-07-271-0/+4
| | | | add also hide unwriteable as per user request
* And a little more 'const'.Andrew Bartlett2002-07-201-2/+2
|
* Gone back to explicit queue number passing as snum - removed encoding ofJeremy Allison2002-07-171-4/+0
| | | | | | queueid in job number. This means we must have an internal tdb to store mapping from 16 bit RAP jobid's to 32 bit RPC jobids. Jeremy.
* Use codepage 850 as a default for the dos character set.Tim Potter2002-07-161-0/+3
| | | | Tridge, is this OK?
* *Experimental* new large-scaling printer code. Splits printing.tdb intoJeremy Allison2002-07-111-3/+6
| | | | | | | a separate tdb per printer, but only keeps (currently one) tdb open at a time (although this is easily changed by changing a #define). Needs scalability testing with large numbers of printers now.... Jeremy.
* Remove invalid comment - these are all 'unix' strings now.Andrew Bartlett2002-07-031-1/+1
|
* Address the string_sub problem by changing len = 0 to mean "no expand".Jeremy Allison2002-07-021-7/+7
| | | | | | Went through and checked all string_subs I could to ensure they're being used correctly. Jeremy.
* - completely rewrote the wins_srv.c code. It is now much simpler, andAndrew Tridgell2002-06-261-18/+4
| | | | | | | | | | | | | | gives us a good grounding to properly support multiple wins servers for different interfaces (which will be coming soon ...) - fixed our wins registration failover code to actually do failover! We were not trying to register with a secondary wins server at all when the primary was down. We now fallback correctly. - fixed the multi-homed name registration packets so that they work even in a non-connected network (ie. when one of our interfaces is not routable from the wins server. Yes, this really happens in the real world).
* Merged across trans2.c from SAMBA_2_2. UNIX extensions and passthroughJeremy Allison2002-06-241-0/+8
| | | | | now supported in HEAD. Jeremy.
* Fixed typo in debug.Tim Potter2002-06-191-1/+1
|
* Simplify this code further. Just substitute %H, and let the normal codeAndrew Bartlett2002-06-151-4/+3
| | | | | | paths handle the rest later. Andrew Bartlett
* Rework much of the service.c code:Andrew Bartlett2002-06-151-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The aim of this execise is to give the 'security>=user' code a straight paper path. Security=share will sill call authorise_login(), but otherwise we avoid that mess. This allow *much* more accurate error code reporting, beocuse we don't start pretending that we can use the (nonexistant) password etc. Also in this patch is code to create the 'homes' share at session setup time (as we have done in the past - been broken recently) and to record this on the user's vuser struct for later reference. The changes here should also allow for much better use of %H (some more changes to come here). The service.c changes move a lot of code around, but are not as drastric as they look... (Also included is a fix to srv_srvsvc_nt.c where 'total_entries' not '*total_entries' was compared). This code is needs testing, but passes my basic tests. I expect we have lost some functionality, but the stuff I had expected to loose was already broken before I started. In particular, we don't 'fall back' to guest if the user cannot access a share (for security=user). If you want this kind of stuff then you really want security=share anyway. Andrew Bartlett
* Merge of csc termination fix.Jeremy Allison2002-06-141-1/+2
| | | | Jeremy.
* moved lp_list_* functions away from param/loadparm.c, put int lib/util_str.cSimo Sorce2002-06-141-187/+7
| | | | | and renamed to str_list_* as it is a better name. Elrond should be satisfied now :)
* Patch from ctrlsoft to make the pluggable passdb subsystem use an lp_listAndrew Bartlett2002-06-141-4/+4
| | | | | | | | | | | | | rather than a string when configuring mulitple backends. Also adjust some of the users of get_global_sam_sid() to cope with the fact that it just might not exist (uninitialised, can't access secrets.tdb). More places need conversion. Add some const and remove silly casts. Andrew Bartlett
* few fixes from Elrond(elrond@samba-tng.org) and Billy ↵Simo Sorce2002-06-111-4/+10
| | | | O'Connor(billy@oconnoronline.net)
* Resurrect the 'restrict anonymous' parameter but make it an integer.Tim Potter2002-05-311-4/+4
| | | | | | | It will have the same meaning as the RestrictAnonymous registry setting. See Q143474 and Q246261 for more details.
* Patch to only set SV_TYPE_PRINTQ_SERVER in default_server_announce if aTim Potter2002-05-191-1/+9
| | | | print share is exported. Needs some more testing.
* so here it is the code to introduce seriously debugggging classes.Simo Sorce2002-05-181-3/+2
| | | | | | | | | | | | | | | | | | this is a first step only passdb stuff has beein "classized". - so what can you do? set debug level to: 1 poasdb:10 that will make all the code run at debug level 1 except the code in passdb/* files that will run at level 10 TODO: fix the man page - also smbcontrol has this nice feature so smbcontrol smbd debug 3 passdb:5 will set every smbd to have a default log level of 3 while passdb stuff will be at level 5 and so no.. minor cosmetic fix to pdbedit is there too
* A few things in this commit:Andrew Bartlett2002-05-181-10/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cleanup some of the code in net_rpc_join re const warnings and fstrings. Passdb: Make the %u and %U substituions in passdb work. This is done by declaring these paramters to be 'const' and doing the substitution manually. I'm told this is us going full circle, but I can't really see a better way. Finally these things actually seem to work properly... Make the lanman code use the pdb's recorded values for homedir etc rather than the values from lp_*() Add code to set the plaintext password in the passdb, where it can decide how to store/set it. For use with a future 'ldap password change' option, or somthing like that... Add pdb_unix, so as to remove the 'not in passdb' special cases from the local_lookup_*() code. Quite small, as it uses the new 'struct passwd -> SAM_ACCOUNT' code that is now in just one place. (also used by pdb_smbpasswd) Other: Fix up the adding of [homes] at session setup time to actually pass the right string, that is the unix homedir, not the UNC path. Fix up [homes] so that for winbind users is picks the correct name. (bad interactions with the default domain code previously) Change the rpc_server/srv_lsa_nt.c code to match NT when for the SATUS_NONE_MAPPED reply: This was only being triggered on no queries, now it is on the 'no mappings' (ie all mappings failed). Checked against Win2k. Policy Question: Should SID -> unix_user.234/unix_group.364 be considered a mapping or not? Currently it isn't. Andrew Bartlett
* Make --with-ldapsam 'go away'. This is now a standard, stable, featureAndrew Bartlett2002-05-171-14/+0
| | | | | and there is no real reason for it to depend on more than the abilty to compile the code.
* This removes --with-ssl from Samba.Andrew Bartlett2002-05-171-91/+0
| | | | | | | | | | | | | | | | | This option was badly maintained, useless and confused our users and distirbutors. (its SSL, therfore it must be good...) No windows client uses this protocol without help from an SSL tunnel. I can't see any reason why setting up a unix-side SSL wrapper would be any more difficult than the > 10 config options this mess added to samba in any case. On the Samba client end, I think the LIBSMB_PROG hack should be sufficient to start stunnel on the unix side. We might extend this to take %i and %p (IP and port) if there is demand. Andrew Bartlett
* pidfile merge from SAMBA_2_2 (including --with-fhs) and a few other minor ↵Gerald Carter2002-05-091-5/+9
| | | | things; compiles and shouldnt break, but needs testing
* Merge in Jerry's called name fix.Jeremy Allison2002-05-081-1/+21
| | | | Jeremy.
* libsmb/cli_netlogon.c: Fixed confusing debug messages.Jeremy Allison2002-04-171-14/+13
| | | | | | param/loadparm.c: Added missing debugs that would have helped me find a misconfiguration I lost a day on.... Jeremy.
* Patch for arbitary smb.conf paramaters (to make the life of plugin maintainersAndrew Bartlett2002-04-131-4/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sane) from ab. Attached is his e-mail to the samba-technical list, as it describes it rather well: Andrew Bartlett Subject: [PATCH] Parametrical options support for Samba 3.0 Date: Fri, 12 Apr 2002 19:13:13 +0300 From: Alexander Bokovoy <a.bokovoy@sam-solutions.net> To: samba-technical@samba.org CC: tridge@samba.org Greetings! Attached patch makes possible arbitrary options to be specified in smb.conf and later queried from VFS modules (and other places) without problems. Below such options are called 'parametrical options'. Patch introduces new notation to smb.conf option's language, as discussed today with Tridgell on @samba-technical: TYPE: OPTION = VALUE Colon sign is important here, it is what distinguishes parametrical options from ones hardcoded in param/loadparm.c. TYPE is 'option domain', OPTION is option name itself. In order to access values of parametrical options, lp_parm_string() function was implemented: char *lp_parm_string(const char *servicename, const char *type, const char *option); This function accepts service name, type and option name, and returns value of option or NULL if this option is underfined. Service name can be NULL, resulting in search in 'global' section only. If option does not exist in specified service, 'global' section is scanned. This allows propagation of globally specified options to all services and later overloading of the option in some services. Caution: 'TYPE: OPTION' combination is case sensitive. So far, testparm is able to handle parametrical options, while SWAT can't. Thus, everyone familiar with SWAT internals is welcomed to add parametrical options support.
* Better handling of uid/gid -> RID and RID -> uid/gid code.Andrew Bartlett2002-04-131-0/+5
| | | | | | | | | | | | | | | | | | | All uids and gids must create valid RIDs, becouse other code expects this, and can't handle the failure case. (ACL code in particular) Allow admins to adjust the base of the RID algorithm, so avoid clashes with users brought in from NT (for example). Put all the algorithm code back in one place, so that this change is global. Better coping with NULL sid pointers - but it still breaks a lot of stuff. BONUS: manpage entry for new paramater :-) counter based rids for normal users in tdbsam is disabled for the timebeing, idra and I will work out some things here soon I hope. Andrew Bartlett
* set the default hashing scheme in head to "hash2"Andrew Tridgell2002-04-121-0/+3
| | | | it seems to be a much better scheme
* This split the mangling code up to allow for the possibility of multipleAndrew Tridgell2002-04-111-0/+3
| | | | | | mangling implementation, selectable using "mangling method = " in smb.conf It also tidies the interface a little, although it is still nasty.