1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00
Commit Graph

8029 Commits

Author SHA1 Message Date
Andrew Tridgell
45c8a07d5c the beginning of a test to determine and display a servers properties
just shows capabilities at the moment
(This used to be commit 76fe90343c)
2002-03-19 23:19:00 +00:00
Tim Potter
e97b158dcc setup.py for samba python wrappers
(This used to be commit 85650ee3bc)
2002-03-19 22:55:21 +00:00
Andrew Tridgell
1603584137 make "net ads user" and "net ads group" also use the new paged interface
(This used to be commit 98769f08e7)
2002-03-19 22:16:19 +00:00
Andrew Tridgell
7b50eef89e updated winbindd to used paged ldap searches for all ldap queries
(This used to be commit 41e1560798)
2002-03-19 22:15:32 +00:00
Andrew Tridgell
b462700e53 added a ads_do_search_all() call, which is a more convenient interface
to paged searches. This makes updating winbindd to used paged searches
trivial.
(This used to be commit 514c11b4e3)
2002-03-19 22:14:53 +00:00
Simo Sorce
050b80356e second step to gain free uid<->rid mapping
we still need to free gid<->rid mapping and few other stuff
(This used to be commit aa4b6f8181)
2002-03-19 13:57:53 +00:00
Andrew Tridgell
f464ceb109 fixed paged controls on my box. The problem seems to be incorrect
referrals parsing in the openldap libs. By disabling referrals we get
valid controls back and the cookies work.
(This used to be commit 8bf487ddff)
2002-03-19 12:58:38 +00:00
Martin Pool
3bc3a31639 Take out autobuild dependency on proto.h; breaks some proprietary Makes.
(This used to be commit aa27993245)
2002-03-19 12:13:02 +00:00
Martin Pool
7154d14a85 Refactor for systems like Solaris that cannot handle wildcards on the
right side of a dependency line.
(This used to be commit 87f2e3c30d)
2002-03-19 11:46:31 +00:00
Martin Pool
1f62003cd7 Change the Makefile to rebuild proto.h as necessary -- note that this
does not imply that all source will be rebuilt when prototypes change,
merely that the prototypes will be updated.

make proto, clean, delheaders, headers, etc all behave equivalently to
before.

  Intended new behaviour for proto.h, whenever source is being
  compiled:

  If proto.h does not exist, it is built.

  If any source files have changed since proto.h was last checked
  (.proto.check), then proto.h is checked.  If there are no actual
  changes since last time, its mtime is not changed, but we do
  remember the time at which it was checked.

  Whenever we try to build a .o, we need to check the headers are up
  to date.  However, rebuilding the prototypes does not imply
  rebuilding all object files.

  Also to allow people to build on machines without Awk, we never try
  to use it unless a source file has changed.  I guess if we wanted,
  we could have lack of Awk only cause a warning, not failure.

The point of all of this is to be easier on people who don't
understand or forget to type "make proto", and to reduce the chance of
build breakage by having prototypes out of sync.

I also rolled back JF's changes to put proto.h into builddir rather
than srcdir.  There are good arguments in both directions, but since
we keep proto.h in CVS, it seems important that the up-to-date copy by
in srcdir where it can be checked back in.  If people are fussed about
having srcdir be readonly you could change this -- but since proto.h
is only rebuilt when there are changes, it's not a big deal.

I also fixed an apparent race condition in "make headers" that would
make it unsafe if you did 'make -j2', and made 'make clean' not kill
proto.h, since people may not be able to rebuild it.

I reckon there's nothing gnumake-specific here but we shall see.

I also have this great idea about rewriting libtool in C++...
(This used to be commit 8a61a810e5)
2002-03-19 07:26:18 +00:00
Andrew Bartlett
462402fc09 Fix a double-free bug in wbinfo -t's call in winbindd.
I forgot to clean this up when netlogon move across to the connection cache
arrangement.

Also add some smb_panics to the connection_ok() code to try to catch this kind
of thing better in future.

Andrew Bartlett
(This used to be commit f4f23fad60)
2002-03-19 06:36:37 +00:00
Tim Potter
bf555a158a Don't try to sort a list of zero length in internal_resolve_name()
(This used to be commit 5387e4046f)
2002-03-19 05:35:06 +00:00
Jeremy Allison
0c42e582f8 Sync up the VFS changes from 2.2.x.
Jeremy.
(This used to be commit e758bdc8a8)
2002-03-19 02:51:48 +00:00
Jeremy Allison
72eb7dbd40 Merge in JohnR's page count fixes.
Jeremy.
(This used to be commit 2e3133fbe5)
2002-03-19 02:35:12 +00:00
Jeremy Allison
ffadd471b9 Sync up vfs changes from 2.2.x.
Jeremy.
(This used to be commit ad1e858d8e)
2002-03-19 02:32:39 +00:00
Simo Sorce
cdc9931bb2 ops forgot this :-)
(This used to be commit fdb88eb06a)
2002-03-19 00:06:24 +00:00
Simo Sorce
32334bc655 more verbose checking in talloc and util_pw
fixed tdbsam memory corruption (and segfault)
reducing calls to pdb_uid_to_user_rid and countrary to 0 to move to a non alghoritmic rid allocation with some passdb modules.
(This used to be commit 9836af7cd6)
2002-03-18 23:57:14 +00:00
Simo Sorce
9fffb0859d Start to switch away from the alghorithmic uid->rid mapping model
(This used to be commit 724390a8da)
2002-03-18 11:35:53 +00:00
Andrew Bartlett
4e6400f1ed Allow us to see the difference between these two errors. (We need to chase
down some bugs with it...).

Andrew Bartlett
(This used to be commit ef68b28fa0)
2002-03-18 10:53:02 +00:00
Samba Release Account
ead8c07f29 preparing for release of 3.0-alpha17
(This used to be commit a772386d34)
2002-03-18 03:33:19 +00:00
John Terpstra
0b7f9e7a7c Fix ability to compile with CUPS support.
(This used to be commit 208c62c5a7)
2002-03-17 22:40:51 +00:00
Tim Potter
a4cce223d6 Added dos_errstr() function. Not all errors in list yet.
(This used to be commit ddb5753e36)
2002-03-17 06:04:15 +00:00
Tim Potter
ab13654dc9 Renamed get_nt_error_msg() to nt_errstr().
(This used to be commit 1f007d3ed4)
2002-03-17 04:36:35 +00:00
Jim McDonough
0bb16f1d01 Fix build for non-ads case
(This used to be commit 7ba235c0fb)
2002-03-16 01:30:09 +00:00
Jim McDonough
af38b626d1 Don't use // even temporarily, lest ye forget it and check it in...
(This used to be commit 936df31df5)
2002-03-16 01:14:58 +00:00
Jim McDonough
a60033e42d Change new style join function name for clarity in net_rpc.c
(This used to be commit 539d0cc030)
2002-03-15 22:10:19 +00:00
Jim McDonough
8dfc79b412 Change net rpc join several ways: \n\t1) expose \n\t2) eliminate oldstyle subcommand \n\t3) try oldstyle first, then more secure method\n to allow for autodetect between ads and rpc on net join
(This used to be commit c8a4a09b56)
2002-03-15 22:09:18 +00:00
Jim McDonough
04845c4cc0 Expose net_ads_join to allow for auto-transport-detection for net join
(This used to be commit 87ee483231)
2002-03-15 22:05:39 +00:00
Jim McDonough
e9394d5238 Add autodetect for net join, as well as some more help updates
(This used to be commit 951006374e)
2002-03-15 22:04:53 +00:00
Jim McDonough
bb38f48f6f Some help cleanups. Formatting and consistency issues. Line up text nicely, and make 'net help rap user' the same as 'net rap user help'...stuff like that
(This used to be commit 17775dae28)
2002-03-15 20:03:07 +00:00
Andrew Tridgell
7d4378cc89 if our lock spin code fails then return the first error code, not the
last one. This is what caused the lock1 and lock2 tests to fail.
(This used to be commit e7ae8003cb)
2002-03-15 09:51:37 +00:00
Andrew Tridgell
6a359cca8e the SEC_DOMAIN tests also apply to SEC_ADS
(This used to be commit 775404fe46)
2002-03-15 09:24:56 +00:00
Andrew Tridgell
47731e5b54 nicer output from "net rpc user add"
(This used to be commit a21ba95897)
2002-03-15 09:23:24 +00:00
Andrew Tridgell
0800ce3269 enable locking on the winbindd cache tdb so it can be backed up and
manipulated externally
(This used to be commit 1ad1a025b3)
2002-03-15 09:21:28 +00:00
Andrew Tridgell
04b22713d0 added a -h usage option to winbindd
(This used to be commit d6a4a10f58)
2002-03-15 09:20:36 +00:00
Andrew Tridgell
56e3c83af1 this tdb was being opened without locking, which is unsafe for shared
databases
(This used to be commit 1394e6ed31)
2002-03-15 09:19:51 +00:00
Andrew Tridgell
079334a431 lower the debug level of failing to map a file
(This used to be commit ad9965414d)
2002-03-15 09:19:07 +00:00
Gerald Carter
65c007b583 syncing up printing code with SAMBA_2_2 (already done some merges
in the reverse).

  * add in new printer change notify code from SAMBA_2_2

  * add in se_map_standard() from 2.2 in _spoolss_open_printer_ex()

  * sync up the _print_queue_struct in smb.h (why did someone change the
    user/file names in fs_user/fs_file (or vice-versa) ? )

  * sync up some cli_spoolss_XXX functions
(This used to be commit 5760315c1d)
2002-03-15 08:14:10 +00:00
Andrew Bartlett
d19e06c0c6 Actually include some *information* in the mangle debug messages.
In particular this shows the filename, prefix and counters involved.

The unicode -> unix converion only occours for the error case.

Andrew Bartlett
(This used to be commit 9c8de8c6cf)
2002-03-14 22:52:19 +00:00
Jim McDonough
5980e74d4c Add paged search requests to net ads user and net ads group commands, allowing more than 1000 (or whatever the query limit is on the server) objects to be returned. Printers will come next.
(This used to be commit 9c447920df)
2002-03-14 17:56:33 +00:00
Jim McDonough
0640a5ceeb This adds the Paged Result Control to ads searching. The new function, ads_do_paged_search, is the same as ads_do_search, but it also contains a count of records returned in this page, and a cookie for resuming, to be passed back. The cookie must start off NULL, and when it returns as NULL, the search is done.
(This used to be commit 9afba67f9a)
2002-03-14 17:48:26 +00:00
Tim Potter
aad2072e07 Remove studly gaps from prs_werror() calls so the same debug text is
logged.  This makes it much easier to use grep on log files when searching
for errors.
(This used to be commit ab1ebd3779)
2002-03-14 02:48:03 +00:00
Jeremy Allison
840279f342 Now we have reliable signals take SIGTERM inband.
Jeremy.
(This used to be commit cad82926a8)
2002-03-14 02:15:08 +00:00
Tim Potter
57bd576445 getpid() -> sys_getpid()
(This used to be commit a3cea5e9ae)
2002-03-14 01:53:04 +00:00
Tim Potter
8975d3ef70 Backed out enumprinters stuff - leave it for another day.
(This used to be commit d7efc5dd3d)
2002-03-14 01:48:59 +00:00
Jeremy Allison
d6d9e385cc Use sys_usleep not usleep.
Jeremy.
(This used to be commit 8587dd95f8)
2002-03-14 01:05:34 +00:00
Jeremy Allison
47c2477233 Get the current directory after becoming root.
Jeremy.
(This used to be commit f032c6f710)
2002-03-14 00:58:53 +00:00
Tim Potter
2ba1950c79 Fixed bodgy printf arguments in debug statment.
Who would have guessed it - we now use floating point maths in Samba.
(This used to be commit 6a053fa770)
2002-03-13 22:55:47 +00:00
Jeremy Allison
f9af25c4ec Ensure we attempt to lock at least once. Only sleep if time param set.
Jeremy.
(This used to be commit 62b80d5c65)
2002-03-13 20:49:57 +00:00
Jeremy Allison
5e3b923124 include/smb_macros.h: Don't round up an allocation if the size is zero.
"One of these locks is not like the others... One of these locks is not
quite the same" :-). When is a zero timeout lock not zero ? When it's
being processed by Windows 2000 of course.. This code change, ugly though
it is - completely fixes the foxpro/access multi-user file system database
problems that people have been having. I used a *wonderful* test program
donated by "Gerald Drouillard" <gerald@drouillard.ca> which allowed me
to completely reproduce this problem, and to finally determine the correct
fix. This also explains why Windows 2000 is *so slow* when responding to
the smbtorture lock tests. I *love* it when all these things come together
and finally make sense :-).
Jeremy.
(This used to be commit 8aa9860ea2)
2002-03-13 20:28:19 +00:00