1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-11 17:58:16 +03:00

705 Commits

Author SHA1 Message Date
Andrew Bartlett
35eefe7a19 Samba dependency hell claim's another victim...
Back out last night's patch to to reduce -l dependencies until we can ensure
that *all* configurations/platforms work...

Andrew Bartlett
-
Jim McDonough
521eed1277 Hmm, had too many objects added last time in the nmbd changes. Don't
need all of them.  Hopefully this will fix a few builds.
-
Andrew Bartlett
d5f2e33b34 Patch from Steve Langasek <vorlon@netexpress.net> to split up our -l
dependencies.  This benifits packagers (like debian) becouse then our client
code won't have references to 'server only' libraries.

(In particular, it removes the client dependency on CUPS, which was raised in
a debian bug report).

Andrew Bartlett
-
Jim McDonough
ef984b9961 Ooops...forgot to put this in with the new nmbd samlogon response code.
THis should fix the build.
-
Tim Potter
cb946b5dad Moved rpc client routines from libsmb back to rpc_client where they belong. -
Tim Potter
a29a86f5b5 Add lib/popt_common.o -
Andrew Tridgell
a302e31519 partial apply of samba-patches 960 -
Andrew Tridgell
06d8549196 fixed logfile location to honor configure
samba-patches 966
-
Gerald Carter
a43d9788fa virtual registry framework with initial printing hooks. -
Gerald Carter
9772acd9ad splitting off storage/retrieval routines for abstracting the
registry view front end.  Now to plug in the various hooks.
-
Andrew Bartlett
62c56f9724 Make smbmnt a standalone program from a linker point of view. Hopefully this
will make it easier to prove this package correct from an audit point of view.

smbumount to follow, but it uses pstrcpy() so I'll need to decide what to do
with that.

Andrew Bartlett
-
Richard Sharpe
d3fdce07ab Commit Tom Jansen's changes to head. -
Andrew Bartlett
5a2a6f1ba3 Break up the passdb objects (to allow RPC clients to link without brining in
*.o) and implment new enum_dom_users code in the SAMR RPC subsystem.

Incresingly, we are using the pdb_get_{user,group}_sid() functions, in the
eventual hope that we might one day support muliple domains off a single
passdb.  To extract the RID, we use sid_peek_check_rid(), and supply an
'expected' domain SID.

The id21 -> SAM_ACCOUNT and id23 -> SAM_ACCOUNT code has been moved to
srv_samr_util.c, to ease linking in passdb users.

Compatiblity code that uses 'get_global_sam_sid()' for the 'expected' sid is in
pdb_compat.c

Andrew Bartlett
-
Andrew Tridgell
4eda180149 fixed a makefile syntax error that was breaking the build on some
systems
-
Jeremy Allison
3603cd4947 Proper merge of all the working printing stuff from APPLIANCE_HEAD.
Now let's keep this in sync !
Jeremy.
-
Gerald Carter
fea895c5c4 more merges from SAMBA_2_2 -
Andrew Bartlett
184be390a8 And fix another missing ubiqx...
(Didn't have smbmnt compiled in originally, so it missed my tests)
-
Andrew Bartlett
987633021f Fix the smbmnt compile. -
Andrew Bartlett
edb41dad2d Break up samba's object dependencies, and its prototype includes.
Now smbclient, net, and swat use their own proto files - now the global
proto.h

The change to libads/kerberos.c was to break up the dependency on secrets.c -
we want to be able to write an ADS client that doesn't need local secrets.

I have other breakups in the works - I will remove the dependency of
rpc_parse on passdb (and therefore secrets.c) shortly.

(NOTE:  This patch does *not* break up includes.h, or other such forbidden
actions).

Andrew Bartlett
-
Gerald Carter
68841ae762 merge of SONAMEFLAG stuff from SAMBA_2_2. If I stepped on something
here because HEAD does it differently, someone let me know.  This looks ok
and compiles fine from what I can tell.
-
Andrew Bartlett
bda8f12ff5 When adding popt to an application, you need to ensure it builds on non-popt
platforms :-)
-
Andrew Bartlett
a07f2c08ff Add the missing makefile from previous commit -
Andrew Bartlett
743afd96cb Move the code from lib/util_sid.c that deals with the global_sam_sid into
a file that is linked with the passdb.

This is to avoid linking insanity when this global becomes a self-initing
function.
-
Gerald Carter
24f127a58f enable building of shared libsmbclient -
Andrew Bartlett
fa67e4626b Given Jeremy's positive response, and a lack of one from tpot, I'll commit
this:

More code cleanup - this lot a bit more dodgy than the last:

The aim is to trim pwd_cache down to size.  Its overly complex, and a
pain to deal with.  With a header comment like this:

'obfusticaion is planned'

I think it deserved to die (at least partly).

This was being done to allow 'cli_establish_connection' to die - its
functionality has been replaced by cli_full_connection(), which does
not duplicate code everywhere for creating names etc.

This also removes the little 'init' fucntions for the various pipes,
becouse they were only used in one place, and even then it was dodgy.

(I've reworked smbcacls not to use anonymous connections any more, as
this will (should) fail with a 'restrict anonymous' PDC).

This allowed me to remove cli_pipe_util.c, which was calling
cli_establish_connection.

tpot:  I'm not sure what direction you were going with the client stuff,
and you may well have been wanting the init functions.  If thats the case,
give me a yell and I'll reimplement them against cli_full_connection.

Andrew Bartlett
-
Andrew Bartlett
d0ea70fce5 Fix a silly memory (getpnam_alloc()) leak spotted by Elrond, and move
the DATA_BLOB code into its own file.

It would be nice to go over some of the other util.c functions, and check
that we still use them all, and that we use them in more than one place.

Andrew Bartlett
-
Andrew Bartlett
00ef4aad88 Remove unused files.
The size of samba going down for once :-)

Andrew Bartlett
-
Andrew Bartlett
c28668068b A few things in this commit:
cleanup some of the code in net_rpc_join re const warnings and
fstrings.

Passdb:

Make the %u and %U substituions in passdb work.
This is done by declaring these paramters to be 'const' and doing
the substitution manually.  I'm told this is us going full circle,
but I can't really see a better way.

Finally these things actually seem to work properly...

Make the lanman code use the pdb's recorded values for homedir etc
rather than the values from lp_*()

Add code to set the plaintext password in the passdb, where it can
decide how to store/set it.  For use with a future 'ldap password
change' option, or somthing like that...

Add pdb_unix, so as to remove the 'not in passdb' special cases from the
local_lookup_*() code.  Quite small, as it uses the new 'struct passwd ->
SAM_ACCOUNT' code that is now in just one place.  (also used by pdb_smbpasswd)

Other:
Fix up the adding of [homes] at session setup time to actually pass
the right string, that is the unix homedir, not the UNC path.

Fix up [homes] so that for winbind users is picks the correct name.
(bad interactions with the default domain code previously)

Change the rpc_server/srv_lsa_nt.c code to match NT when for the
SATUS_NONE_MAPPED reply:  This was only being triggered on
no queries, now it is on the 'no mappings' (ie all mappings failed).
Checked against Win2k.

Policy Question:  Should SID -> unix_user.234/unix_group.364 be
considered a mapping or not?  Currently it isn't.

Andrew Bartlett
-
Andrew Bartlett
b04561d3fd This removes --with-ssl from Samba.
This option was badly maintained, useless and confused our users and
distirbutors.  (its SSL, therfore it must be good...)

No windows client uses this protocol without help from an SSL tunnel.

I can't see any reason why setting up a unix-side SSL wrapper would
be any more difficult than the > 10 config options this mess added
to samba in any case.

On the Samba client end, I think the LIBSMB_PROG hack should be
sufficient to start stunnel on the unix side.  We might extend this
to take %i and %p (IP and port) if there is demand.

Andrew Bartlett
-
Martin Pool
4d202c1999 Makes winbindd_proto handling consistent with the other header files,
so that at least "make clean; make all" doesn't fail.

It's still not safe for parallel builds, i.e. "make clean; make -j3
all" will probably crash, but "make clean; make proto && make -j3 all"
seems OK.  I'm not sure if it is possible to solve that and still
support ancient non-GNU versions of Make.
-
Gerald Carter
fbefb479fb more solaris compile fixes (for smbwrapper) -
Gerald Carter
090b94250b merge from SAMBA_2_2: remove -symbolic from pam_smbpass linker flags -
Gerald Carter
19b9b50d90 pidfile merge from SAMBA_2_2 (including --with-fhs) and a few other minor things; compiles and shouldnt break, but needs testing -
Martin Pool
e5544de998 Fix $MAKE -
Martin Pool
a615811f57 Two small fixes for "make proto": wbrepld was never getting rebuilt
because it wasn't killed by delheaders; and there was a race in
delheaders with make -j.
-
Andrew Tridgell
c0feff97ee a new "dual daemon" operating mode for winbindd
this mode improves the response time of winbindd by having a
background process update the cache while the forground process
responds to queries from cache.

You can enable this mode using the -B command line option. It is quite
experimental, which is why it is not the default.
-
Andrew Bartlett
3261a210dd Fix the build on platforms that use our internal popt. -
Andrew Tridgell
858fa7efc3 - added a mangling test suite that measures the collision rate on
randomised filenames

- fixed several mangling bugs that the test suite pointed out
-
Andrew Tridgell
bb173c1a7e this adds a completely new hash based mangling scheme
the hash for this scheme is *much* larger (approximately 31 bits) and
the code is written to be very fast, correctly handling multibyte
while not doing any actual multi-byte conversions in the vast majority
of cases

you can select this scheme using "mangling method = hash2", although I
may make it the default if it works out well.
-
Andrew Tridgell
be23d87a17 This split the mangling code up to allow for the possibility of multiple
mangling implementation, selectable using "mangling method = " in smb.conf

It also tidies the interface a little, although it is still nasty.
-
Jim McDonough
f2a0e56b3c add utils/net_help.c to bin/net build -
Tim Potter
dbb4dfcef7 Make bin/nsstest as part of torture target. -
Jim McDonough
a1cdcdb138 Add libads/ldap_user.c to build for ads user management. -
John Terpstra
32f292cc58 Added build option for "everything". Changed build options for libsmbclient. -
Herb Lewis
205399dc17 merge winbindd WINS changes from 2.2 -
Martin Pool
39a6b12fdc Roll back proto.h changes -- to hard to do them portably. Leave
Herb's installdat change in.
-
Herb Lewis
c86d266d6e cut and paste inserted spaces instead of tab. Some versions of make don't
like this
-
Herb Lewis
4af0c7a93f make install should also install the default dat files from codepages
directory so we don't keep getting these stupid error messages about
incorrect size for valid.dat upcase.dat and lowcase.dat
-
Martin Pool
aa27993245 Take out autobuild dependency on proto.h; breaks some proprietary Makes. -
Martin Pool
87f2e3c30d Refactor for systems like Solaris that cannot handle wildcards on the
right side of a dependency line.
-