1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

4511 Commits

Author SHA1 Message Date
Tim Potter
4287b412e9 Added documentation for winbind enum users and winbind enum groups
configuration parameters.
(This used to be commit c76dfab559003c9194f519cb89869d191cc0d6c0)
2000-10-17 02:28:24 +00:00
Herb Lewis
090f1bc9b7 get rid of $Revision string - sync with 2.2 branch
(This used to be commit 192b088a4649c2b6b27bd30ae47d1228f9c86092)
2000-10-16 23:48:37 +00:00
Jeremy Allison
359048cc74 Fixes to get ms-dfs code to compile with the new changes.
Jeremy
(This used to be commit d712b5b071eff89eca547678cd1652263708abfb)
2000-10-13 21:53:51 +00:00
Jeremy Allison
6d475b7217 Added David O'Neills fix to HEAD (hmmm. how did this compile... :-).
Jeremy.
(This used to be commit e222057140edb3f14d76e54bd6e744919f50b4df)
2000-10-13 17:36:22 +00:00
Jean-François Micouleau
85643cd72c last part of W2K support.
the trust domain list reply on netlogon pipe was wrong, interim hack until
we have full trust relationships.

changed some unistr2 to parse the ending NULL char.

added a prs_align_needed() function. much like a prs_align but with a
condition. needed for the unistr2 parsing.

	J.F.
(This used to be commit d8bf81553c17d9ee3419d8150b96119ebb0b8fa9)
2000-10-13 14:02:01 +00:00
Tim Potter
8c7f2fbab2 Fixed merging mess.
(This used to be commit 7b8c03de1fd1461d4c65c0d7100f9519e08d1b24)
2000-10-13 05:19:57 +00:00
Jeremy Allison
330d678fba Fix to allow smbd to call winbindd if it is running for all group enumeration,
falling back to the UNIX calls on error. This should fix all problems with
smbd enumerating all users in all groups in all trusted domains via winbindd.
Also changed GETDC to query 1C name rather than 1b name as only the PDC
registers 1b.
Jeremy.
(This used to be commit 5b0038a2afd8abbd6fd4a58f5477a40d1926d498)
2000-10-13 01:59:14 +00:00
Jeremy Allison
a7f8d8b636 Fix to allow smbd to call winbindd if it is running for all group enumeration,
falling back to the UNIX calls on error. This should fix all problems with
smbd enumerating all users in all groups in all trusted domains via winbindd.
Jeremy.
(This used to be commit 54a1ae815b3ebcc7ab98bf0a2a39719ae3b2d5ea)
2000-10-13 01:16:35 +00:00
Jeremy Allison
c56301b1d1 Ignore SIGUSR2. Terminate nmbd if we have no interfaces.
Jeremy.
(This used to be commit 580e2e044cfd1d011d9f28f0f49ef60ca6ba8d32)
2000-10-12 21:19:49 +00:00
Herb Lewis
2a2a93bebe allow "master" smbd to call message_init so it is not killed by messages
sent to it's PID

Jeremy or Andrew please check this out for other possible side effects.
(This used to be commit f365950e7dafa269ace647ae1cab6201f8ecf67d)
2000-10-12 19:42:18 +00:00
Herb Lewis
d57dc01732 update man page for program changes
(This used to be commit 1ddfec32562f755f3f4ca4dde54af6a5a2e99978)
2000-10-12 19:32:09 +00:00
Herb Lewis
53ce2f7012 lib/messages.c add debug print for receipt of PING and
REQ_DEBUGLEVEL messages
utils/smbcontrol.c      allow "q" to exit interactive mode. Exit on error
                        from message_init.
(This used to be commit cda8c0439113dcce02a681b0aaddf69326c0ec9a)
2000-10-12 17:58:40 +00:00
Herb Lewis
7a42a9da7d use macros for incrementing profile counters
(This used to be commit cae5eeb16e81b6aa95c68223268513c32aed7056)
2000-10-12 15:41:16 +00:00
Herb Lewis
ca4acd520e print source PID in PONG and debuglevel message. Allow request debuglevel
message to go to any dest. Put timeout for commands that expect a reply.

sync with 2.2 branch
(This used to be commit 45632bb813da06d0139aa32b9ab99d472dcfaf25)
2000-10-12 00:29:01 +00:00
Jeremy Allison
d81a598230 Turns out we do need the pwnam check as on many systems the users
primary group is not listed in the groups file...
Jeremy.
(This used to be commit b1cb7bec51963ac2ddc62dd1abbf8f8fa4351f9b)
2000-10-11 22:38:38 +00:00
Jeremy Allison
93932079c6 Fixed %d printf with unsigned long arg.
Jeremy.
(This used to be commit 448ff58fd5a88b1fdadfb9a8e0bc5f38b707a4d3)
2000-10-11 17:26:14 +00:00
Jeremy Allison
cd6a6bd2cb Use sys_setgroups - systems with broken getgroups need this.
Jeremy.
(This used to be commit c7c90c83372df53eac0f3779dffedd4b28c8c757)
2000-10-11 17:20:18 +00:00
Christopher R. Hertel
2cddf134e6 Simple cleanup, but I also changed the value of the dlevel parameter passed
to open_socket_in() from within the open_sockets() function.  This has some
effect on the way port numbers are assigned.  Basically, if we use the -r
switch we are saying 'use port 137'.  If we can't do that, there should
be an error message and a failure.  If we don't use -r then we simply select
the first available port.  The way it was working, if we selected -r and
port 137 was in use, wierd things would happen as open_socket_in() tried to
find another port.
(This used to be commit f09cb41ad86b233253758de7ef2781589ac07b86)
2000-10-11 16:24:20 +00:00
Christopher R. Hertel
9a872fb616 Converted to call lib/wins_srv.c:wins_srv_ip() instead of lp_wins_server()
when looking up the WINS server address.

Please *don't* use lp_wins_server() any more!

The wins_srv_ip() function has the following features:

- If the WINS server was entered as a DNS name then the translation to an
  IP address will already have taken place.  We used to do this every time
  a call to the WINS server was made.  Ick.

- The return value of wins_srv_ip() is a struct in_addr.  Ready to go.

- When WINS failover is fully implemented, you'll be able to enter a colon-
  separated list of WINS servers via the WINS SERVER parameter.  Using
  lp_wins_server() directly will fail if this syntax is used.

Chris -)-----
(This used to be commit 56be7c2a49a8a918318a70843fff4e89ec10d0d3)
2000-10-11 15:54:17 +00:00
Herb Lewis
fbe838f69b Try this again on the right machine. Adding files for PCP samba pmda
(This used to be commit 8ad653f9ebc60c6807c1552425fa83218f6a15d4)
2000-10-11 14:07:32 +00:00
Tim Potter
76aab4ad56 Renamed WINBINDD_INITGROUPS constant to WINBINDD_GETGROUPS.
(This used to be commit 5f3cf2eb78bfa6fb00890d449d38e9f13964712c)
2000-10-11 05:45:06 +00:00
Herb Lewis
9dc817cdfc sync with 2.2. tree
(This used to be commit 8586624815f70a4448c001f14e74eabc96dd4d04)
2000-10-11 05:38:37 +00:00
Herb Lewis
8719c27726 changes to sync with 2.2. tree
.cvsignore              remove config.h - not in this directory
include/profile.h       profile changes
lib/messages.c          added message to return debug level
libsmb/clierror.c       cast to get rid of compiler warning
libsmb/smbencrypt.c     cast to get rid of compiler warning
profile/profile.c       add flush profile stats changes for profile struct
rpc_parse/parse_samr.c  fix for compiler warning
rpc_server/srv_samr.c   cast to get rid of compiler warning
smbd/ipc.c              profile stats
message.c               profile stats
smbd/negprot.c          profile stats
smbd/nttrans.c          profile stats
smbd/trans2.c           profile stats
utils/smbcontrol.c      new flush stats command
(This used to be commit bbb24daa25dca4e4b6b1f8942cd84ee3aa1bed8e)
2000-10-11 05:31:39 +00:00
Tim Potter
c72f94dad9 Modified initgroups to provide a get groups a user is a member of
functionality.  This is much faster than inverting the group database.

Added client side command for this to wbinfo.
(This used to be commit e87b2d3d1fb84311d83d21a76900f994e4ff71dd)
2000-10-11 05:25:32 +00:00
Tim Potter
cbee552bdb Don't initialise groups twice.
(This used to be commit 15d7f16bdc2ff4f2ae82871eb9f318ba45cf4d1c)
2000-10-11 04:54:37 +00:00
Tim Potter
7c4c781df2 Remove duplicate group initialisation function.
Don't initialise groups twice.
(This used to be commit 5375261152b28a65de18e817c75cab79c2f556b8)
2000-10-11 04:54:01 +00:00
Jeremy Allison
4498212487 Fix to avoid calling getgrgid for no reason.
Jeremy.
(This used to be commit b057a7349b2d6420f96a6ebc31822da66b39fe6c)
2000-10-11 03:46:14 +00:00
Jeremy Allison
26a4a34d36 Fix for growing printing.tdb by adding check on job creation.
This also updates the printing.tdb db version to 2.
Jeremy.
(This used to be commit 13395514c632341e7be36eb9589011bb0949b075)
2000-10-11 02:26:27 +00:00
Jeremy Allison
e9270d61fc Remove lpq as root fix - do this in print_job_start instead
as part of print queue length processing.
Jeremy.
(This used to be commit e85a0fadd8dcf608822819f00f15569713518806)
2000-10-11 02:04:46 +00:00
Jeremy Allison
cdb71ca518 Fixes to periodically scan printing.tdb in idle time and occasionally
on exit. Needed to fix printing.tdb from groving to 300Mb+ if being
driven by smbclient clients that never ask for status... (effective
DOS attack :-).
Jeremy.
(This used to be commit 6581066b93a674fadf6f9b92441428d2cc8b4a02)
2000-10-10 21:52:31 +00:00
Jeremy Allison
e8912baf02 Fix found by Andrew to stop local/remote printers being
confused. check_printer_ok was causing SETPRINTER calls to fail.
Jeremy.
(This used to be commit b41cc5fea7409d07529adad44f0cbba5c764591c)
2000-10-10 19:09:48 +00:00
Jeremy Allison
30dbac7e02 Fixed Realloc memory fragmentation problems.
Jeremy.
(This used to be commit 5518f59976ecac796a85db959cb9e8cc6c4d3504)
2000-10-10 18:40:03 +00:00
Jeremy Allison
d508794118 Fixed nasty size wrong bug spotted by the eagle eyes of
JF :-).
Jeremy.
(This used to be commit 443293a06530d0a5421b39d9a6a224d6ae316bd3)
2000-10-10 18:34:44 +00:00
Jeremy Allison
afe321b7c9 Added debug so we can see how winbindd converts SIDS.
Jeremy.
(This used to be commit 6696bf203c90dc20c00b47737f5ea1d9b8e23d75)
2000-10-10 18:22:50 +00:00
Gerald Carter
c5906a87ec Just in case anyone thinks that Win ME is not freally just a
facelift for Win98/95


jerry
(This used to be commit fca30085cc8c84697927e7769251205e10fd31ed)
2000-10-10 13:30:02 +00:00
Jean-François Micouleau
11d999f2bc a netlogon enum trust query doesn't have a function_code at end.
a sam_user_info_24 doesn't have a uint16 at end
samr_create_user also creates the unix account now
samr_set_userinfo changes the password.

        J.F.
(This used to be commit 94f4024481fcd0cb6647af1bd4364033be020641)
2000-10-10 13:08:55 +00:00
Andrew Tridgell
2d33e87424 got rid of tdb_writelock() and instead lock a chain. tdb_writelock()
is conceptually flawed
(This used to be commit 6e4a3585521b7e5928298bd0f1418ff9fbcacfb4)
2000-10-10 06:45:09 +00:00
Andrew Tridgell
2a9ce69f3b added tdb_lock_bystring() and tdb_unlock_bystring()
(This used to be commit ca443210c84575d39e60c38a7a12d037386d0e38)
2000-10-10 06:43:26 +00:00
Andrew Tridgell
d2f07bb765 don't use gets() !
(This used to be commit e4ea0a5975d3539803c78cac2229550a6e89c4b4)
2000-10-10 05:05:35 +00:00
John Terpstra
96e27b10bf Fixes to allow wins.c to compile to allow building of libnss_wins.so.
(This used to be commit 3fb2e94c4430c570639c0e4d1caeed3a19bbd09b)
2000-10-09 21:44:00 +00:00
Jean-François Micouleau
43b2bdce3e I introduced a bug in my last commits. Hopefully nobody noticed :-)
J.F.
(This used to be commit 044246fe7e40d83673120dc14b5d6572e6c23142)
2000-10-09 14:41:19 +00:00
Jeremy Allison
4d968ed35d Missing conn parameter missed in vfs rewrite.
Jeremy.
(This used to be commit 4eecc63be5bd11590972ee4f446b7a80d46a713b)
2000-10-09 00:06:30 +00:00
Jeremy Allison
33170cc6fb sys_popen got damaged when converted from FILE * to int fd I think.
Patrick Powell kindly pointed out the bug.
Jeremy.
(This used to be commit 1f156b2420b7ecf1266e650efc3cee55362e29dd)
2000-10-08 21:21:27 +00:00
Jean-François Micouleau
5ad18c79ad more cleanup of samr
J.F.
(This used to be commit c49cc884458d6efa0f7f4b1e40f7d98d84836e77)
2000-10-07 17:32:40 +00:00
Jean-François Micouleau
75c346e70c added samr_set_user_info and info_2.
cleanup of create_user
cleanup of rid/sid mix in samr. now we only have sid.

some prs_align() missing in parse_samr.c

a small debug change in srv_pipe.c

You still can't change a user's password in this commit.
Will be availble in the next one.

	J.F.
(This used to be commit b655bc281fa183b1827a946ada1fcf500fb93aea)
2000-10-07 15:56:36 +00:00
Jeremy Allison
8582d42646 Ensure browse.dat is written and read in UNIX character set format.
Jeremy.
(This used to be commit 279d0ec656b03f9266e38b013f16b69e7571c0d5)
2000-10-07 01:15:07 +00:00
Jeremy Allison
5d4f5cdddc Integrated support for NT and OS/2 lpq parsing. Code from
Jim McDonough
Infoprint Manager Development
Linux Technology Center
IBM Boulder

Jeremy.
(This used to be commit d9eedd5db1728be8e23d73c954db13bbbcadf3fb)
2000-10-07 00:48:27 +00:00
Jeremy Allison
f601ecdda2 Fix for yp_get_default_domain from Neil Hoggarth <neil.hoggarth@physiol.ox.ac.uk>
Jeremy.
(This used to be commit 44ed8abb2a9f2197b18565dd23a2795faf8fe241)
2000-10-07 00:26:04 +00:00
Jeremy Allison
077c41cc60 Fix for printf attribute from Mattias Gronlund <Mattias.Gronlund@sa.erisoft.se>
Added "codepage directory" patch from Peter.Polkinghorne@brunel.ac.uk
Jeremy.
(This used to be commit e49566c2e21fcd16980e5110495645c5ae5a36da)
2000-10-06 23:35:55 +00:00
Jeremy Allison
74d4a3b741 Added Herb's fixes to HEAD.
Jeremy.
(This used to be commit 4862d2ab1163310d844b929fb17239b4f4cb1a99)
2000-10-06 23:01:47 +00:00