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

5835 Commits

Author SHA1 Message Date
Tim Potter
8678c6d6f6 It looks like the rpc client code in libsmb hasn't been converted to the
new internal string stuff.  The main problem is that some unicode strings
are null terminated and some aren't.  There's no rhyme or reason to it -
some pipes have 99% of the strings terminated and some have 99%
unterminated.  To avoid having to actually know the termination policy, I
propose a set of functions that take a UNISTR2* and use the length
contained there.

Added rpcstr_pull_unistr2_string() function to convert a unicode string of
dubious termination to a fstring.
(This used to be commit e5b62b4961)
2001-07-20 01:32:56 +00:00
Tim Potter
d3f1d7f7b6 Merged across rewritten version of winbindd_kill_connections(). This now
works much better with trusted domains whose DCs cannot be reached.

I'm pretty impressed with how much faster winbindd is in HEAD rather than
TNG.  A lot fewer unecessary name lookups are performed and it feels a lot
zippier now.
(This used to be commit 36413784ae)
2001-07-19 09:18:23 +00:00
Tim Potter
921761fb97 Added some documentation for using -U with -j in order to join a domain
without first having to create an account using the server manager.
(This used to be commit 5edfb53d7c)
2001-07-19 09:06:50 +00:00
Tim Potter
cdcf646c65 #ifdef'ed out some unused functions.
(This used to be commit ab5ccce2ed)
2001-07-19 07:44:59 +00:00
Tim Potter
1253b8ea43 Reran autoconf.
(This used to be commit fa4901eaf2)
2001-07-19 07:19:53 +00:00
Andrew Tridgell
e8c2eeb0d8 the nss and pam modules in winbind don't have strchr_m() yet, so use
strchr() for the moment
(This used to be commit c2c1f2027e)
2001-07-18 21:50:20 +00:00
Andrew Tridgell
45635a4a79 removed some unnecessary code
(This used to be commit 1436c9f424)
2001-07-18 21:48:36 +00:00
Richard Sharpe
aefa7e1c3f Fix the PIC flag for IRIX
(This used to be commit 6a7645f90b)
2001-07-18 02:58:19 +00:00
Herb Lewis
e6866f1851 don't test for root ownership of profile shared memory segment
(This used to be commit d7023b881a)
2001-07-18 01:13:16 +00:00
Jeremy Allison
54068ae8f3 Tidied up calling yield_connection on connection allocation fail.
Restore debug message to level zero.
Jeremy.
(This used to be commit 0b13f495b3)
2001-07-17 22:04:46 +00:00
Jeremy Allison
c2aa4b762f Connection record not existing is not a debug level 0.
Jeremy.
(This used to be commit d7da59f54e)
2001-07-17 21:32:33 +00:00
Jeremy Allison
c6b51500af Fixes from Jens-Uwe.Walther@force.de to make the -l option behave
consistently.
Jeremy.
(This used to be commit f591ca9f25)
2001-07-17 20:42:59 +00:00
Simo Sorce
0cf44bb347 move the global_machine_password_needs_changing where we need it.
(This used to be commit 8a2f6fbacd)
2001-07-17 08:34:12 +00:00
Jeremy Allison
3015fde980 Fix usermanager for domains - we were returning no memory when we
should have been returning empty space at end of enumeration.
Jeremy.
(This used to be commit 175c640692)
2001-07-17 02:26:04 +00:00
Jeremy Allison
e091298907 iFix from "Shahms E. King" <shahms@shahms.com> to get cups user name
right.
Jeremy.
(This used to be commit 34244c2a8d)
2001-07-17 00:39:07 +00:00
Jeremy Allison
a92134c5a4 Fix for incorrect creation of print job names, based on a patch by
Jos M.Rodrguez <josemi@iies.es>
Jeremy.
(This used to be commit 7ebf284ef7)
2001-07-16 23:39:26 +00:00
Jeremy Allison
edfd138e87 Fix from bernd@arresum.inka.de for broken krb configure.
Jeremy.
(This used to be commit 956e2a4e37)
2001-07-16 22:58:47 +00:00
Jeremy Allison
11837682c7 Fix from Jim Vopni - muliple definitions of "letter".
Jeremy.
(This used to be commit 5aa3b18f69)
2001-07-16 19:36:44 +00:00
Simo Sorce
e3fbb09ced Test if machine password has expired.
This test was lost somehow...
(This used to be commit 065d8f69d5)
2001-07-16 12:16:48 +00:00
Richard Sharpe
57673d585a A few tweaks around linking libsmbclient
(This used to be commit 83334fc474)
2001-07-14 02:52:41 +00:00
Tim Potter
afa7300006 Changed instances of TRUE, FALSE to True, False as some compilers don't
have the first set of symbols.
(This used to be commit ad0cbfbd79)
2001-07-12 22:27:00 +00:00
Tim Potter
5f4a1aa3c3 Removed unused variable.
(This used to be commit 914e78f053)
2001-07-12 22:19:39 +00:00
Richard Sharpe
4f36668949 Fix a stupid error in passing options to CC under AIX
(This used to be commit b8b5603e0f)
2001-07-12 07:23:14 +00:00
Jeremy Allison
1f9a689f1f Toomas Soome's fix for joining a domain the old way.
Jeremy.
(This used to be commit 8db233c8b5)
2001-07-11 18:52:43 +00:00
Andrew Bartlett
5167978dfb Some minor doco on what the build_farm dir does
(This used to be commit 9bfc480bda)
2001-07-11 10:53:41 +00:00
Andrew Bartlett
c6fa884a4b I think this was just a typo... If there was some method to the madness then
please yell, but the build has been broken for long enough.

Andrew Bartlett
(This used to be commit 93ff9f6101)
2001-07-11 10:03:34 +00:00
Andrew Bartlett
7265d46388 This backs out my last change, which broke some of the finer points of RPC
coding :-).  I'll be more carfull in this area in future.

This does not back out the cli_login change, so domain logons still work, but
only for english.

Andrew Bartlett
(This used to be commit bd3c2a0cdd)
2001-07-11 04:27:03 +00:00
Richard Sharpe
be11842e79 A serious set of changes to build libsmbclienmt. Copied much ofthis from
CUPS.
(This used to be commit 7b392f9f68)
2001-07-11 01:58:37 +00:00
Christopher R. Hertel
bb8c1be67c Andrew B and I were commiting the same fix at the same time in different
trees.  This change simply brings HEAD and 2.2 in line with one another.
Otherwise the code would be differnt but the meaning would be the same,
which is awkward.
Chris 'fifty-seven commits per line changed' Hertel -)-----
(This used to be commit bbf14e2d4e)
2001-07-10 18:05:29 +00:00
Andrew Bartlett
f8f1d9d5c3 Fix tree breakage, the last change was entirly non-portable, and we already
have this nice variable to do exactly this...
(This used to be commit cad6f53433)
2001-07-10 17:14:52 +00:00
Andrew Bartlett
e4b6f641e8 This fixes security=domain, which has been broke since the big charset
changeover.  For my own sainity I have created a new function to fill out both
the header and buffer for a string in an RPC struct.  This DOES NOT take a
length argument, only the actual string to be placed.

The RPC code is currently littered with code that does init_uni_hdr() followed
immidiatly by init_unistr2(), and often the length argument is wrong.  (It was
for the code I changed, even before the charset stuff).  Another bug where we
made strings AT LEAST MAX_UNICODE_LEN long hid this bug.

This works for loopback connections to Samba, and can't be any more broke than
it was before :-).  (We had double and revese conversions, fun...).

In particular this makes us multibyte complient.

In any case, if there are no objections I will slowly convert other bits of
code to the same system.
(This used to be commit cf1d1cd9d6)
2001-07-10 17:02:02 +00:00
Christopher R. Hertel
973a78c2db Fix from John Malmberg. When I added the additional information to the
debug block that reports multiple query responses I did not notice that
the local answer_ip variable was only selectively set.

Chris -)-----
(This used to be commit 22ea0770d8)
2001-07-10 16:10:04 +00:00
Andrew Bartlett
809e32e8df Try to avoid clashes with OpenSSL when built --with-ssl, they also have md5.h,
but with a more 'interesting' licence.
(This used to be commit 9c9fe2674d)
2001-07-10 10:27:52 +00:00
Richard Sharpe
cb5de0e176 Change the order of the -fPIC and -KPIC tests to ensure that UnixWare
is handled.
(This used to be commit 7631bade9c)
2001-07-10 07:14:24 +00:00
Andrew Tridgell
575e609c3b much better handling of broken DNS servers
we no longer lookup our own name when we create a socket in
open_socket_in(). That makes things work much better with the
broken DNS server at VA
(This used to be commit a83d506e5c)
2001-07-10 02:53:48 +00:00
Andrew Tridgell
6baa40e3fe added winbind_exclude_domain() so smbd can tell the winbind client
code not to do lookups for a particular domain. This allows winbind to
operate on a Samba PDC
(This used to be commit d472ee3a69)
2001-07-10 02:28:17 +00:00
Tim Potter
65e373ec07 Removed unused local variables.
(This used to be commit fa1dfb681b)
2001-07-10 00:02:40 +00:00
Jean-François Micouleau
0a33cb45c1 implement:
LSA_ENUM_PRIVS
	LSA_PRIV_GET_DISPNAME
	LSA_ENUM_ACCOUNTS
	LSA_OPENACCOUNT
	LSA_ENUMPRIVSACCOUNT
	LSA_GETSYSTEMACCOUNT

It's a work in progress. nobody should expect it to work

	J.F.
(This used to be commit 3056357cd8)
2001-07-09 18:32:54 +00:00
Jean-François Micouleau
62d399f3cf add query user info level 20 (for RAS)
add query dominfo level 5
some cleanup, don't free talloced memory.
implement delete domain and local groups.

	J.F.
(This used to be commit 3f14dda2a2)
2001-07-09 18:25:40 +00:00
Jean-François Micouleau
db77d64a20 when converting ascii to unicode, if the ascii string is NULL, don't
convert it, rpcstr_push doesn't like it.
(This used to be commit a8006e6f3e)
2001-07-09 18:21:03 +00:00
Jean-François Micouleau
5512332cdb split the nt_drivers.tdb in 3 separate tdb files. Should speed-up lookups
J.F.
(This used to be commit c08e22713e)
2001-07-09 18:19:04 +00:00
Jean-François Micouleau
554a455d40 when retrieving by sid fill also the map.sid field
(This used to be commit f47797fa95)
2001-07-09 18:17:00 +00:00
Jean-François Micouleau
647a680b00 allow to rename an NT group
(This used to be commit 42fc4f4154)
2001-07-09 18:15:28 +00:00
Andrew Tridgell
282d295a37 fixed anonymous login in rpcclient
(This used to be commit b2a4a62b5e)
2001-07-08 20:28:17 +00:00
Andrew Tridgell
81393e6fda removed remnants of libtool
(This used to be commit abe01facea)
2001-07-08 19:18:06 +00:00
Andrew Tridgell
b4230fb93a improved the command line parsing of rpcclient
(This used to be commit 29d8f9bcb3)
2001-07-08 18:25:56 +00:00
Andrew Tridgell
955247fa38 allow winbindd to run as non-root so we can test it more easily
(This used to be commit 001129e215)
2001-07-08 18:25:19 +00:00
Andrew Tridgell
3ad0801dd3 formatting fix
(This used to be commit 3dc9fd076a)
2001-07-08 18:23:53 +00:00
Andrew Tridgell
03efd16d34 added sec_initial_uid() function so we can ask if a file is owned by
the initial uid
(This used to be commit 9449544428)
2001-07-08 18:22:46 +00:00
Andrew Tridgell
43dd159134 fixed the auto-initialisation of the iconv descriptors
(This used to be commit 66632782c5)
2001-07-08 18:22:04 +00:00