summaryrefslogtreecommitdiffstats
path: root/source/param
Commit message (Collapse)AuthorAgeFilesLines
...
* Got rid of iSERVICE/pSERVICE (Hungarian inspired obfuscation). Now useJeremy Allison2001-05-101-84/+80
| | | | | | ServicePtrs[i] when we're indirecting so we can see what's going on. ZERO_STRUCTP(ServicePtrs[i]) on free_service. Jeremy.
* free_service() was never setting the valid field to False. This is a bugJeremy Allison2001-05-101-0/+2
| | | | | that's been here since 2.0.x and before.... This would cause a memleak. Jeremy.
* Made "security XXX" masks apply to ACL set. By default they have no effect.Jeremy Allison2001-05-101-49/+8
| | | | | Removed "restrict acl with mask" - redundent. Jeremy.
* merge from 2.2 removing the 'domain XXX' parameters.Gerald Carter2001-05-071-8/+1
|
* Added some missing winbind parameters. Yes they're already documented.Tim Potter2001-05-041-0/+9
| | | | (-:
* Fixed SHM_R/SHM_W warnings by moving sys/ipc.h and sys/shm.h into includes.hJeremy Allison2001-05-031-0/+4
| | | | | | and using autoconf tests. Added "restrict acl with mask" parameter. Jeremy.
* Had to add a "pam password change" parameter (defaults to "off") and inlinedJeremy Allison2001-05-021-0/+4
| | | | | | | | | | | the pam password change code to ensure that existing and working password chat scripts don't break with 2.2.1. PAM password changing has to be explicitly requested. Allowed wildcards in pam password change matching (matches password chat script matching). Had to add const (sorry Tim :-) to ms_fnmatch() to stop warnings. Don't worry - the const changes are isolated and don't cause any other warnings :-). Jeremy.
* removed references to SMBRUNGerald Carter2001-04-261-2/+0
|
* set "vfs object" and "vfs options" to be setable by SWAT on advanced pageHerb Lewis2001-04-241-4/+4
| | | | | | change "host msdfs" to be strictly a global parameter on advanced page change "printer admin" to be on printers page not share page (caught by Ingo Kilian <ikilian@web.de> )
* Added "obey pam restrictions" parameter - default to "off".Jeremy Allison2001-04-231-0/+4
| | | | | | | Only set this to "on" if you know you have your PAM set up correctly..... NB. Doesn't apply to plaintext password authentication, which must use pam when compiled in. Jeremy.
* merge from 2.2Andrew Tridgell2001-04-181-28/+9
|
* hide unreadable patch from idraAndrew Tridgell2001-04-161-0/+4
|
* Merge of Andrew's changes in 2.2.Jeremy Allison2001-04-131-2/+0
| | | | Jeremy.
* Fixup warnings about extra ';' from SGI compiler.Jeremy Allison2001-04-091-22/+22
| | | | Jeremy.
* Added 3 params to manipulate shares. "add share command/change share command/Jeremy Allison2001-04-071-0/+9
| | | | | | delete share command". Implemented "delete" - more work to come on add and change. Jeremy.
* Fix from Ryo Kawahara <rkawa@lbe.co.jp> to make SWAT correctly write and ↵Jeremy Allison2001-03-261-15/+23
| | | | | | | smb.conf file in utf8. Jeremy.
* Two OS/2 printer fixes from Jim McDonough @ IBM.Jeremy Allison2001-03-231-0/+3
| | | | | | | First one adds a new info level into the lanman printing and an ioctl to the trans2 code. Andrew - this uses ASCII only. It looks ok to me but please check ! Second one adds a parameter "os2 driver map" that allows OS/2 driver names to be mapped. Jeremy.
* first pass of the new group mapping codeJean-François Micouleau2001-03-231-0/+15
| | | | J.F.
* added option "enhanced browsing"Andrew Tridgell2001-03-211-0/+4
| | | | | | this allows users to disable the cross-subnet browse extensions that I added to Samba a couple of years ago. This may be useful for getting rid of empty workgroups.
* Updated defaults for CUPS printing from Michael Sweet.Jeremy Allison2001-03-161-6/+17
| | | | Jeremy.
* fixed volume_name(). It used dos_to_unix() which uses a static buffer,Andrew Tridgell2001-03-161-1/+4
| | | | | and that buffer got clobbered in the trans2 QFS_VOLUME_INFO call, so the volume label always showed as "." from NT clients.
* Added Michael Sweet's CUPS patch to call directly into the CUPS backend.Jeremy Allison2001-03-161-10/+16
| | | | | | Parameterises the printing functions so other backends can be plugged directly in (this is a good thing :-). Jeremy.
* enable unicode on the wire by default in smbdAndrew Tridgell2001-03-161-0/+4
| | | | | the unicode support isn't complete, but it is good enough to be usable for a test server.
* Added ADMIN$ share as alias for IPC$ except no guest connect. AS/U wantsJeremy Allison2001-03-131-5/+7
| | | | | to do RPC calls down this treeid. Jeremy.
* merge of 'lanman auth' and 'min protocol' from 2.2Gerald Carter2001-03-091-0/+9
|
* Merge of JohnR's changes to appliance-head, JF's changes to 2.2,Jeremy Allison2001-02-121-3/+20
| | | | | updated the POSIX_ACL code to be in sync. Jeremy.
* Fix inspited by Alan Romeril. 50% speedup in domain logins with thisJeremy Allison2001-01-301-1/+1
| | | | | change to default break response time of 10ms -> 0ms. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-231-0/+4
| | | | | | | | | | | | | | | | | | | | source/rpc_server/srv_spoolss_nt.c - add an access check to _spoolss_deleteprinter() to stop random users and passers by from deleting printers. source/lib/messages.c - converted global msg_all struct to a local in message_send_all() function. source/include/smb.h - added a success error code to the spoolss return codes. source/include/proto.h source/param/loadparm.c source/printing/printing.c - Added new parameter "total print jobs" to limit the total number of print jobs across all queues. Currently individual queues are limited by "max print jobs".
* Small bugfix from Kenichi Okuyama <okuyamak@dd.iij4u.or.jp>:David O'Neill2001-01-221-1/+1
| | | | | -FN_GLOBAL_INTEGER(lp_min_wins_ttl, &Globals.max_wins_ttl) +FN_GLOBAL_INTEGER(lp_min_wins_ttl, &Globals.min_wins_ttl)
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-172-16/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source/rpc_server/srv_spoolss_nt.c - Unrolled construct_notify_jobs_info() loop to only fetch printer info_2 structure once rather than num_print_jobs times. - convert command to unix codepage. - remove lp_remove_service() call as it prevents lp_killservice() from working. - Modified some DEBUG and DEBUGADD statements. source/param/loadparm.c source/param/params.c - change printer, preload, auto services to FLAG_DOS_STRING, reverted earlier changes to szPrintername et al, add comments. source/printing/load.c - fix bug with lp_auto_services() and strtok() source/printing/nt_printing.c source/printing/printing.c - remove redundant test that used SERVICE(snum) source/printing/pcap.c - add unix_to_dos() calls, add notes wrt FIXMEs for xxx_printer_fn() functions. source/web/swat.c - added FIXME comment. source/smbd/service.c - added comment re: dos codepage
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-161-0/+2
| | | | | | source/param/loadparm.c - changed lp_add_printer() to convert szPrintername and comment from unix to DOS codepage.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-101-0/+6
| | | | | | | | source/include/proto.h source/param/loadparm.c source/passdb/passdb.c source/rpc_server/srv_samr.c - add support for "hide local users" option to HEAD.
* Fix from "B.V.Dean" <B.V.Dean@ukc.ac.uk> to add "dos filemode" parameterJeremy Allison2001-01-091-0/+4
| | | | | | to allow a chmod to be done if the user has write access to a file, just like Windows allows. Off by default (compare with "dos filetimes" parameter). Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2000-12-131-1/+1
| | | | | | | | | - trivial typo in definition of enum_printing[] (source/param/loadparm.c) - fixed printer status display bug. When no jobs existed in queue, the clients were not properly notified of printer status. This caused native tools for pausing/unpausing a print queue to not work. (source/printing/printing.c)
* file_lines_load/file_lines_pload can now optionally convert unix_to_dos()Jeremy Allison2000-12-071-2/+2
| | | | | on read. Jeremy.
* Another large patch for the passdb rewrite.Gerald Carter2000-11-211-16/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | o added BOOL own_memory flag in SAM_ACCOUNT so we could use static memory for string pointer assignment or allocate a new string o added a reference TDB passdb backend. This is only a reference and should not be used in production because - RID's are generated using the same algorithm as with smbpasswd - a TDB can only have one key (w/o getting into problems) and we need three. Therefore the pdb_sam-getpwuid() and pdb_getsampwrid() functions are interative searches :-( we need transaction support, multiple indexes, and a nice open source DBM. The Berkeley DB (from sleepycat.com seems to fit this criteria now) o added a new parameter "private dir" as many places in the code were using lp_smb_passwd_file() and chopping off the filename part. This makes more sense to me and I will docuement it in the man pages o Ran through Insure-lite and corrected memory leaks. Need for a public flogging this time Jeremy (-: -- jerry
* Tuyrn debug timestamps on by default.Jeremy Allison2000-11-151-1/+1
| | | | | Add Tim's lpq race fix. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2000-11-141-0/+16
| | | | | | | | | - merged Tim's vlp (virtual lp) test program. Enable it with -DDEVELOPER or by using ./configure.developer (source/include/smb.h source/configure.developer source/printing/lpq_parse.c source/param/loadparm.c testsuite/printing/.cvsignore testsuite/printing/Makefile.vlp testsuite/printing/vlp.c)
* Large commit which restructures the local password storage API.Gerald Carter2000-11-131-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently the only backend which works is smbpasswd (tdb, LDAP, and NIS+) are broken, but they were somewhat broken before. :) The following functions implement the storage manipulation interface /*The following definitions come from passdb/pdb_smbpasswd.c */ BOOL pdb_setsampwent (BOOL update); void pdb_endsampwent (void); SAM_ACCOUNT* pdb_getsampwent (void); SAM_ACCOUNT* pdb_getsampwnam (char *username); SAM_ACCOUNT* pdb_getsampwuid (uid_t uid); SAM_ACCOUNT* pdb_getsampwrid (uint32 rid); BOOL pdb_add_sam_account (SAM_ACCOUNT *sampass); BOOL pdb_update_sam_account (SAM_ACCOUNT *sampass, BOOL override); BOOL pdb_delete_sam_account (char* username); There is also a host of pdb_set..() and pdb_get..() functions for manipulating SAM_ACCOUNT struct members. Note that the struct passdb_ops {} has gone away. Also notice that struct smb_passwd (formally in smb.h) has been moved to passdb/pdb_smbpasswd.c and is not accessed outisde of static internal functions in this file. All local password searches should make use of the the SAM_ACCOUNT struct and the previously mentioned functions. I'll write some documentation for this later. The next step is to fix the TDB passdb backend, then work on spliting the backends out into share libraries, and finally get the LDAP backend going. What works and may not: o domain logons from Win9x works o domain logons from WinNT 4 works o user and group enumeration as implemented by Tim works o file and print access works o changing password from Win9x & NT ummm...i'll fix this tonight :) If I broke anything else, just yell and I'll fix it. I think it should be fairly quite. -- jerry
* David Lee's utmp patch (finally). Thanks David !Jeremy Allison2000-10-281-0/+13
| | | | Jeremy.
* TDB password backend support written by Simo Sorce <simo.sorce@polimi.it>Gerald Carter2000-10-261-0/+19
| | | | | | | | | | Marked as an experimental compile time option (defaults to off) for now. jerry
* Yeah - not setting getwd_cache to True as default, that'd do it for a 5xJeremy Allison2000-10-241-1/+1
| | | | | | performance hit..... :-) :-). Jeremy. PS. Yes this was my fault for everyone who wants to throw rotten fruit...
* Bug report that on some systems extended characters are being returned asChristopher R. Hertel2000-10-181-1/+2
| | | | | | | | | | | negative values from the mygetc() function. I've modified the return line so that it should return values in the 0..255 range for legitimate characters. This change should probably be copied into SAMBA_2_2 but I haven't checked that tree out yet. Chris -)-----
* Fix for growing printing.tdb by adding check on job creation.Jeremy Allison2000-10-111-0/+4
| | | | | This also updates the printing.tdb db version to 2. Jeremy.
* Integrated support for NT and OS/2 lpq parsing. Code fromJeremy Allison2000-10-071-0/+4
| | | | | | | | | Jim McDonough Infoprint Manager Development Linux Technology Center IBM Boulder Jeremy.
* Fix for printf attribute from Mattias Gronlund <Mattias.Gronlund@sa.erisoft.se>Jeremy Allison2000-10-061-0/+4
| | | | | Added "codepage directory" patch from Peter.Polkinghorne@brunel.ac.uk Jeremy.
* utf-8 and EUC3 patch from Hiroshi Miura Samba User Group Japan staff.Jeremy Allison2000-10-031-0/+1
| | | | | mkdir high bits patch from Robert Dahlem" <Robert.Dahlem@gmx.net>. jeremy.
* Restructuring of the code to remove dos_ChDir/dos_GetWd and re-vector themJeremy Allison2000-09-271-1/+1
| | | | | | | through the VFS. All file access/directory access code in smbd should now go via the vfs. Added vfs_chown/vfs_chmod calls. Still looking at vfs_get_nt_acl() vfs_set_nt_acl() call API design. Jeremy.
* Changes from John Reilly to add a parameter "show add printer wizard" thatJeremy Allison2000-09-261-0/+4
| | | | | | | | | allows Samba to turn off the display of APW (hmmm. This should probably be a share specific parameter, I'll fix that in another commit). Also a few small changes to JF's code to fix compiler warnings about missing return statements and also change '//' comments (C++) to /* .. */ comments (C). Jeremy.
* param/loadparm.c: Fix based on Damian's code to stop printer scripts getting ↵Jeremy Allison2000-09-191-87/+97
| | | | | | | | | overwritten. rpc_parse/parse_spoolss.c: Tidyup to call function for relstring arrays. Win2000 now does "Add Printer" successfully !!!!! Jeremy.