summaryrefslogtreecommitdiffstats
path: root/source
Commit message (Collapse)AuthorAgeFilesLines
...
* De-coupled the mapping of a Windows to UNIX username from the Get_PwnamJeremy Allison1998-06-106-31/+125
| | | | | | | | | | | | username case conversion wrapper. It is now (very) explicit where we are mapping between an incoming Windows username, and when we are doing a UNIX password entry lookup, which may change the case of the given username. This makes things *much* clearer (IMHO:-) and will ease the adding of the 'groupname map' parameter, and the addition of the special 'jeremy' mode for Samba where unix users will not be needed. (We must think of a better name for it :-). Jeremy.
* I was wrong about the length and max_length values in make_unistr2.Jeremy Allison1998-06-091-3/+1
| | | | Jeremy.
* loadparm.c: Removed 'domain other sids' parameter.Jeremy Allison1998-06-097-34/+33
| | | | | | | | | | | lib/rpc/include/rpc_lsa.h: Changed #defines for RPC calls - moved some, made LSA_LOOKUPNAMES correct. lib/rpc/include/rpc_misc.h: Changed DOMAIN_ALIAS_xxx to BUILTIN_ALIAS_xxx. Changed bitmasks for uid to rid to be 1 bit. lib/rpc/parse/parse_misc.c: Changed make_unistr2 to put length as given, max length as one more. lib/rpc/server/srv_netlog.c: Removed 'domain other sids' parameter. lib/rpc/server/srv_samr.c: Changed DOMAIN_ALIAS_xxx to BUILTIN_ALIAS_xxx. lib/rpc/server/srv_util.c: Changed DOMAIN_ALIAS_xxx to BUILTIN_ALIAS_xxx. Jeremy.
* Fixed compile problem after make proto.Jeremy Allison1998-06-092-17/+19
| | | | | | | Chris's reformating of the (rather long named function) find_name_for_remote_broadcast_subnet (moving the function name onto a line on it's own) caused the proto awk script to miss it. Jeremy.
* This is a first step toward moving long namelists into a database. IChristopher R. Hertel1998-06-0912-241/+314
| | | | | | | | | | | split the name_record structure into pieces. The goal is that the key (the name) be separate from the data associated with the key. Databases such as gdbm store information in [key,content] pairs. There is no functional change in with this update. It's just a step in the direction that Jeremy and I have been discussing. Chris -)-----
* Moved the ubiqx stuff above nameserv.h so that ubiqx typedefs could beChristopher R. Hertel1998-06-081-12/+6
| | | | seen by the nameserve.h header.
* proto.hChristopher R. Hertel1998-06-082-0/+16
| | | | | | | | | | | | | | | *Not* the usual. I did make proto to add the #ifndef..#endif block. Just to be safe, I did a cvs diff and found no prototype changes. ubiqx/sys_includes.h More fudging. I want to use binary tree typdefs in nameserv.h, but nameserv.h is included in includes.h which is included by all of the ubiqx modules. The result is that the types are referenced before they are declared. My solution is to prevent nameserv.h and proto.h from being included in the ubiqx modules (where they are not needed anyway). Chris -)-----
* Added code to add the Samba names onto the remote_broadcast subnet,Jeremy Allison1998-06-082-5/+11
| | | | | as NT 4.x does directed broadcast node status requests for the *<0x0> name. Jeremy.
* Added code to generateChristopher R. Hertel1998-06-081-0/+6
| | | | | | | | | | | | | | #ifndef _PROTO_H_ #define _PROTO_H_ : : #endif /* _PROTO_H_ */ in the appropriate places. This required that I add an END rule. I generated a new proto.h and diff'ed it against the previous. There were no differences except for the added lines. Chris -)-----
* Cosmetic. Added a cast to (void) to a call to add_name_to_subnet() sinceChristopher R. Hertel1998-06-081-5/+5
| | | | | | | | | the return value was being ignored anyway. SGI's lint said: function returns value which is sometimes ignored add_name_to_subnet Chris -)-----
* loadparm.c: Did it ! Changed defaults for 'case preserve' and 'short case ↵Jeremy Allison1998-06-053-10/+16
| | | | | | | | | | preserve'. Also removed 'domain allow/deny' parameters. shmem_sysv.c: Added strerror code so I can see why sysV calls are failing. lib/rpc/server/srv_netlog.c: Removed code that used 'domain allow/deny' parameters - replaced with a comment so I will remember to fix this later. Jeremy.
* client.c: Allowed client to proceed even if it gets error 234 (more dataJeremy Allison1998-06-042-107/+113
| | | | | | | available) when scanning server/workgroup/share lists. ipc.c: Removed redundent definition of ERROR_MORE_DATA (234) we already have ERRmoredata in smb.h Jeremy.
* had what would be a compile error if it wasn't #if 0'd out in passdb_opsLuke Leighton1998-06-041-1/+1
|
* added "domain admin group" and "domain guest group" parameters. this isLuke Leighton1998-06-044-5/+22
| | | | | | because "domain admin users" and "domain guest users" was overloaded. incorrectly.
* Fixed file descriptor leak in open_socket_out - this couldJeremy Allison1998-06-041-0/+1
| | | | | cause nmbd to run out of fd's. Test case found by Eloy Paris. Jeremy.
* includes.h: Fixes for NetBSD and BSDI.Jeremy Allison1998-06-042-2/+5
| | | | | smbpass.c: Fixed irix warnings. Jeremy.
* It occurred to me that the samba includes.h file should be included in theChristopher R. Hertel1998-06-0311-20/+120
| | | | | | | | | | header files used by the ubiqx modules, instead of being hidden in the .c files. This would ensure that anything in includes.h would be "seen" by the ubiqx headers. I also had to put an #ifdef around the includes for ubi_SplayTree.h and ubi_Cache.h in includes.h to prevent the header of the descendant type from being included before its parent type. Chris -)-----
* ipc.c: Fix bug where we don't return the correct error code when clientJeremy Allison1998-06-033-91/+272
| | | | | | | | | | gives a too-small buffer for share info. Fix from Gil Kloepfer <gil@arlut.utexas.edu> smb.h: server.c: Fix for a nastly little security problem with multi-user Windows NT servers and Samba where the contents of the open-file cache can end up being served out to users who shouldn't have access. This is some *seriously* ugly code. Jeremy.
* Changed the mechanism for including the Samba includes.h in the ubiqx codeChristopher R. Hertel1998-06-0212-109/+87
| | | | | | | | | | | | | | | | to something less hurried, simpler, and (I believe) more acceptable to all. The ubi_*.c files all now #include sys_include.h which, for Samba, contains only comments and the line #include "../includes.h" That will make sure that the Samba header is there, allows me to distribute a different default header with the main ubiqx set, and allows others to write their own sys_includes.h for their own purposes. Thanks to Andrew and Jeremy for hammering this out with me. Chris -)-----
* clientutil.c: Don't core dump if no controlling terminal available for password.Jeremy Allison1998-06-015-8/+43
| | | | | | | passdb.c: lib/rpc/include/rpc_misc.h: First cut at automatic uid/gid to rid mapping. We can change this at a later date to make more bits available if neccessary. Jeremy.
* This change ensures that only the processes/locked files thatPaul Blackman1998-05-301-20/+22
| | | | | belong to -uUsername are printed when running 'smbstatus -uUsername' PaulB
* Added Paul Eggerts LocalTime patch.Jeremy Allison1998-05-291-8/+28
| | | | Jeremy.
* Adding Greek and Icelandic codepages from :Jeremy Allison1998-05-292-0/+193
| | | | | | | | | Manousaridis Haris <genesis@the.forthnet.gr> and Magnús Gíslason <magnus@hi.is> respectively. Jeremy.
* latest messing about: probably doesn't compile; doesn't matter.Luke Leighton1998-05-281-3/+54
|
* Ooops - fixed Win95 crash bugs with earlier code.Jeremy Allison1998-05-272-4/+7
| | | | Jeremy
* Newly re-written do_match and mask_match functions, with theJeremy Allison1998-05-272-103/+236
| | | | | | | | | | | | | | | | | | | | | | | help of Ums Harald <Harald.Ums@pro-sieben.de>, who has been testing our 8.3 wildcards with a test suite. With his new code for 8.3 matching, this is the test done (I'm quoting from his email) "I tested it by generating a directory with about 7600 Files and run automatc tests with about 4000 patterns. The result from Win95 -> WinNT and Win95 -> Samba where identical according to diff." I have also re-written the long filename wildcard code, so that doing DIR a*z now matches files : AAA.BBB.CCCC....ZZZZ correctly, and other fixes besides. I sincerely hope I can lay this (horrid) issue to rest now :-). Jeremy.
* loadparm.c: Added machine password timeout parameter - set to 7 days be default.Jeremy Allison1998-05-278-173/+266
| | | | | | | | | password.c: Added code to tell server.c when machine password needs changing. server.c: Change machine password in idle cycles if it needs it. smbpassfile.c: Fixed up length calculations for machine password file. smbpasswd.c: Moved domain joining code/machine password changing code. lib/rpc/client/cli_netlogon.c: And this is where it now lives. Jeremy.
* smb.h: More NT SMB stuff (just defines).Jeremy Allison1998-05-265-9/+28
| | | | | | | | | | | smbpass.c: Do *NOT* make this function static. It breaks the compile on gcc util.c: Getting closer to MS wildcard semantics. A trailing '*' matches any trailing dot-separated components. trans2.c: Removed hacks that change multiple '?' -> '*' as this breaks things now. trans2.h: Removed NT_FILE_ATTRIBUTE_NORMAL - now FILE_ATTRIBUTE_NORMAL is defined in smb.h. Jeremy.
* added set logon, logoff, kickoff etc time functions.Luke Leighton1998-05-253-8/+47
|
* i wondered why nisppass.c came up with a linker error "pdb_set_last_set_time"Luke Leighton1998-05-251-5/+0
| | | | | | | | | | not found. this gave me a clue... #if 0 /* commented out until someone uses them jra */ ... #endif
* more warnings, from Tim WindersLuke Leighton1998-05-242-2/+2
|
* - created pdb_sethexpwd(), to be called from all pwd apis that need toLuke Leighton1998-05-248-53/+89
| | | | | | store passwords in ascii format - dealt with lots of signed/unsigned char thingies spotted by Tim Winders.
* Added more NT definitions, getting ready for nttrans code.Jeremy Allison1998-05-231-0/+57
| | | | Jeremy.
* add_nisp21pwd_entry() finished but not tested. module now compiles.Luke Leighton1998-05-221-107/+77
|
* doesn't compile: don't care. checking this in so people can see what'sLuke Leighton1998-05-221-19/+107
| | | | going on.
* I've put the ubiqx headers back into includes.h, and removed them fromChristopher R. Hertel1998-05-223-3/+9
| | | | | | | | | dir.c & mangle.c. This was possible after I checked the tree code to make sure that the tree code did not reference functions by macro name. Also, note that the AVL module has been removed to prevent conflict with the SplayTree macro defines. Chris -)-----
* These two are not being used, and they would cause conflict under Andrew'sChristopher R. Hertel1998-05-222-825/+0
| | | | | | | | include scheme. Removing them works around the problem. If someone does need them sometime (can't imagine why, since the splay tree is typically faster), let me know and we can work something else out. Chris -)-----
* Removed all ubiqx includes from includes.h. So far, this was only a problemChristopher R. Hertel1998-05-222-1/+1
| | | | | | | | | | | | | | | | | | | | for dir.h, which I've fixed. Andrew did not add includes.h to the ubiqx headers, which is good because it would cause internal conflicts within the ubiqx tree modules. It's also bad because the definitions and includes that are part of includes.h are now in the ubiqx C files, but not in the header files. So, if includes.h were to redefine int, for example, the new definition would be in the ubiqx C files, but not in the headers. So, until Andrew and I can work something out that we both agree upon, there are three basic rules: 1) Don't include includes.h in the ubiqx headers. Problems may arise. 2) The ubiqx headers must follow includes.h in any Samba module that uses them. This can and should all be worked out. We just have to talk about it. Chris -)-----
* Added a disclaimer regarding the changes Andrew wants.Christopher R. Hertel1998-05-221-2/+5
|
* Put a do_global_tests() function that will be expanded toJeremy Allison1998-05-221-0/+18
| | | | | | test all the heuristics we know about for validating smb.conf file. Jeremy.
* added:Andrew Tridgell1998-05-221-0/+4
| | | | | | | | | #ifdef HAVE_INCLUDES_H #include "../includes.h" #endif we want _all_ code in Samba to include this file to ensure that we can override definitions, typedefs and includes in one place.
* Fixed 'revalidate' parameter so it's only considered in security=shareJeremy Allison1998-05-211-29/+29
| | | | | mode. Jeremy.
* printing.c: Fixed overflow by one problem in LPRng.Jeremy Allison1998-05-212-17/+19
| | | | | | | | reply.c: Fixed password length modifiers to always be done is none-encrypted mode used. This fixes Samba for people who are using non-encrypted passwords with security=server. Jeremy.
* Along the lines that Andrew suggested, I added a header called ubi_null.h.Christopher R. Hertel1998-05-2113-44/+184
| | | | | | | | | | | This header tries four different locations for a definition of NULL. If NULL still hasn't been found, it defaults to ((void *)0). All of the includes can be, essentially, overridden by defining NULL on the command line, as in -DNULL=((void *)0). I have faith that this will avoid the problem of NULL being in different places on different systems. If there is a system out there that doesn't define NULL in any of the headers I've included, then let me know *where* it's defined and I'll add another header. Chris -)-----
* fixed signed / unsigned warnings spotted by tim winders. also fixedLuke Leighton1998-05-213-5/+5
| | | | unnecessary "address of" warnings.
* jean-francois calling the right function for the "net t.o.d" dce/rpc supportLuke Leighton1998-05-211-1/+1
| | | | does gmtime() not LocalTime() now.
* fix slprintf for sunos4 in head branchAndrew Tridgell1998-05-201-1/+2
|
* dce/rpc net time command from jean-francois. does not support timezonesLuke Leighton1998-05-204-1/+185
|
* Fixed incorrect last arg to safe_strcpy in new wildcard code.Jeremy Allison1998-05-201-1/+1
| | | | Jeremy.
* Minor tweak for wcard compatibility paranoia.Jeremy Allison1998-05-201-1/+1
| | | | Jeremy.