1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

8007 Commits

Author SHA1 Message Date
Tim Potter
ab13654dc9 Renamed get_nt_error_msg() to nt_errstr().
(This used to be commit 1f007d3ed41c1b71a89fa6be7d173e67e927c302)
2002-03-17 04:36:35 +00:00
Jim McDonough
0bb16f1d01 Fix build for non-ads case
(This used to be commit 7ba235c0fb4755092605743d575357602fd1ce05)
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 936df31df5bad9d457d3775d11b4e96a58093282)
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 539d0cc03035c126e2de82523a07ed91997100b8)
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 c8a4a09b5648af2f1669a5a30acdf0a088077af9)
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 87ee4832312c9c65377500efd617bac086164834)
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 951006374e48d80a5128d870bdc255bf8c22cb6a)
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 17775dae28c724b11cc73f2aeac5f07f9656046c)
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 e7ae8003cb4fdc93db5f842754884a6d2ec93dc0)
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 775404fe46f72925fb302e149b6f96fab0dbfcb8)
2002-03-15 09:24:56 +00:00
Andrew Tridgell
47731e5b54 nicer output from "net rpc user add"
(This used to be commit a21ba95897531e7964c9e80a81cd5faa7394db77)
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 1ad1a025b3fe5aeff5adf685f47c9cc05ef80e40)
2002-03-15 09:21:28 +00:00
Andrew Tridgell
04b22713d0 added a -h usage option to winbindd
(This used to be commit d6a4a10f58accd6ad158ba60eb1508f00c9a4dd3)
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 1394e6ed318af5fc740aa5622919f9fd26d5a8d2)
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 ad9965414d4d1fd8a031e3169b8f19d66cdad8be)
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 5760315c1de4033fdc22684c940f18010010924f)
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 9c8de8c6cf44ead0719efa48a34c9c9d54402ac6)
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 9c447920dfbae2e2d2343600401c1d860dad863b)
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 9afba67f9a56699e34735e1e425f97b2464f2402)
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 ab1ebd377931166f2ecded784a0182102d4c1ca2)
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 cad82926a8baf7605cef81f0e0d4daa8e527e6ee)
2002-03-14 02:15:08 +00:00
Tim Potter
57bd576445 getpid() -> sys_getpid()
(This used to be commit a3cea5e9ae3b53ecbc45e61a39cbce0ca1b916aa)
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 d7efc5dd3dd712e7138b5c79eea9756125757175)
2002-03-14 01:48:59 +00:00
Jeremy Allison
d6d9e385cc Use sys_usleep not usleep.
Jeremy.
(This used to be commit 8587dd95f850b4c6d2f015fe97ef98759ee8c236)
2002-03-14 01:05:34 +00:00
Jeremy Allison
47c2477233 Get the current directory after becoming root.
Jeremy.
(This used to be commit f032c6f710cb0edcf02f25db81c83478b9a8ab1e)
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 6a053fa770b69f21fef52966a0b577b7ac9e817e)
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 62b80d5c65ae8cf35347ee5c3d21ce1702c6449e)
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 8aa9860ea2ea7f5aed4b6aa12794fffdfa81b0d0)
2002-03-13 20:28:19 +00:00
Andrew Tridgell
2001b83faa detect SIZELIMIT_EXCEEDED in ldap queries and truncate
the problem is, how the heck do we properly handle these? Jerry?

It seems that the Win2000 ADS server only returns a max of 1000 records!
(This used to be commit 93389647203395da0e894c2e57348081e755884a)
2002-03-13 06:43:52 +00:00
Andrew Bartlett
9802310b2a Ensure we never use "" as a domain name (Win9X apparently does this for 'net use' duirng login).
Picked up from a post to a TNG list by Volker.

Andrew Bartlett
(This used to be commit f81882fc9510aadd7d1db77753b307800ab50f9b)
2002-03-13 01:51:01 +00:00
Jeremy Allison
dac047366a Add "Creator Group" - was in 2.2.x and I'm syncing up the two.
Jeremy.
(This used to be commit bcf38961a7786c5cf1eb7568b87c19712c3ea9cc)
2002-03-13 01:29:30 +00:00
Andrew Bartlett
0ecd78fb8c Fix typo in copyright
(This used to be commit 54e69ed20adc74fdfe007a9642dcb3a55c02d856)
2002-03-13 01:26:59 +00:00
Andrew Bartlett
54bad4881f I don't need my name on this twice :-)
(This used to be commit 764b99a3906d6299650f984860a586f37b18326d)
2002-03-13 01:25:36 +00:00
Andrew Bartlett
7451e73ae2 Move the directory creation process outside the 'installbin.sh' script, and
into its own.  The 'installdirs' makefile entry didn't do anything on my laptop,
so it has been replaced with the section from installbin.sh.

This also fixes the bug that we ignored the setting of $(PRIVATEDIR) when
making the directories.

Finally, link pam_winbind with .po objects only, not a mix of .o and .po
(as per Don Mccall's request).

Andrew Bartlett
(This used to be commit c7a883df28da9dd6fb88198df22c4d78bf8acd8b)
2002-03-13 01:21:02 +00:00
Jeremy Allison
b0ace3183f Remove a stub function I forgot to fill in.
Jeremy.
(This used to be commit d08cbcbc5d4fc3ec9554145de6b0b0a64dfbb8d1)
2002-03-13 00:47:26 +00:00
Andrew Tridgell
8fe1df84e1 if we know that the SID is local then don't try via winbindd
(This used to be commit 1a8f3ba3ab7717c481e3fb4f1ea8938461160d09)
2002-03-13 00:30:26 +00:00
Andrew Tridgell
85d7e70d1f fixed mapping of SIDs for local users
(This used to be commit df9e345366078ccaa94df7c2f2e33b292605e88a)
2002-03-13 00:19:40 +00:00
Andrew Tridgell
08a0230855 fixed 2 reconnection bugs in the ADS backend support
(This used to be commit 1aaa2091d54e7e50cf75927d658e57776792d6ae)
2002-03-12 20:17:34 +00:00
John Terpstra
fc3d0ca2cd Sorry, forgot to commit this last night.
(This used to be commit 8e2f4bb35be5bf5db379c8e047cd2882e26f433e)
2002-03-12 19:29:16 +00:00
Andrew Tridgell
f36deb7b21 get the test for disconnection the right way around!
(This used to be commit ed80311b41f9869084d1e510cd8fd4213c3a1c19)
2002-03-12 18:47:27 +00:00
Jim McDonough
34dd544343 Yet another build fix for popt. I gotta get me one of these picky systems...
(This used to be commit 19546bdd5541785dc8430f8ffa2afcdb42015b96)
2002-03-12 17:30:09 +00:00
Jim McDonough
b9377e811e Missing comma from systems that have ACLs.
(This used to be commit 96e4282dca757e8621d23a54fb7203c93d2d41fc)
2002-03-12 16:32:25 +00:00
Jim McDonough
fb361dc503 Aack. Don't change too much. vfs.c still won't build, but this should fix some other build stuff I screwed up.
(This used to be commit 4490ad340cff1ea2a5b519150ad5c49bcea23766)
2002-03-12 15:21:04 +00:00
John Terpstra
cbad04053f Update samba.pam from 2.2.4pre branch.
Fixups for incorrect man page location by installman.sh
	- Note: FHS standard for man pages if /usr/share/man/XX
		where XX is the language mneumonic
(This used to be commit e3e0a5aca9593f18e5f218b54641048cd823ac03)
2002-03-12 06:52:35 +00:00
John Terpstra
89d998547d Fix up location of libsmbclient.so so it always goes to /usr/lib.
(This used to be commit e508b07fe766c679d6fc2a940bec72b9b2a61b01)
2002-03-12 06:48:48 +00:00
John Terpstra
8859f627a2 It builds the RPMS, now for the testing...
(This used to be commit 917a5f2cdb861dca1708585f6b7ff51f576ca497)
2002-03-12 06:18:00 +00:00
John Terpstra
4ccc894a37 Cleaning things up for test deployment.
(This used to be commit 675a78d09a693004cf959fd6cec62b6b72c67194)
2002-03-12 05:28:09 +00:00
John Terpstra
9ec285c568 Added wins entry.
(This used to be commit a4be3b7b93ac95d16c01519a57fd9c57b20ffcae)
2002-03-12 04:18:51 +00:00
John Terpstra
82bd0604d0 Hack, hack, where is my sledge hammer?
(This used to be commit b07aa46d83810009d5d690f81cf82932dd67f04c)
2002-03-12 04:17:48 +00:00
Jeremy Allison
8cb4e34b3a Removed unused var.
Jeremy.
(This used to be commit 45bf5f6c050bbe69209a5c80141ef8e54354f5ea)
2002-03-12 02:33:31 +00:00