1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

1319 Commits

Author SHA1 Message Date
Andrew Bartlett
f607197054 r1498: (merge from 3.0)
Rework our random number generation system.

On systems with /dev/urandom, this avoids a change to secrets.tdb for every fork().

For other systems, we now only re-seed after a fork, and on startup.
No need to do it per-operation.  This removes the 'need_reseed'
parameter from generate_random_buffer().

This also requires that we start the secrets subsystem, as that is
where the reseed value is stored, for systems without /dev/urandom.

In order to aviod identical streams in forked children, the random
state is re-initialised after the fork(), at the same point were we do
that to the tdbs.

Andrew Bartlett
(This used to be commit b97d3cb2efd68310b1aea8a3ac40a64979c8cdae)
2007-10-10 12:57:35 -05:00
Stefan Metzmacher
71d28b8265 r1497: add forward declaration for struct auth_session_info
(fix compiler warning)

metze
(This used to be commit 65147f5aa2a56220a387876d990a546beb93a2d7)
2007-10-10 12:57:35 -05:00
Stefan Metzmacher
ad8d0190f1 r1494: fix debug message
metze
(This used to be commit 463982bf3f37bac67e1aaa488e4142d0ecc23307)
2007-10-10 12:57:35 -05:00
Stefan Metzmacher
45a85bdd35 r1486: commit the start of the generic server infastructure
the idea is to have services as modules (smb, dcerpc, swat, ...)

the process_model don't know about the service it self anymore.

TODO:
- the smbsrv should use the smbsrv_send function
- the service subsystem init should be done like for other modules
- we need to have a generic socket subsystem, which handle stream, datagram,
  and virtuell other sockets( e.g. for the ntvfs_ipc module to connect to the dcerpc server
  , or for smb or dcerpc or whatever to connect to a server wide auth service)
- and other fixes...

NOTE: process model pthread seems to be broken( but also before this patch!)

metze
(This used to be commit bbe5e00715ca4013ff0dbc345aa97adc6b5c2458)
2007-10-10 12:57:35 -05:00
Stefan Metzmacher
9b4ac4d81e r1483: build dynconfig.c also with PICFLAGS
metze
(This used to be commit fef597a76c0b0796ca834a31550cf279babe96fc)
2007-10-10 12:57:34 -05:00
Stefan Metzmacher
6b9d521cf0 r1482: today I saw DCERPC_AUTH_TYPE 16(0x10)
and it seems to be raw krb5, but I need to do some tests

metze
(This used to be commit 01612927902ed5e4d0109fec453307cdcb95336f)
2007-10-10 12:57:34 -05:00
Stefan Metzmacher
bfd8bded8e r1481: add idl file and torture test dummies
for DRSUapi (the Active Directory Replication Protocol)

I'll try to fill the idl file as part of a study project
together with some other students...

metze
(This used to be commit 3fc9abcad712c4cc5c9879df0acaa5a19a3d8718)
2007-10-10 12:57:34 -05:00
Stefan Metzmacher
fbdddf0cd9 r1480: gwsam has unresolved symbols in it
(on my SuSE 9.1)

so I disable it for now

metze
(This used to be commit 32d6f86d43394fea11ee5059c884dcaf2736747b)
2007-10-10 12:57:34 -05:00
Stefan Metzmacher
4a3e28a102 r1479: print out domain too
(This used to be commit 2758c26ac96a62d7e0853e5d5fa95925ddce3420)
2007-10-10 12:57:34 -05:00
Andrew Bartlett
a92d87f1f7 r1476: Don't print messages about the CCACHE not being found - this is normal.
Andrew Bartlett
(This used to be commit 30d88580efe45dc792f8d5c04f4abe0497d1551c)
2007-10-10 12:57:34 -05:00
Andrew Bartlett
ed03516c91 r1475: More kerberos work
- We can now connect to hosts that follow the SPNEGO RFC, and *do not*
give us their principal name in the mechListMIC.
 - The client code now remembers the hostname it connects to

- We now kinit for a user, if there is not valid ticket already

- Re-introduce clock skew compensation

TODO:
 - See if the username in the ccache matches the username specified
 - Use a private ccache, rather then the global one, for a 'new' kinit
 - Determine 'default' usernames.
  - The default for Krb5 is the one in the ccache, then $USER
  - For NTLMSSP, it's just $USER

Andrew Bartlett
(This used to be commit de5da669397db4ac87c6da08d3533ca3030da2b0)
2007-10-10 12:57:34 -05:00
Andrew Bartlett
39b1201584 r1474: It is useful if talloc_strdup() behaves like strdup()
- NULL in, NULL out

Andrew Bartlett
(This used to be commit 2cc0b3a2f1785c53268f018999a87c26539fd4a6)
2007-10-10 12:57:33 -05:00
Volker Lendecke
3a6f761eb0 r1470: Get the smb_trans2 structure out of the rap_cli_call struct.
Initial attempt at RAP server infrastructure. Look at rap_server.c for the
dummy functions that are supposed to implement the core functionality.

ipc_rap.c contains all the data shuffling. _rap_shareenum and _rap_serverenum2
in ipc_rap.c are (I think) regular enough to be auto-generated.

I did not test all the corner cases yet, but nevertheless I would like some
comments on the general style.

Volker

P.S: samba-3 smbclient now doesn't freak out anymore, although the results are
not entirely correct :-)
(This used to be commit 08140cc1a838b4eaa23c897b280a46c95b7ef3e0)
2007-10-10 12:57:33 -05:00
Stefan Metzmacher
bff4e6963c r1469: fix a segfault and compiler warning,
introduced by the "compiler warning fix" in rev 1460...

metze
(This used to be commit ffb7ba35cdb2fb19b8271a3585eef075948bef9c)
2007-10-10 12:57:33 -05:00
Stefan Metzmacher
e5173cfd3a r1467: disable gensec_krb5 by default till abartlet
add the kinit code

metze
(This used to be commit 9a876be76cee3983676d8c89549162b5c4eba8b0)
2007-10-10 12:57:33 -05:00
Andrew Tridgell
7193ed3998 r1466: the name "oid" is taken by some silly system headers - avoid it in our code
(This used to be commit ea5659b051f95402441e69ba4ce5aea1ed6f5c86)
2007-10-10 12:57:33 -05:00
Andrew Tridgell
1d5ff7fc31 r1465: always do a full C prototype, even if its only (void).
this declaration:

int foo();

is *not* the same as this one:

int foo(void);

the first means "I don't know what arguments it takes". The second
means "it takes no arguments"
(This used to be commit 6724932810772a10e7e51d2f6f2b106c02eafb73)
2007-10-10 12:57:33 -05:00
Andrew Tridgell
fd7ac5ad4c r1464: the recent build changes completely lost the speed advantage of using
PCH (in fact, it meant that PCH was a slowdown, not a speedup). To
gain speed with PCH you must ensure that the .gch file is compiled
with _exactly_ the same options as the normal object files.

this fixes the .gch build options
(This used to be commit 910ca1748648a58daaea6a04d5c96e6c62f79c40)
2007-10-10 12:57:32 -05:00
Stefan Metzmacher
39c3f22034 r1463: fix the krb5 build
metze
(This used to be commit fc8d00b8ab28535da4ec0b7e6931bbf402a37013)
2007-10-10 12:57:32 -05:00
Andrew Bartlett
88002b851b r1462: GENSEC Kerberos and SPENGO work:
- Spelling - it's SPNEGO, not SPENGO
 - SMB signing - Krb5 logins are now correctly signed
 - SPNEGO - Changes to always tell GENSEC about incoming packets, empty or not.

Andrew Bartlett
(This used to be commit cea578d6f39a2ea4a24e7a0064c95193ab6f6df7)
2007-10-10 12:57:32 -05:00
Andrew Bartlett
b62e6f1ec1 r1461: ntlm_check.c is a server-side peice of code, so it belongs in AUTH.
Andrew Bartlett
(This used to be commit 67ac9600664e93aa2fe9426127313b57ddaec2cf)
2007-10-10 12:57:32 -05:00
Andrew Bartlett
e053c719ab r1460: Avoid a compile warning.
Andrew Bartlett
(This used to be commit 10a973da88441b255eda7cbc263ef5c4f2f0fcae)
2007-10-10 12:57:32 -05:00
Andrew Bartlett
196860f948 r1458: Add a new configure option, to make it possible to both find errors,
and compile with gtk.

The --enable-developer option was just too noisy with buggy GTK headers.

Andrew Bartlett
(This used to be commit 54c3d98baf3d4f4b6fe40201b50922caf7364285)
2007-10-10 12:56:58 -05:00
Andrew Bartlett
df290b04df r1457: Add the GSSAPI layer to our gensec_krb5 code.
Andrew Bartlett
(This used to be commit 893a9a3865d7046d8b1cb0418aaf48b88beefa05)
2007-10-10 12:56:58 -05:00
Andrew Bartlett
dfeb4dd36f r1456: Rename this parameter to avoid shadowing a badly-named GTK global.
Andrew Bartlett
(This used to be commit 39d8949d25793e2602e0ab5ec37e213f9ccae658)
2007-10-10 12:56:58 -05:00
Jelmer Vernooij
805ebe1084 r1455: More Gtk+ updates:
- Start working on 'gwsam'
 - Add GtkSelectDomainDialog and GtkSelectHostDialog
(This used to be commit bea47671aa791f3c4d22263f9444aea1a73f47f1)
2007-10-10 12:56:58 -05:00
Volker Lendecke
ec3a86254b r1454: Today is the day of broken builds, now I get my share ... :-)
Add a missing file.

Volker
(This used to be commit 2bc6147c118a61f7f37f3414cce3df44625ade65)
2007-10-10 12:56:58 -05:00
Volker Lendecke
25718e02ab r1453: Change the RAP client to use the ndr routines for moving bytes around.
Volker
(This used to be commit 1506da85b9e53c71a470b1ef0579e0096451b5a7)
2007-10-10 12:56:58 -05:00
Andrew Bartlett
02262db2ed r1452: Thanks to Volker for spotting that this code was certainly not tested...
(make sure to actually return the result).

Andrew Bartlett
(This used to be commit 8d449bbe2b9aa29315e894be1400a9475ef99468)
2007-10-10 12:56:58 -05:00
Jelmer Vernooij
fb8ae4518a r1451: More missing files...
(This used to be commit 7e9884799e4f450b9693b6e29d7490288ebc969e)
2007-10-10 12:56:58 -05:00
Jelmer Vernooij
453e1e79fb r1450: Oops.. Missing files :-)
(This used to be commit eaa2940ba039f59e13d44c6e2dda919ed8e388f5)
2007-10-10 12:56:57 -05:00
Jelmer Vernooij
396a729686 r1449: Use the config system somewhat better in libcli/auth
(This used to be commit 69de0d95c585c1a73072e921884cbd427c160176)
2007-10-10 12:56:57 -05:00
Andrew Bartlett
f9ddbad006 r1448: Indent this so proto doesn't pick it up.
Andrew Bartlett
(This used to be commit 1164be10af8e1b47824df391196ec37c395a4040)
2007-10-10 12:56:57 -05:00
Andrew Bartlett
7980759352 r1447: Fix compile.
Andrew Bartlett
(This used to be commit b97ea8a63f044d2c20781c876575978cc4725285)
2007-10-10 12:56:56 -05:00
Andrew Bartlett
59a3aece81 r1446: Another funciton to avoid in proto.h
Andrew Bartlett
(This used to be commit 310a570936c0d2d5af168aeca1b33206622d8355)
2007-10-10 12:56:56 -05:00
Andrew Bartlett
f17eb8f2a9 r1445: Ensure get_auth_data_from_tkt doesn't get into proto.h
Andrew Bartlett
(This used to be commit 159c234589e8e148180217f9ef4853b3031877db)
2007-10-10 12:56:56 -05:00
Andrew Bartlett
bd38d43214 r1443: More changes towards Kerberos in Samba4's GENSEC.
The kerberos context is now tied in life to the GENSEC context.

Andrew Bartlett
(This used to be commit 64e99170c3b53a14d7f8d29cf78283f2bc22c1f7)
2007-10-10 12:56:56 -05:00
Andrew Bartlett
0f3f9090fa r1442: I was going to rename kerberos.c -> kerberos_kinit.c, but didn't.
Fix config.mk...

(oh, and this file is somehow marked as binary...)

Andrew Bartlett
(This used to be commit 3e9aa67e3fdd9be18bdead6d45a982d30e5fd5b4)
2007-10-10 12:56:56 -05:00
Andrew Bartlett
b615397325 r1441: Indentation and comment fixes.
Andrew Bartlett
(This used to be commit 231e505dea9e9aca28eb336bcbcfb2b7b83c089c)
2007-10-10 12:56:56 -05:00
Andrew Bartlett
b0d94c8e7d r1440: GENSEC improvements:
- Infrustructure for kerberos
 - Don't segfault on un-implemented backend functions
 - Add comments.

Andrew Bartlett
(This used to be commit 1c31aa42710421917428d6ba86328ea5179751bd)
2007-10-10 12:56:56 -05:00
Andrew Bartlett
43e7d4109f r1439: Once we are authenticated, always return NT_STATUS_OK. (Makes SPENGO
easier to code, as it may return an 'ok' with an empty blob).

Andrew Bartlett
(This used to be commit e48557158ed99eee7d3ef8231c629bbd14cda9d3)
2007-10-10 12:56:56 -05:00
Andrew Bartlett
47fc62a097 r1438: Record the principal name we are sent in the SPENGO mechListMIC in a
seperate char *, not a DATA_BLOB.

This allows us to tell if we were sent a string here, or a real MIC.
(This used to be commit 06b997c826e3ec00e0528da800e3eae0e3497a54)
2007-10-10 12:56:56 -05:00
Andrew Bartlett
b0d61c8b42 r1437: Intermediate commit of krb5 for GENSEC.
The session key in the client is wrong, we don't do signing/sealing
and we are sending raw Kerberos, not GSSAPI.

But it's a start, and if we continue to have to call Krb5 directly,
this will be the basis.

I also intend to provide an alternate implementation, using just
GSSAPI.

Andrew Bartlett
(This used to be commit eb0dd4a821dc3dbe370aea9a9c9fb05cf2592e4d)
2007-10-10 12:56:56 -05:00
Andrew Bartlett
74508c718b r1436: Move GENSEC across to config.mk
Andrew Bartlett
(This used to be commit 2de3a3082344fd292b1084a73a332549d6b2e25d)
2007-10-10 12:56:55 -05:00
Andrew Bartlett
30c15f37cc r1435: talloc_steal is very useful - add a function to do it with a DATA_BLOB
Andrew Bartlett
(This used to be commit 66d6e2611084d579a20833a4c0daa5d72ef9393c)
2007-10-10 12:56:55 -05:00
Andrew Bartlett
462d27d7e6 r1434: Merge this function in from Samba 3.0, but use a mem_ctx rather than
an fstring.

Andrew Bartlett
(This used to be commit e8de8905b2f328395d71afdd73c77301c9366a66)
2007-10-10 12:56:55 -05:00
Jelmer Vernooij
a25651cd22 r1433: Properly use GtkTreeView:
- When a key is selected the values are immediately shown in gregedit
 - Only allow deleting jobs if one is selected.
(This used to be commit afb5f4d765cb15ba8824d8db19879bad83829561)
2007-10-10 12:56:55 -05:00
Jelmer Vernooij
e3fd2d0492 r1432: - Move the various Gtk-specific parts from the registry code into a directory gtk/
- Move common "Samba-Gtk" code into gtk/common/ ("Connect to RPC pipe"-dialog, etc)
- Add a new utility 'gwcrontab' that can currently list, delete and add 'atsvc' jobs. It still displays times and dates as integers though, will fix that later.

Some screenshots available at:
 http://samba.org/~jelmer/gwcrontab/
(This used to be commit d321cf20f1f0ff33603b013c26d370669f255868)
2007-10-10 12:56:55 -05:00
Stefan Metzmacher
efb010202f r1429: enable spnego in smbclient too.
metze
(This used to be commit ae2e6b58629397d75a3e446ff0c50b594d029206)
2007-10-10 12:56:55 -05:00
Andrew Bartlett
102f5bc17d r1426: Fix some of my silly compile errors...
Andrew Bartlett
(This used to be commit c283837556109b9392a8cdcd867e5ae0dac1509b)
2007-10-10 12:56:55 -05:00