1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

642 Commits

Author SHA1 Message Date
Gerald Carter
c384f2dcc7 * set winbind cache time to 5 minutes
* quit obsessing over the sequence number so much
* share the updated sequence number between parent
  and child winbindd processes in dual mode
(This used to be commit 6f99cafa95)
2003-06-03 16:02:33 +00:00
Tim Potter
ab222b3700 Fix extra arg for cm_get_netlogon_cli()
(This used to be commit a0c3f1d31c)
2003-05-27 02:28:13 +00:00
Tim Potter
8e39d04f16 Whoops - tried to merge to wrong branch for bug #60 merge. This redos
the original fix.
(This used to be commit 711f65bee0)
2003-05-27 01:07:13 +00:00
Tim Potter
161a47277b Formatting syncup.
(This used to be commit f4b050932a)
2003-05-26 23:56:05 +00:00
Tim Potter
29f306039e Merge of fix for bug #60.
(This used to be commit 0583dc358e)
2003-05-26 23:55:30 +00:00
Tim Potter
1f84a14b0b Bug 83: fixes for building when $srcdir != $builddir from David Lee
<t.d.lee@durham.ac.uk>
(This used to be commit e48a8b5e9c)
2003-05-23 01:59:43 +00:00
Tim Potter
2927ab13da Updates for AIX winbind client from Stephen Roylance.
(This used to be commit 3983f3a1f3)
2003-05-19 00:42:28 +00:00
Jeremy Allison
a62a29c2df Fix for winbindd segfault (finally I think this is the correct one :-)
from "Roylance, Stephen D." <SROYLANCE@PARTNERS.ORG>.
Jeremy.
(This used to be commit 459fb6519b)
2003-05-15 18:25:03 +00:00
Jeremy Allison
05799e60fc Ok, try and fix this correctly... Simplify the nasty loop logic.
Jeremy.
(This used to be commit c19599a562)
2003-05-14 21:28:54 +00:00
Jeremy Allison
1904a21193 Fix winbindd coredump. Remember to set a ** pointer to null before
searching and not finding otherwise we return a valid looking pointer
that was whatever crap was on the stack.
Jeremy.
(This used to be commit 5d3ac0e39b)
2003-05-14 20:48:48 +00:00
Simo Sorce
c823b191ab And finally IDMAP in 3_0
We really need idmap_ldap to have a good solution with ldapsam, porting
it from the prvious code is beeing made, the code is really simple to do
so I am confident it is not a problem to commit this code in.

Not committing it would have been worst.
I really would have been able to finish also the group code, maybe we can
put it into a followin release after 3.0.0 even if it may be an upgrade
problem.

The code has been tested and seem to work right, more testing is needed for
corner cases.

Currently winbind pdc (working only for users and not for groups) is
disabled as I was not able to make a complete group code replacement that
works somewhat in a week (I have a complete patch, but there are bugs)

Simo.
(This used to be commit 0e58085978)
2003-05-12 18:12:31 +00:00
Jelmer Vernooij
0914e541f5 Reverse previous patch from Stefan and me after comments by Andrew Bartlett
(This used to be commit d817eaf0ec)
2003-05-10 11:49:51 +00:00
Jelmer Vernooij
c507ebe567 Patch from metze and me that adds dummy smb_register_*() functions so
that is now possible to, for example, load a module which contains
an auth method into a binary without the auth/ subsystem built in.
(This used to be commit 74d9ecfe2d)
2003-05-10 10:53:48 +00:00
Volker Lendecke
d1da999e0a This puts real netlogon connection caching to winbind. This becomes
important once we start doing schannel, as there would be a lot more
roundtrips for the second PIPE open and bind. With this patch logging
in to a member server is a matter of two (three if you count the
ack...) packets between us and the DC.

Volker
(This used to be commit 5b3cb7725a)
2003-05-08 08:02:52 +00:00
Tim Potter
45f8fd3fa9 There appears to be no reason why we have to execute the
initialisation code in winbindd_init_common() after the fork when
running in dual daemon mode.

The only tricky bit is we have to run a tdb_reopen_all() somewhere in
the child to avoid tdb corruption.

Fixed bug #60.
(This used to be commit 25e55aca0f)
2003-05-06 02:32:47 +00:00
cvs2svn Import User
d08844d97b This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit f1e5990657) 2003-05-03 05:51:55 +00:00
Simo Sorce
8b232cbb3e fixes to *_util.c files
add winbindd_passdb backend
this makes it possible to have nua accounts on security = user servers to
show up in unic through nss_winbind.so

the problem is that we do not have group support, so nss group support is
not very good at this time (read: totally absent)

we NEED group support in passdb
(This used to be commit 921215cf4b)
2003-05-03 01:29:18 +00:00
Simo Sorce
7264b9df8f proper wellknown sids initialization at startup
(This used to be commit 568feee897)
2003-05-01 14:08:00 +00:00
Simo Sorce
75cace04fd *id_to_*id call reshape to return NTSTATUS errors
plus internal fixes
1st stage
(This used to be commit 6d036761e5)
2003-05-01 11:47:48 +00:00
Gerald Carter
4ae2e47b93 remove convert_smbpasswd and addtosmbpass from tree; people can get them from 2.2. if they still need them
(This used to be commit 237857a760)
2003-04-29 15:27:06 +00:00
Simo Sorce
c737b1f758 make winbind use idmap as well.
change idmap_init call

removed ldap backend for winbind idmap, seem it had problems anyway and it
have to be reworked to work with idmap without calling winbind code.

simo
(This used to be commit 9d7d007443)
2003-04-27 12:07:20 +00:00
Andrew Bartlett
1a9394195d Merge HEAD's winbind into 3.0.
This includes the 'SIDs Rule' patch, mimir's trusted domains cacheing code,
the winbind_idmap abstraction (not idmap proper, but the stuff that held up
the winbind LDAP backend in HEAD).

Andrew Bartlett
(This used to be commit d4d5e6c2ee)
2003-04-23 11:54:56 +00:00
Gerald Carter
f2f1df6905 update copyright notice that is written to the logs
(This used to be commit 5f1fe04a87)
2003-04-22 17:32:24 +00:00
Gerald Carter
1446682565 update copyright notice that is written to the logs
(This used to be commit 6735a9889f)
2003-04-22 17:32:02 +00:00
Andrew Bartlett
f071020f5e Merge from HEAD - save the type of channel used to contact the DC.
This allows us to join as a BDC, without appearing on the network as one
until we have the database replicated, and the admin changes the configuration.

This also change the SID retreval order from secrets.tdb, so we no longer
require a 'net rpc getsid' - the sid fetch during the domain join is sufficient.
Also minor fixes to 'net'.

Andrew Bartlett
(This used to be commit 876e00fd11)
2003-04-21 14:09:03 +00:00
Andrew Bartlett
2cb0b91ed1 Store the type of 'sec channel' that we establish to the DC. If we are a
workstation, we have to use the workstation type, if we have a BDC account,
we must use the BDC type - even if we are pretending to be a workstation
at the moment.

Also actually store and retreive the last change time, so we can do
periodic password changes again (for RPC at least).

And finally, a couple of minor fixes to 'net'.

Andrew Bartlett
(This used to be commit 6e6b7b79ed)
2003-04-16 10:20:14 +00:00
Andrew Bartlett
f9cde25fa4 Make this code actually compile (--with-ldapsam).
This might not actually be the 'right way' to do this, but it's better to
have it compile...

Andrew Bartlett
(This used to be commit c7dc0b27ac)
2003-04-16 09:41:10 +00:00
Tim Potter
69605f6fa9 Removed unused variable.
(This used to be commit 117cc35dd0)
2003-04-14 05:22:17 +00:00
Tim Potter
5812702c42 Merge:
- Jelmer's latest popt changes
 - debugging tdb messages now initialised and handled in lib/messages.c
(This used to be commit b11f35fdde)
2003-04-14 03:53:58 +00:00
Tim Potter
448fbda496 Syncup new HEAD version.
(This used to be commit 396bcf0cf6)
2003-04-14 03:49:45 +00:00
Tim Potter
be67b58247 Syncup popt changes with HEAD.
(This used to be commit 39c987c3c5)
2003-04-14 02:38:21 +00:00
Tim Potter
117b2d78f0 Winbind client for AIX. Written by Steve Roylance.
(This used to be commit e37d025e67)
2003-04-09 03:51:52 +00:00
cvs2svn Import User
951aec08e8 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit 43f21c87e1) 2003-04-07 15:02:52 +00:00
Andrew Bartlett
d23b35a65f Winbind merges from HEAD:
- fix winbindd_pam bugs
 - give a better error message for unauthorized access to auth_crap
 - show this message in wbinfo
 - fix spelling: privilaged -> privileged
   ** This changes the location of the winbindd privileged pipe **
   (thanks to tpot)

Andrew Bartlett
(This used to be commit 92c2a33483)
2003-04-07 07:32:51 +00:00
Tim Potter
6254b9bd44 Create a pidfile, even when running in interactive mode.
(This used to be commit 1d7400e679)
2003-04-07 07:12:25 +00:00
Tim Potter
69e41084b9 privilaged -> privileged
(This changes the location of the winbindd privileged pipe)
(This used to be commit f111f10076)
2003-04-07 06:43:16 +00:00
Tim Potter
25b1c37f6f Remove duplicate "tallocdump" message from tdb messaging system. The
same functionality exists as "pool-usage".

Move initialisation of this and dmalloc messages inside message_init().
(This used to be commit af6ecafcbb)
2003-04-07 06:13:36 +00:00
Simo Sorce
0ac2b38001 This commit make winbindd copy winbindd_idmap.tdb into idmap.tdb on the
first run if idmap.tdb is not found, and then eventually convert it to the
new format.
This is done to unify winbind and idmap databases and to make a backup of
winbindd_idmap.tdb in case you want to downgrade (of course it will not be
updated).
This is needed because idmap.tdb contains also local mappings, not only
foreign domains mappings.

Added some other fixes/improvements

Simo.
(This used to be commit cf17261519)
2003-04-06 09:35:16 +00:00
Tim Potter
118712249f Removed unused variables.
(This used to be commit 32d1dd19bb)
2003-04-04 00:30:50 +00:00
Tim Potter
b5989bdb1c Fix a compile warning in slprintf format string.
Possible typo: winbind_idmap_methods -> winbindd_idmap_methods

Fix wrong format char when generating a ldap filter string.
(This used to be commit f9cb23e687)
2003-04-03 06:16:53 +00:00
Jim McDonough
77dc0bc6bf The ldap idmap backend from Anthony Liguori (aliguori@us.ibm.com):
This patch moves the ldap routines out of passdb into a generic
library and implements an LDAP backend for IDMAP.  THe backend
can be enabled with "idmap backend = ldap" in smb.conf.  THere
are also schema changes to make sure to update teh ldap schema files.
(This used to be commit 87c7c582c6)
2003-04-03 03:30:25 +00:00
Jeremy Allison
e6c48331eb Fixup swat warning.
Fix winbindd dual mode in the same was as in APP_HEAD. "Ken Cross" <kcross@nssolutions.com>
noticed the problem.
Jeremy.
(This used to be commit 8bbcb83331)
2003-04-03 01:51:13 +00:00
Jeremy Allison
28ff00ab40 Fixup swat warning.
Fix winbindd dual mode in the same was as in APP_HEAD. "Ken Cross" <kcross@nssolutions.com>
noticed the problem.
Jeremy.
(This used to be commit 214b217b27)
2003-04-03 01:51:11 +00:00
Andrew Bartlett
de8a78e722 Print out the 'freindly' error message from winbind. Also print useful
information into it re the privilaged pipe.

Also clean up some bugs in winbindd_pam.c

Andrew Bartlett
(This used to be commit e73b01204a)
2003-04-02 15:03:07 +00:00
Simo Sorce
a557af96e9 THE Idmap patch :-)
includes a --with-idmap=no switch to disable idmap usage if you find
problems.

cosmetic fixes and param aliases to separate winbind from idamp roles.

A temporarily remote idmap winbind compatibility backend.
As I have time I will further change code to not call directly winbind
(partly done but not tested) and a specilized module will be built in place
for the current glue hack.

The patch has been tested locally in my limited time, the patch is simple and
clear and should not reserve problems, if any just disable it.

As usual, comments and fisex are welcome :-)

Simo.
(This used to be commit 0278132047)
2003-04-02 10:36:02 +00:00
Tim Potter
759179b190 Merge of winbind nss library cleanup from HEAD.
(This used to be commit a4b5f2c01b)
2003-04-02 06:16:15 +00:00
Tim Potter
21c4559c84 Whitespace syncup.
(This used to be commit 2125b0b8ce)
2003-04-02 06:04:51 +00:00
cvs2svn Import User
0558497966 This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit fd163bd944) 2003-03-31 21:01:06 +00:00
Tim Potter
2f79b170c8 Placeholder for winbind aix client.
(This used to be commit 872b2ba35b)
2003-03-31 05:47:59 +00:00
Tim Potter
6c33130c0f Cleanup of winbind client side code.
Mostly this consists of untangling the existing code and moving it in
to operating system specific files.  The winbind client code for all
supported operating systems is now in nsswitch/winbind_nss_OSNAME.[ch]
to make things a bit clearer.
(This used to be commit 93ea047a16)
2003-03-31 04:36:01 +00:00