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

5844 Commits

Author SHA1 Message Date
Andrew Tridgell
5f1130746f if EILSEQ doesn't exist then use EIO. It doesn't really matter what
error code we use, as long as its not another one that iconv() can
give.
(This used to be commit 2097abb76c1845a69a7136af388cef09243ca066)
2001-07-22 10:50:21 +00:00
Andrew Tridgell
4951426613 changed the iconv interface to go via ucs2 for all conversions. This
fixes some problems wih some character sets and allows for using
internal charsets in conjunction with ionv charsets
this makes us slower but more correct. speed will come later.
(This used to be commit 594f84b4e39182dcf344c02dc0185376a2726395)
2001-07-22 07:38:32 +00:00
Andrew Tridgell
512351db92 switch from UCS2 to UCS-2LE
(This used to be commit e236a3e29e4af24b20ec6af357ce67abf82b4528)
2001-07-22 00:27:30 +00:00
Andrew Bartlett
9cbe6e8166 This patch fixes up a few issues where we would do lookups in the local system
on username we already know are perfectly valid, and in their final form.  In
particular we don't want to do a lookup for DOMAIN\nobody, it just does not
make sense, nor should we do map_username and the like if the username is as
specified in the vuid - we have done it already.

Andrew Bartlett
(This used to be commit 7cb517329b0fa2dec427a890a985c75cd467a3b0)
2001-07-21 02:23:19 +00:00
Andrew Bartlett
d0e0578c59 This should fix the build, I think tpot just missed the file for his CVS
commit.  It seems to work fine, but if its not the right fix then just yell.

Andrew Bartlett
(This used to be commit d5ebbe6c12313b717777f221af004104b4361d57)
2001-07-20 10:06:35 +00:00
Tim Potter
f905c74d9a ^$&%&*$&)% readline uses \n characters instead of letting the terminal wrap
the screen.  This mucks up expect something severe.  )-:

Don't use readline if the CLI_NO_READLINE environment variable is set.
(This used to be commit f0b7593ef54f8f093018ee2a8325e6f4422a4bbd)
2001-07-20 07:46:39 +00:00
Tim Potter
57933a9c6f In cli_lsa_lookup_sids() don't append a separator character between domain
and name if there is no name.
(This used to be commit e0ebbc9ae3277a5a389eef021f32509a017cbd4d)
2001-07-20 06:25:12 +00:00
Tim Potter
8db78af970 Started adding some help/usage info for rpcclient commands.
(This used to be commit 37052a1bcc5cd049918c3d5ac4c41c3a669290af)
2001-07-20 04:38:58 +00:00
Tim Potter
31fe984d2f Changed the cli_lsa_lookup_sids() function to unpack the domain and user or
group using rpcstr_pull_unistr2_fstring rather than pull_ascii_fstring (!!)
(This used to be commit 2accab2589d8c3decc489fb6af8d65d437a506e7)
2001-07-20 01:35:00 +00:00
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 e5b62b4961769e45bc377be6180ca61ef5f6c22e)
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 36413784aec5819c83e5e469ce4c7bb5d468e980)
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 5edfb53d7c3fe809256f080d5cd46ebc62c194fb)
2001-07-19 09:06:50 +00:00
Tim Potter
cdcf646c65 #ifdef'ed out some unused functions.
(This used to be commit ab5ccce2edd6118db0389701ff9e325ee1f818c7)
2001-07-19 07:44:59 +00:00
Tim Potter
1253b8ea43 Reran autoconf.
(This used to be commit fa4901eaf23004f16c529037491c1d809efb2905)
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 c2c1f2027e6e623bba59610e3aa41618773e6361)
2001-07-18 21:50:20 +00:00
Andrew Tridgell
45635a4a79 removed some unnecessary code
(This used to be commit 1436c9f424abbac2752e952172ddbdf15ec73f91)
2001-07-18 21:48:36 +00:00
Richard Sharpe
aefa7e1c3f Fix the PIC flag for IRIX
(This used to be commit 6a7645f90b8c89fa5a74c0f2eb7667228f6d8c06)
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 d7023b881a3e36199f20dba36bd930454d5131cb)
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 0b13f495b31887d526b46a48a812fa3fd418ce8e)
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 d7da59f54eed69d50490205d6233bf4801c16998)
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 f591ca9f25c54d3cdd0b76df472411e44c95ea47)
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 8a2f6fbacd275acc7b356169f4022df4860a813e)
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 175c6406925cbd798c3aa049912ab63802f44de4)
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 34244c2a8d02d09b60dfba30b239b9764b60d35a)
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 7ebf284ef7597ee347deb5245d6ba222a102f55d)
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 956e2a4e3783beec13b1baddb6384deac60389a9)
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 5aa3b18f69646669c8548d1f49214a47dcb39a36)
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 065d8f69d5f4a8ffc062bc5592386ee1ac652969)
2001-07-16 12:16:48 +00:00
Richard Sharpe
57673d585a A few tweaks around linking libsmbclient
(This used to be commit 83334fc474008d9f338204e73eacc5665e26bf0c)
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 ad0cbfbd790bc5d6003ffcff2835d82fb0140625)
2001-07-12 22:27:00 +00:00
Tim Potter
5f4a1aa3c3 Removed unused variable.
(This used to be commit 914e78f05356c66665ede6948ec18814c2c2c503)
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 b8b5603e0f789014a1237c358db478cf6211e215)
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 8db233c8b5866df2b3f9f4ed64e7de95807cf371)
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 9bfc480bda8ee3478d17d657cf2fc1a846707130)
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 93ff9f6101b8569aa375ac805a5efd94bbaa19f2)
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 bd3c2a0cddc71daa4165e1a0916208d0c650d55a)
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 7b392f9f6873c3a1ddd26f619f7827e0a9ce180a)
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 bbf14e2d4e054e2af4f9cbbb05b86f6ac41084c6)
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 cad6f53433a9345c06ae94c5ef63434e72a2daea)
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 cf1d1cd9d6362f6e32ed9c2f6d2f6f25c47705ad)
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 22ea0770d87b2faece2e5dfc098ccf27f4da155f)
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 9c9fe2674de0f35da67ba2c3b59861f087932934)
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 7631bade9c52c7ebde0c7170a5d4d4ade6bb723c)
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 a83d506e5cd6cef23298211b2fe4e0e25c9e5f48)
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 d472ee3a690fb6db03fd4536e4093a18fc37ddbb)
2001-07-10 02:28:17 +00:00
Tim Potter
65e373ec07 Removed unused local variables.
(This used to be commit fa1dfb681b2c7e2de59d6b439ceea738d6f11aff)
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 3056357cd8d4b2460f73ba8a8931a143f07fa2a6)
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 3f14dda2a21850edfd540be2624867e5f70a382c)
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 a8006e6f3eb1e06f4d48727de31e1229d6eef58a)
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 c08e22713ea4ddbc4951dc8dcc40609eb0039ddb)
2001-07-09 18:19:04 +00:00