1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-21 18:04:06 +03:00

2891 Commits

Author SHA1 Message Date
Jean-François Micouleau
4bff267574 - enumprintprocessors and enumprintmonitors added.
- getjob (level 1 and 2) done.
- better handling of getprinterdriver (level 2).
- added workaround to print PCL files.

Now the spoolss code should be compliant with all kind of printers :-)

	Jean Francois
(This used to be commit bf9b639bf9162d61eb152af506dc2c1a7e8a4c85)
1999-07-27 10:46:44 +00:00
Luke Leighton
f2e0bbffb5 renaming AUTH VERIFIER to AUTH NTLMSSP VERIFIER. ready for adding
another RPC authentication system.
(This used to be commit 1a211bafebad8c63d98b5ef275a6272013527c65)
1999-07-26 21:47:23 +00:00
Luke Leighton
73a0c9f046 Jean-Francois spotted bug in use of file_modified() routine submitted
recently.
(This used to be commit 717af2d55d4f964c0449a1e502b6e77d1c3f3f30)
1999-07-26 18:35:46 +00:00
Luke Leighton
d300fc3173 commented location where lookup_sids(), a direct call to the password
database API, needs to be replaced with over-the-wire (actually, tcp/ip
loopback) to smbd.

in fact, this is the location where, if we want to put in an nt5 ldap
lookup system or netware NDS instead, we make the calls to resolve
users-to-sids and vice-versa: NOT by replacing rpc_server/srv_samr.c.
(This used to be commit fd886af3317ca806c9c28f71afca5c7b063c1226)
1999-07-26 17:46:06 +00:00
Tim Potter
f05928e407 'export BEANS=ham' is a bash-ism. For those who don't have a symbolic
link from bash to /bin/sh, the correct form is 'BEANS=ham; export BEANS'.
(This used to be commit 569aca445a22ccc3805a5dd5e1fc893011f0a147)
1999-07-22 23:29:15 +00:00
Matthew Chapman
8f54fdb01a BDC support.
Added -S (Synchronise) option to smbpasswd, which calls synchronise_passdb.
(This used to be commit 21c92d24977015f0368480f44f67366f7c412343)
1999-07-22 10:55:41 +00:00
Matthew Chapman
d0d85964da BDC support.
(This used to be commit 05a2687b7c3a8c29ea4807b14f928213892509ec)
1999-07-22 10:55:23 +00:00
Matthew Chapman
61b92043da BDC support.
Fixing and clarifying SAM_PWD structure.
(This used to be commit 8e36b07a0e8e7ea8b72e1b9e3b747795b2685e85)
1999-07-22 10:55:09 +00:00
Matthew Chapman
30beb2dd10 BDC support.
Added synchronise_passdb function to update accounts in a BDC's smbpasswd.
Improved rpc_read, which was still somewhat broken for multiple PDU's.
modify_trust_password must initialise cli.pwd (pwd_set_nullpwd).
(This used to be commit 4783ac3968df1c5c8aa0b6ba9144df8b01ae0b99)
1999-07-22 10:54:49 +00:00
Matthew Chapman
0091c7768d BDC support.
Algorithm based on previous work of Jeremy's.
(This used to be commit f0c71a804dc869a73eb6af6e0ac9f4fb64dd1f68)
1999-07-22 10:54:18 +00:00
Tim Potter
0108188ceb make proto
(This used to be commit 50be413a9fa90dbfce31c8e6ae4b8c452a4cb7ce)
1999-07-22 05:00:08 +00:00
Tim Potter
1aef4d76c9 Support for arbitrary VFS options in smb.conf. Options are of the
format 'vfs option = name = value'.  It would be nice to get rid of
the first equals sign, but that would involve modifications to the
smb.conf parser.

There are a couple of naughties here - I've added a P_PTR enum as the
VFS options are parsed in param/loadparm.c and stored as a linked list
of structures.  I couldn't for the life of me write a FN_LOCAL_PTR()
macro to generate a lp_vfsoptions() function that actually worked so
for the moment it is coded by hand.
(This used to be commit 89ad85f0a3dfa233f6370ac6e3c97a1a645cfdfe)
1999-07-22 04:55:13 +00:00
Tim Potter
331ab45321 Copy service name into vfs_connection_struct.
(This used to be commit 19242cd44e059d90e91f1c27bfb45899ce5de26a)
1999-07-22 04:47:14 +00:00
Tim Potter
f809734105 Pass VFS options defined in smb.conf to vfs_init() function.
(This used to be commit 8cde172a77a1582c0af2e685097c53ba5f302a4e)
1999-07-22 04:43:59 +00:00
Tim Potter
3c95cd4cae Added service name to vfs_connection_struct.
Added a vfs_options struct for passing smb.conf parameters to VFS
modules.
(This used to be commit 38cc03ae0cccb359e31c8dca65606b66ff473762)
1999-07-22 04:41:00 +00:00
Tim Potter
49f384231d Moved a whole bunch of macros out of smb.h and into their own #include
file.
(This used to be commit bf61fdace8cdf71dc3ab40795498a8bfd0d3b9a0)
1999-07-22 04:39:31 +00:00
Luke Leighton
ae0d7718eb Tim Potter spotted compile error: matthew had added BDC support to smbd,
which i didn't know about!
(This used to be commit 30620b93e5c476ba7bf09c459ab4b7bea3f67642)
1999-07-21 05:07:20 +00:00
Luke Leighton
6a5a4e8186 BDC support.
(This used to be commit 2331aa32ab36c3ee5fd8cfbe972e57299939e33d)
1999-07-21 00:32:09 +00:00
Luke Leighton
46ce0d4619 comments requested by jeremy as to why NT/95 NULL-password distinction hack
was modified.
(This used to be commit 50f7bd8a9c47d073bbde66ae26e9f71f030afc4c)
1999-07-21 00:31:16 +00:00
Luke Leighton
d0372689d6 use pstring for at command instead of fstring
(This used to be commit 43d3d2336f0b3c3e332d5abc476223a45592f6c6)
1999-07-21 00:30:18 +00:00
Alexandre Oliva
77fe46b5f5 Make sure that the stamp file is newer than configure.in
Not a problem unless --enable-maintainer-mode is specified, and, even then
the probability of encountering a problem is minor, but so what? :-)
(This used to be commit b0a59e90c543d9112c2049e3116493fb6e5bc76c)
1999-07-18 20:34:50 +00:00
Alexandre Oliva
848823bc9f Avoid multiple ``Updating dependencies'' messages before .deps/.stamp
is created
(This used to be commit 407eec63162a18ef23312ddc3adb4fa0c0b2c25f)
1999-07-18 20:31:57 +00:00
Luke Leighton
33ed8059a2 NTLMv2 check being actioned when NT password response was only 24 chars.
added check to ensure response is more than 24 chars before bothering
to do an NTLMv2 check.
(This used to be commit 7a58895ff26fcad09ee45de99086739bf5761fd9)
1999-07-16 22:23:45 +00:00
Luke Leighton
65930413f4 check to see if copy_passwd_struct() ever receives its own internal
buffer as an argument :-) :-)
(This used to be commit 0d1f5e5a6d1cbceda3be3d5626842116e6e91809)
1999-07-16 22:07:37 +00:00
Luke Leighton
0262b2a6b4 copy of password struct needed to be made prior to calling copy_passwd_struct
found by Bertl <bs@vpnet.at>.
(This used to be commit 93298bca1c573532c5250c84bac39cf9214ba3b5)
1999-07-16 22:03:15 +00:00
Herb Lewis
13407e69b5 add Windows 2000 version of Plain Text Password registry entry
(This used to be commit 1a0e378a6fa146c4282101ee84b7d01adea82f50)
1999-07-16 19:17:12 +00:00
Luke Leighton
7c29698e41 work-around for win95 NULL session bug: NULL password actually being
placed in data stream before username / domain, whereas NT doesn't do
this...
(This used to be commit 44e6d4c1b0b6ae54e76e96471b40bb784c8b3c8c)
1999-07-15 21:25:58 +00:00
Luke Leighton
939f6d6794 more dfs stuff. this looks like it's going to be more appropriate to use
the vfs tables.  at the moment, i replaced all calls to unix_convert()
with unix_dfs_convert().

this does the job, but it's not very nice.
(This used to be commit 00d4aebce9f268a737ef9df9bdbe59f8fe831979)
1999-07-15 20:44:24 +00:00
Luke Leighton
2b354d7330 dfs issues
(This used to be commit d9ada8b55d539e555d25298e0a308ea952e2807e)
1999-07-15 17:52:44 +00:00
Luke Leighton
92b8937bae added %d %d to error message, try to track down the uid / smb_uid mismatch
(This used to be commit ec918ba144e7c1bd1689007143ca2b8bee604768)
1999-07-15 17:50:27 +00:00
Luke Leighton
1f33d5a8aa code from bertl to allow remap of default built-in names to anything.
parameter is "builtin rid file".
Copyright 1999 Bertl <bp@vpnet.at>
(This used to be commit 80d36778432d42eb265ed9428f27a27250ba5e08)
1999-07-14 19:21:44 +00:00
Luke Leighton
c553c01c86 removed strncpy()
(This used to be commit 4bdff2748956a61f12a92e19a9af98c7b9668e8f)
1999-07-14 18:16:57 +00:00
Luke Leighton
0ad513f42c renamed getfilepwent() and endfilepwent() to getfileent() and endfileent()
as they are generic "file line-by-line" reading routines.  lines with
"#" at the front are ignored (as comments).  this code started out as
the password file reading code.
(This used to be commit ef6df590fdf65a6d94b343998bac3a4d48ae07e0)
1999-07-13 19:54:40 +00:00
Luke Leighton
d2b2dff2e8 dfs parsed string length was being set explicitly to value "6", overwriting
the correct length.
(This used to be commit 5d1fad53c2bdfef63930e0b9d5cc460c9740066e)
1999-07-13 19:52:33 +00:00
Luke Leighton
d9a18c82d1 Jean-Francois Micouleau's rewrite of Nigel William's DFS support
(This used to be commit e6116c40d4d0473a7412e82791afd9f44e4905a4)
1999-07-12 21:33:11 +00:00
Luke Leighton
ac61e4aee2 lengths of NT passwords when "encrypt passwords = no" can be completely
random.  values seen can be as high as 18255.  this fails the check
of <= 24 which sets NT password length to 0, effectively ignoring it.
the <= 24 was removed in reply_sesssetup_X.
(This used to be commit 98d43b20dc4df72ddbfaeb34581222adc53d15dd)
1999-07-12 18:57:05 +00:00
Luke Leighton
8f1404739f Jean-Francois Micouleau's rewritten DFS patch, originally written by
Nigel Williams.  despite the data format being *exactly* the same as
NT's, this still doesn't work yet.  more work needed.
(This used to be commit 270981960bb5aab52d2f8e494827101ece6729c4)
1999-07-12 18:46:15 +00:00
Luke Leighton
50429f6056 anon passwd connection: passlen=1; ntpasslen=0.
(This used to be commit 12ee037d44a603ce50982d5b90e08c30339de750)
1999-07-11 19:26:27 +00:00
Luke Leighton
4820c47801 NULL pwdb_xxx_map_names() parameter can be passed here (which is a bug
anyway!)
(This used to be commit 91d5bda9ad22c922a918f0942dcbff04202b9991)
1999-07-11 19:15:53 +00:00
Tim Potter
d244f2d1c8 Partial GNU readline support for rpcclient. Only command line history
and command completion implemented.
(This used to be commit 795fa6a5185d9e245541a44a971a3fb588168c1e)
1999-07-09 05:10:10 +00:00
Tim Potter
6919a92aee When making anonymous connections, must pass pointers to real nt
password and password length variables not constants.
(This used to be commit 236022071f2f6df0c583fd88d9802d9b3ea6f73e)
1999-07-09 03:55:15 +00:00
Tim Potter
59bd1de1a5 Put back in GNU readline support for smbclient accidentally trashed by
tridge in the clientgen.c to clientutil.c conversion.
(This used to be commit 26d66071fbac2c46445153c214bb13d587a67b49)
1999-07-09 03:34:09 +00:00
Tim Potter
60e08bd35e Hived off string routines into a separate file.
(This used to be commit 4929513f1376d72409c1e5a39f723d1d2bd81dc0)
1999-07-09 01:59:22 +00:00
Luke Leighton
820c382211 fixed problem with NULL ntpasswd parameters causing crash in
static cli_calc_session_pwds().  this code used to be inside cli_session_setup()
itself and worked on non-NULL local variables.
(This used to be commit 7aff19ba57fd91572da7cbe16f118d11226590e3)
1999-07-08 19:44:06 +00:00
Luke Leighton
a424da878f Ignacio Coupeau <icoupeau@unav.es> suggested modification to ldap search.
(This used to be commit 7d6337641703884a5c6914ca6e292d67ea0c803b)
1999-07-08 19:04:04 +00:00
Luke Leighton
55c0c85f4d allow safe_strcpy() to pass 0 for max length of string, resulting in no
effect.
(This used to be commit 47e54d049a4de3c2154b1e5edc3234b88bcc065f)
1999-07-08 18:57:58 +00:00
Luke Leighton
019d80f597 issues with pwdb_sam_map_names() and pwdb_smb_map_names() returning NULL.
found by Bertl <bs@vpnet.at>
(This used to be commit 389c17a225884b39d097dc0851a794d3669fdc31)
1999-07-08 18:44:50 +00:00
Luke Leighton
15291cb74f use of dos_mkdir() in generate_sam_sid() should be unix mkdir
(This used to be commit 16371d8fe130f89bedebc63fdc4bf0f6f993f309)
1999-07-07 21:22:18 +00:00
Luke Leighton
264459d25a added debug reporting to pwdb_sam_map_names() and pwdb_smb_map_names()
(This used to be commit baab30815238a803badeafa1ed8f029d7782242f)
1999-07-07 18:44:58 +00:00
Luke Leighton
527820d306 oops, refused lm when ntlmv2 was true not false/auto. oops!
(This used to be commit 6b4b24d2208b1b076dfc2f7202917ca0acaeb398)
1999-07-07 16:44:38 +00:00