1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-08 04:58:40 +03:00

3976 Commits

Author SHA1 Message Date
Jeremy Allison
f9e9f98a4a lib/util_unistr.c: Removed ascii_to_unistr() as it does no codepage.
Removed unistr_to_ascii() as it was never used.
printing/nt_printing.c: Removed "DUMMY.XX" files.
rpc_server/srv_spoolss_nt.c: Use dos_PutUniCode() instead of ascii_to_unistr().
							Attempted to fix the "return value" size code based on J.F's
							comments. This needs looking at.
Jeremy.
(This used to be commit de99011bf3b2a23bd1854a047382a107aaeb9c68)
2000-06-22 01:39:17 +00:00
Andrew Tridgell
a7b5b10a0a fixed two minor bugs in new sys_select()
(This used to be commit 5afc5f503144c81ebc6139719fd88335fd30f4ad)
2000-06-21 12:14:51 +00:00
Tim Potter
159aec63ae A neater way of solving the S_ISSOCK, S_ISFIFO problem.
Moved the S_* macros from smb.h to includes.h
(This used to be commit b37539e323361239659256ef0837f63b6714ab95)
2000-06-21 06:26:21 +00:00
Jeremy Allison
68b4dc2ad1 Changed default printer driver to "" from NULL.
Jeremy.
(This used to be commit 54bf7c12b89005f0fb7d82108e8403d89931e422)
2000-06-21 02:24:59 +00:00
Jeremy Allison
69c75c8a16 Fixes for Win2k "add printer driver" INFO_LEVEL_6 was wrong, also some
memory fixes.
Jeremy.
(This used to be commit 2a9e645cbddef1cddc5c978310b7efed492758d2)
2000-06-20 23:58:56 +00:00
Jeremy Allison
a69d47640c Fixes for IRIX kernel oplocks and systems that don't have nss.h
Jeremy.
(This used to be commit 711f15ac230092bac000e63f99e8dfaa4a644847)
2000-06-20 00:32:32 +00:00
Jeremy Allison
5e06151e4d Paranoia changes to ensure that anything touched by a signal handler
and the main code is declared as VOLATILE SIG_ATOMIC_T.
Jeremy.
(This used to be commit b737c784e34b0e1af014cb828ef37d5b6d73c3e2)
2000-06-19 21:30:27 +00:00
Andrew Tridgell
c89f1ae0cf reverted lukes changes in param/
apparently they were not deliberate, they were probably a result of
Luke accidentally copying a CVS directory from one spot to another in
error
(This used to be commit 2d35d0cf1d152438c20648d863f5993e672337dc)
2000-06-16 23:57:09 +00:00
Luke Leighton
db2f46df1e more update.
(This used to be commit ac91ef30932e3e472a16c4c756f6dfddc1b18487)
2000-06-16 15:53:13 +00:00
Tim Potter
9b305b1543 Forgot pipes_struct conversion for api_samr_enum_dom_aliases()
(This used to be commit 66372765e7c3f85240d54894547a150351426d5f)
2000-06-16 08:47:52 +00:00
Tim Potter
7448a6d31e Whoops - dodgy make proto.
(This used to be commit 87cd080441a924afd57d03e86c926a60c4416967)
2000-06-16 08:47:04 +00:00
Tim Potter
8b5be6afa4 make proto
(This used to be commit b3f2946d3958ef92ad7d30a52d00bcfd50229388)
2000-06-16 08:25:08 +00:00
Tim Potter
a72c9e2080 Pass the vuid from the connection_struct to the printing back end functions.
(This used to be commit a8975d6e226e7271f60d5487243301db3c220d87)
2000-06-16 08:24:45 +00:00
Tim Potter
0630db580a Changed function prototype for pipe api functions to take a pipes_struct
instead of two prs_data pointers.
(This used to be commit 73e4466fc30fee149f51a5aa45c26beb783306c5)
2000-06-16 08:24:11 +00:00
Tim Potter
206273f5fe Added some permission constants that are set for NT printer security
descriptors.  These seem to be made up of the standard and generic access
rights rather than object specific access rights.
(This used to be commit 07099fd4464eca2b5f061ef25309f41b8ab5e00b)
2000-06-16 08:23:30 +00:00
Tim Potter
ccc32898cf Call print_access_check() function from printing back end.
(This used to be commit 979e083d3dd844b98b03108e636dfe11ae157fb0)
2000-06-16 08:21:51 +00:00
Tim Potter
a1a0f7e1e5 Added print_access_check() function for checking printer security
descriptors.  Currently returns True (plus debug output) which should not
affect the behaviour of nt or lanman printing.
(This used to be commit a9b4710e649e887e07d68c1bf826e00c9811e4ee)
2000-06-16 08:20:44 +00:00
Tim Potter
5824ae2734 Pass the vuid from the connection_struct to the printing back end functions.
(This used to be commit 6120d03200ed6d89640332aedc75172bdf77e2a0)
2000-06-16 08:18:57 +00:00
Tim Potter
e83ddf6e69 Simplified server pipe implementation by changing arguments passed down
through to the individual pipe api calls.  Instead of passing two
prs_struct pointers, we now pass the pipes_struct pointer which contains
the former information as well as other useful stuff like the vuid.

Pass the vuid from the pipes_struct down to the lower level spoolss
functions to perform security checks.

ZERO_STRUCTP the info_2 structure before filling it.  Free the device mode
field before freeing the info_2 to avoid a memory leak.  Fixed
uninitialised pointer bug in fill_job_info_2().
(This used to be commit a9547b7e3a068941cda5619f05a64e798584535a)
2000-06-16 08:18:09 +00:00
Tim Potter
bc21403497 Simplified server pipe implementation by changing arguments passed down
through to the individual pipe api calls.  Instead of passing two
prs_struct pointers, we now pass the pipes_struct pointer which contains
the former information as well as other useful stuff like the vuid.

Pass the vuid from the pipes_struct down to the lower level spoolss
functions to perform security checks.
(This used to be commit f6436aacd631abeda60b87d671993f9e426cc684)
2000-06-16 08:15:01 +00:00
Tim Potter
ea2945881d Simplified server pipe implementation by changing arguments passed down
through to the individual pipe api calls.  Instead of passing two
prs_struct pointers, we now pass the pipes_struct pointer which contains
the former information as well as other useful stuff like the vuid.

Removed dependency on extern current_user and fetch the vuid from the
pipes_struct.
(This used to be commit 1b06451fff11f54be7def4a427a1528bbb52f3d7)
2000-06-16 08:12:23 +00:00
Tim Potter
a72f277f72 Simplified server pipe implementation by changing arguments passed down
through to the individual pipe api calls.  Instead of passing two
prs_struct pointers, we now pass the pipes_struct pointer which contains
the former information as well as other useful stuff like the vuid.
(This used to be commit 96addba216bad2189120d78f5531d5caa6f37880)
2000-06-16 08:11:32 +00:00
Andrew Tridgell
fac26f073b support both read and write locks inside the tdb
(This used to be commit d0a1f96e0f699f8e3ceb0e0d826423cd643803e7)
2000-06-15 15:30:37 +00:00
Andrew Tridgell
28be43dc81 - use read locks when possible
- don't use as many locks on a store
(This used to be commit ee12b10d21022287baf4432d1df743c4b28223b2)
2000-06-15 15:29:39 +00:00
Andrew Tridgell
9857703a53 use the right MMAP flag
(This used to be commit a2f5977ac34d02cd64acd0022cb5bc065eab713f)
2000-06-15 15:28:56 +00:00
Andrew Tridgell
c5285699d9 open files with O_NONBLOCK when available. This is necessary to
prevent possible deadlocks with kernel leases and harmless when kernel
leases are not used.

basically we don't ever want smbd to block
(This used to be commit 9fd67b94a7e43c9dcbe098940b88879ae8743c00)
2000-06-15 14:15:48 +00:00
Andrew Tridgell
f94f053b76 added support for kernel level share modes. These are a (small) hack,
I suspect we will either get rid of them or do them properly at some
stage.
(This used to be commit fabe1f350e1fc58db33d22cebd38652950697ced)
2000-06-15 09:35:37 +00:00
Andrew Tridgell
b41b1daa36 add -d debuglevel option
(This used to be commit 448f21325f8ff53f3ff5e45c22e07f7164529bc9)
2000-06-15 09:31:34 +00:00
Tim Potter
2c3cd9ecba Removed some debugs.
(This used to be commit 6faa963b232b4c4d883c1b346c73b2f2b6da6370)
2000-06-15 02:26:54 +00:00
Tim Potter
a08b01de50 Added nsswitch/common.o to SMBD_OBJ1
(This used to be commit 6c743427dfa2fbd6f3ab47991165db9e705eba20)
2000-06-14 10:25:19 +00:00
Tim Potter
7b89d2b93f Changed server side lsa_lookup_sids function to look up SIDs that we are
not authoritative for using winbindd.
(This used to be commit a39cdffb141a8e4188b00dfb6eb3317f134cddda)
2000-06-14 10:02:48 +00:00
Tim Potter
e868d0b372 #include nsswitch/winbind_nss.h
(This used to be commit ce40ba9fba62d4debc43ab53b8564fc24d1f9e3b)
2000-06-14 10:00:31 +00:00
Tim Potter
9ee57562d2 Merge from TNG.
(This used to be commit e5cb97dda89fe23612b75861232591e4831733e0)
2000-06-14 09:58:12 +00:00
Tim Potter
3bf8d26f7c Merged parse_domain_user() from TNG.
(This used to be commit f64ac9d9068901862290f7b25874156d6f0d4d73)
2000-06-14 09:57:51 +00:00
Andrew Tridgell
cc5502a4d0 allow the notify implementation to choose the select timeout change
(This used to be commit b1441d9622609af5ef598c5e1e1f5af438dc0731)
2000-06-14 07:11:27 +00:00
Andrew Tridgell
1896c721fb fixed autoconf test for kernel change notify support
(This used to be commit 92d0382c9e1d6d31e6047ca3d78523a3204d36f8)
2000-06-14 07:10:15 +00:00
Tim Potter
31e83abd3d ZERO_STRUCT() of info3 structure before using it.
(This used to be commit efe7f818c927a925f2dee1ef4f6040c137e0c84e)
2000-06-14 01:48:08 +00:00
Christopher R. Hertel
30fdd204f4 If I use nmblookup to search for node ZOOB#1B and there is no such name
registered within the search space, nmblookup would report

  name_query failed to find name ZOOB

I've changed it to report any non-zero type, so the above message becomes

  name_query failed to find name ZOOB#1B

If the query is for ZOOB or even ZOOB#00 then the old style error message
is given.

Chris -)-----
(This used to be commit 5ecf0c61718afbc7106e853d327428bd72f77690)
2000-06-13 20:41:15 +00:00
Christopher R. Hertel
898c5ddf07 Removed a patch that Andrew had added because 'insure' was incorrectly
reporting a memory leak in the cache module.  I've modified the cache
code to prevent insure getting confused, so the patch can now be removed.
(This used to be commit 50599b0fa2b78109e3bd2cf50007dc69c4059955)
2000-06-13 19:29:32 +00:00
Andrew Tridgell
f1698562f4 proto update
(This used to be commit 7d0f9258589c2856dbc54a10ee35c26201d16f41)
2000-06-13 15:47:55 +00:00
Andrew Tridgell
cf868f3296 argv parsing fixes
(This used to be commit 502751cc62df7395683dc45d15887535baa5656b)
2000-06-13 15:47:44 +00:00
Andrew Tridgell
e281246010 allow for lots of connections per server
(This used to be commit 4bbc218922d2b1f40d50a611a389c9956851050f)
2000-06-13 15:47:23 +00:00
Andrew Tridgell
b50ca095af allow posix locking database to be opened read-only (for smbstatus)
(This used to be commit b9d78738bb30da3d989dfacc95cfde529f2afca5)
2000-06-13 15:46:46 +00:00
Andrew Tridgell
33179a95d8 add some brackets
(This used to be commit bf67721ef5cc6d5ad1762fca320ef612025b4593)
2000-06-13 15:46:15 +00:00
Andrew Tridgell
ec33db96d5 added -L switch to tell smbtorture to use oplocks
(This used to be commit 73033d0803317c7de017cac7f7669f4afb08e7c0)
2000-06-13 09:33:43 +00:00
Andrew Tridgell
bf575bf283 use DN_ATTRIB kernel change notify attribute
(This used to be commit 9f542484d11b7b908d3170b702b3bad82ba71525)
2000-06-13 09:31:43 +00:00
Andrew Tridgell
b821b0c7dd fixed the change notify bit definitions
(This used to be commit 17d3c3a14885a42889d69459e7b3af7040a45499)
2000-06-13 09:31:15 +00:00
Andrew Tridgell
b7930178c3 always use the DN_CREATE mask (NT expects file creation always to
cause a notify)
(This used to be commit 20a06b7fb7c855e874b79b86251d597e7797b3c0)
2000-06-13 06:33:15 +00:00
Andrew Tridgell
5dc618460d forgot to checkin select.c
(This used to be commit 719bc2f130393a55058f5c45ca6fbd30a78de2dc)
2000-06-13 03:29:36 +00:00
Tim Potter
60785b56e8 Created manpage for wbinfo program.
Misc documentation updates for winbindd manpage.
(This used to be commit 1f225fddd93d8569d9836310e2f0a56be7f4250e)
2000-06-13 02:15:10 +00:00