samba.git
20 years agoPropagate changes to WHATSNEW.txt from release tree so that they would not be out...
Alexander Bokovoy [Wed, 2 Jul 2003 04:37:48 +0000 (04:37 +0000)]
Propagate changes to WHATSNEW.txt from release tree so that they would not be out of sync with reality.

20 years agoSAMBA_3_0 will now become beta3
Gerald Carter [Wed, 2 Jul 2003 03:40:06 +0000 (03:40 +0000)]
SAMBA_3_0 will now become beta3
beta2 is captured in the release branch

20 years agoThe default_realm parameter needs to be set in a minimal krb5.conf.
Tim Potter [Wed, 2 Jul 2003 03:07:20 +0000 (03:07 +0000)]
The default_realm parameter needs to be set in a minimal krb5.conf.

20 years agoFix poptOption definition for --no-pass and --kerberos options. The 'value'
Tim Potter [Wed, 2 Jul 2003 03:04:15 +0000 (03:04 +0000)]
Fix poptOption definition for --no-pass and --kerberos options.  The 'value'
field for an option should be set to an identifier to use in a switch
statement or zero if the the arg field is to be updated only.

This fixes smbclient -k always prompting for a password which we don't need.

20 years agoSuggest the user runs kinit if smbclient -k returns NT_STATUS_MORE_PROCESSING_REQUIRED.
Tim Potter [Wed, 2 Jul 2003 03:01:27 +0000 (03:01 +0000)]
Suggest the user runs kinit if smbclient -k returns NT_STATUS_MORE_PROCESSING_REQUIRED.

20 years agoUpdate my email address.
Tim Potter [Wed, 2 Jul 2003 01:37:18 +0000 (01:37 +0000)]
Update my email address.

20 years agoUppercase first letter of debug level 0 statements.
Tim Potter [Wed, 2 Jul 2003 01:23:13 +0000 (01:23 +0000)]
Uppercase first letter of debug level 0 statements.

20 years ago#ifdef out apparently unused function.
Tim Potter [Wed, 2 Jul 2003 01:09:17 +0000 (01:09 +0000)]
#ifdef out apparently unused function.

20 years agoRegenerate manpages
Jelmer Vernooij [Wed, 2 Jul 2003 00:57:34 +0000 (00:57 +0000)]
Regenerate manpages

20 years agoWhitespace reformat before applying a patch.
Jeremy Allison [Wed, 2 Jul 2003 00:08:29 +0000 (00:08 +0000)]
Whitespace reformat before applying a patch.
Jeremy.

20 years agoregenerate docs
Jelmer Vernooij [Tue, 1 Jul 2003 22:58:52 +0000 (22:58 +0000)]
regenerate docs

20 years agoFix for bug 189 from MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>. Incorrect
Jeremy Allison [Tue, 1 Jul 2003 22:07:27 +0000 (22:07 +0000)]
Fix for bug 189 from MORIYAMA Masayuki <msyk@mtg.biglobe.ne.jp>. Incorrect
call for Japanese characters.
Jeremy.

20 years agoAdding jcmd's share ACL on XP patch. Thanks Jim !
Jeremy Allison [Tue, 1 Jul 2003 21:47:13 +0000 (21:47 +0000)]
Adding jcmd's share ACL on XP patch. Thanks Jim !
Jeremy.

20 years agoGenerate docs.
Jelmer Vernooij [Tue, 1 Jul 2003 21:46:11 +0000 (21:46 +0000)]
Generate docs.

20 years agoUse entities
Jelmer Vernooij [Tue, 1 Jul 2003 21:23:13 +0000 (21:23 +0000)]
Use entities

20 years agoFix some syntax errors and typo's
Jelmer Vernooij [Tue, 1 Jul 2003 21:21:03 +0000 (21:21 +0000)]
Fix some syntax errors and typo's

20 years agoAdding idmap uid/gid smb.conf man page entries. Marking winbind uid/gid as deprecated.
John Terpstra [Tue, 1 Jul 2003 21:10:25 +0000 (21:10 +0000)]
Adding idmap uid/gid smb.conf man page entries. Marking winbind uid/gid as deprecated.

20 years agoFix a typo
Jelmer Vernooij [Tue, 1 Jul 2003 21:00:50 +0000 (21:00 +0000)]
Fix a typo

20 years agoDocument "client use spnego"
Jelmer Vernooij [Tue, 1 Jul 2003 20:58:55 +0000 (20:58 +0000)]
Document "client use spnego"

20 years agosync with release branch
Gerald Carter [Tue, 1 Jul 2003 20:41:50 +0000 (20:41 +0000)]
sync with release branch

20 years agoJMCD's fixes also.
John Terpstra [Tue, 1 Jul 2003 20:33:52 +0000 (20:33 +0000)]
JMCD's fixes also.

20 years agoFix typos, add a little clarification.
John Terpstra [Tue, 1 Jul 2003 20:29:38 +0000 (20:29 +0000)]
Fix typos, add a little clarification.

20 years agobeing a responsible developer for a change. Make sure to
Gerald Carter [Tue, 1 Jul 2003 18:34:31 +0000 (18:34 +0000)]
being a responsible developer for a change.  Make sure to
update the docs wrt to the recent code changes.

Can someone regenerate these in the SAMBA_3_0 tree please?
Thanks.

20 years agosyncing newer files to SAMBA_3_0
Gerald Carter [Tue, 1 Jul 2003 18:09:29 +0000 (18:09 +0000)]
syncing newer files to SAMBA_3_0

20 years agoremoving nisplussam
Gerald Carter [Tue, 1 Jul 2003 18:08:11 +0000 (18:08 +0000)]
removing nisplussam

20 years ago* fixed volker's wbinfo -a lockup again. This one was my fault.
Gerald Carter [Tue, 1 Jul 2003 17:51:52 +0000 (17:51 +0000)]
* fixed volker's wbinfo -a lockup again.  This one was my fault.
  It was caused by the winbind_ping() call in is_trusted_domain()

  o if we are a DC then we check our own direct trust relationships
    we have to rely on winbindd to update the truatdom_cache
  o if we are a domain member, then we can update the trustdom_cache
    ourselves if winbindd is not there

20 years agoinitial draft of changeset
Gerald Carter [Tue, 1 Jul 2003 16:57:38 +0000 (16:57 +0000)]
initial draft of changeset

20 years agoapplying fix for group map conversion (patch from Kristyan Osborne)
Gerald Carter [Tue, 1 Jul 2003 15:21:43 +0000 (15:21 +0000)]
applying fix for group map conversion (patch from Kristyan Osborne)

20 years agofix compile problem with nisplussam
Gerald Carter [Tue, 1 Jul 2003 15:16:08 +0000 (15:16 +0000)]
fix compile problem with nisplussam

20 years agoDifferent fix for memleak just committed. This belongs into
Volker Lendecke [Tue, 1 Jul 2003 13:04:50 +0000 (13:04 +0000)]
Different fix for memleak just committed. This belongs into
tdb_search_list_free.

Volker

20 years agoFix two memory leaks. tdb_search_keys allocates space for the key
Volker Lendecke [Tue, 1 Jul 2003 12:40:52 +0000 (12:40 +0000)]
Fix two memory leaks. tdb_search_keys allocates space for the key
strings.

Running 'net cache list' or secrets_get_trusted_domains through
valgrind gives a *huge* amount of invalid reads of one byte beyond the
indicated string length in libc's strncpy. Annoying...

Volker

20 years agoFix a segfault found by metze & valgrind...
Volker Lendecke [Tue, 1 Jul 2003 12:03:00 +0000 (12:03 +0000)]
Fix a segfault found by metze & valgrind...

Don't overwrite past the end of a string.

Volker

20 years agoDon't set a mapping that is already there.
Volker Lendecke [Tue, 1 Jul 2003 10:01:57 +0000 (10:01 +0000)]
Don't set a mapping that is already there.

Volker

20 years agoGrr, the order of these arguments matters
Andrew Bartlett [Tue, 1 Jul 2003 09:27:02 +0000 (09:27 +0000)]
Grr, the order of these arguments matters

20 years agoMake smbpasswd use the higher log level for the second run - this should
Andrew Bartlett [Tue, 1 Jul 2003 07:29:23 +0000 (07:29 +0000)]
Make smbpasswd use the higher log level for the second run - this should
help us debug failures in smbpasswd.

Andrew Bartlett

20 years agofix typos in log messages and comments.
Gerald Carter [Tue, 1 Jul 2003 05:45:16 +0000 (05:45 +0000)]
fix typos in log messages and comments.

20 years ago* revert change to get_global_sam_name()
Gerald Carter [Tue, 1 Jul 2003 04:11:42 +0000 (04:11 +0000)]
* revert change to get_global_sam_name()
* add get_default_sam_name() to be used by make_user_info_map()
* add comments describing get_*_sam_name()

20 years ago* fix the trustdom_cache to work when winbindd is not running.
Gerald Carter [Tue, 1 Jul 2003 03:49:41 +0000 (03:49 +0000)]
* fix the trustdom_cache to work when winbindd is not running.
  smbd will update the trustdom_cache periodically after locking
  the timestamp key

20 years agoFixed the latest complaint from jcmd :-). We were storing -1 for the
Jeremy Allison [Tue, 1 Jul 2003 00:35:11 +0000 (00:35 +0000)]
Fixed the latest complaint from jcmd :-). We were storing -1 for the
CREATOR_OWNER/CREATOR_GROUP uid/gid entries in the SAMBA_PAI attribute.
Creator Owner and Creator group now show up as inherited correctly (I
think :-). Jim please test.
Jeremy.

20 years agoMerge of Volkers patch to make the logic clearer (with my mod).
Jeremy Allison [Mon, 30 Jun 2003 22:07:47 +0000 (22:07 +0000)]
Merge ... Volkers patch to make the logic clearer (with my mod).
Jeremy.

20 years agoFix missing ret = found by Volker.
Jeremy Allison [Mon, 30 Jun 2003 21:04:12 +0000 (21:04 +0000)]
Fix missing ret = found by Volker.
Jeremy.

20 years ago* cleanup more DC name resolution issues in check_*domain_security()
Gerald Carter [Mon, 30 Jun 2003 20:45:14 +0000 (20:45 +0000)]
* cleanup more DC name resolution issues in check_*domain_security()
* is_trusted_domain() is broken without winbind.  Still working on this.
* get_global_sam_name() should return the workgroup name unless we
  are a standalone server (verified by volker)
* Get_Pwnam() should always fall back to the username (minus domain name)
  even if it is not our workgroup so that TRUSTEDOMAIN\user can logon
  if 'user' exists in the local list of accounts (on domain members w/o
  winbind)

Tested using Samba PDC with trusts (running winbindd) and a Samba 3.0
domain member not running winbindd.

notes: make_user_info_map() is slightly broken now due to the
fact that is_trusted_domain() only works with winbindd.  disabled
checks temporarily until I can sort this out.

20 years agoValgrind found a bug (subtracting a pointer from a length rather than the
Jeremy Allison [Mon, 30 Jun 2003 20:41:40 +0000 (20:41 +0000)]
Valgrind found a bug (subtracting a pointer from a length rather than the
length of what the pointer points to).
Jeremy.

20 years agoFinally ! Fixed the ACL ordering bug reported by jcmd. I realised we were
Jeremy Allison [Mon, 30 Jun 2003 18:53:48 +0000 (18:53 +0000)]
Finally ! Fixed the ACL ordering bug reported by jcmd. I realised we were
not sorting returned ACE's correctly w.r.t. W2K - implemented the correct
algorithm.
Jeremy.

20 years agoremoving old code
Gerald Carter [Mon, 30 Jun 2003 17:26:45 +0000 (17:26 +0000)]
removing old code

20 years ago* rename samstrict auth method to sam
Gerald Carter [Mon, 30 Jun 2003 17:24:59 +0000 (17:24 +0000)]
* rename samstrict auth method to sam
* rename original sam auth method to sam_ignoredomain
* remove samstrict_dc auth method (now covered by 'sam')
* fix wbinfo -a '...' and getent passwd bugs when running
  winbindd on a samba PDC (reported by Volker)

20 years agofix for platforms that don't have unsetenv().
Gerald Carter [Mon, 30 Jun 2003 16:18:29 +0000 (16:18 +0000)]
fix for platforms that don't have unsetenv().
we now have to check the value for _NO_WINBINDD.
"1" enables, and != "1" disables (use "0" by convention).

20 years agoAdd the 'guest' passdb backend automatically if
Volker Lendecke [Mon, 30 Jun 2003 14:55:45 +0000 (14:55 +0000)]
Add the 'guest' passdb backend automatically if
guest account != ""

Volker

20 years agoYet more shadow variable warnings.
Tim Potter [Mon, 30 Jun 2003 05:45:27 +0000 (05:45 +0000)]
Yet more shadow variable warnings.

20 years agoFix more shadow variable warnings.
Tim Potter [Mon, 30 Jun 2003 05:44:05 +0000 (05:44 +0000)]
Fix more shadow variable warnings.

20 years agoFix shadow variable warnings.
Tim Potter [Mon, 30 Jun 2003 05:42:15 +0000 (05:42 +0000)]
Fix shadow variable warnings.

20 years ago- added LOCALE patch from vorlon@debian.org (Steve Langasek) (bug #122)
Andrew Tridgell [Mon, 30 Jun 2003 02:11:13 +0000 (02:11 +0000)]
- added LOCALE patch from vorlon@debian.org (Steve Langasek) (bug #122)

- changed --enable-developer debug to use -gstabs as it makes the
  samba binaries about 10x smaller and is still quite functional for
  samba debugging

20 years agoHere's the code to make winbindd work on a Samba DC
Gerald Carter [Sun, 29 Jun 2003 03:39:50 +0000 (03:39 +0000)]
Here's the code to make winbindd work on a Samba DC
to handle domain trusts.  Jeremy and I talked about this
and it's going in as working code.  It keeps winbind clean
and solves the trust problem with minimal changes.

To summarize, there are 2 basic cases where the deadlock would
occur.  (1) lookuping up secondary groups for a user, and
(2) get[gr|pw]nam() calls that fall through the NSS layer because
they don't exist anywhere.

o To handle case #1, we bypass winbindd in sys_getgrouplist() unless
  the username includes the 'winbind separator'.

o Case #2 is handled by adding checks in winbindd to return failure
  if we are a DC and the domain matches our own.

This code has been tested using basic share connections, domain
logons, and with pam_winbind (both with and without 'winbind
use default domain').  The 'trustdomain' auth module should work
as well if an admin wants to manually create UNIX users for
acounts in the trusted domains.

Other misc fixes:

  * we need to fix check_ntlm_password() to be able to determine
    if an auth module is authoritative over a user (NT_STATUS_WRONG_PASSWORD,
    etc...).  I worked around my specific situation, but this needs to be
    fixed.  the winbindd auth module was causing delays.
  * fix named server mutex deadlock between trust domain auth module
    and winbindd looking up a uid
  * make sure SAM_ACCOUNT gets stored in the server_info struct for the
    _net_sam_logon() reply.

Configuration details:

The recommended method for supporting trusts is to use winbind.
The gets us around some of the server mutex issues as well.

  * set 'files winbind' for passwd: and group: in /etc/nsswitch.conf
  * create domain trusts like normal
  * join winbind on the pdc to the Samba domain using 'net rpc join'
  * add normal parameters to smb.conf for winbind
  * set 'auth method = guest sam winbind'
  * start smbd, nmbd, & winbindd

Problems that remain:

  * join a Windows 2k/XP box to a Samba domain.
  * create a 2-way trust between the Samba domain
    and an NT domain
  * logon to the windows client as a user from theh trusted
    domain
  * try to browse server in the trusted domain (or other
    workstations).  an NT client seems to work ok, but 2k
    and XP either prompt for passwords or fail with errors.

apparanently this never got tested since no one has ever been
able to logon as a trusted user to a Samba domain from a Windows
client.

20 years agoadd check for NT_STATUS_NOT_IMPLEMENTED in auth check so that
Gerald Carter [Sat, 28 Jun 2003 08:29:42 +0000 (08:29 +0000)]
add check for NT_STATUS_NOT_IMPLEMENTED in auth check so that
map to guest = bad user works again when "trustdomain" is listed
as last auth method.

Also clean up some more DC location calls.

20 years agocleaning up after the s/in_addr/ip_service/ switch for the get_dc_list() patch
Gerald Carter [Sat, 28 Jun 2003 08:24:32 +0000 (08:24 +0000)]
cleaning up after the s/in_addr/ip_service/ switch for the get_dc_list() patch

20 years agoSome const correctness. Stop tdb being used as a remote backend. If an
Jeremy Allison [Fri, 27 Jun 2003 20:55:48 +0000 (20:55 +0000)]
Some const correctness. Stop tdb being used as a remote backend. If an
idmap backend is specified cause smbd to ask winbindd (use winbindd if
you want a consistant remote backend solution).
Should work well enough for next beta now...
Jeremy.

20 years agoAdd include guards around idmap.h, change ID_NOMAP to ID_QUERY_ONLY
Jeremy Allison [Thu, 26 Jun 2003 23:48:46 +0000 (23:48 +0000)]
Add include guards around idmap.h, change ID_NOMAP to ID_QUERY_ONLY
and ID_CACHE to ID_CACHE_SAVE. Added locking around tdb writes & deletes
for multi-process access.
Jeremy.

20 years agoAs has been pointed out, ordering here doesn't matter so use normal
Jeremy Allison [Thu, 26 Jun 2003 18:26:52 +0000 (18:26 +0000)]
As has been pointed out, ordering here doesn't matter so use normal
add.
Jeremy.

20 years agoRemove the MODULES_CLEAN variable. It's no longer necessary since
Jelmer Vernooij [Thu, 26 Jun 2003 17:33:58 +0000 (17:33 +0000)]
Remove the MODULES_CLEAN variable. It's no longer necessary since
object files for modules are in .po files, while object files for
static use are in .o files. Pointed out by metze.

This reduces the number of files that have to be recompiled after the Makefile
changes. Preventing unnecessary recompiling of the other few is high
on my todo list.

20 years agoMove up intialisation of logging, so we catch errors in handling 'preload modules'
Jelmer Vernooij [Thu, 26 Jun 2003 17:29:09 +0000 (17:29 +0000)]
Move up intialisation of logging, so we catch errors in handling 'preload modules'

20 years agoDocument name resolve order suggested settings for security=ads as mentioned by Jerry
Alexander Bokovoy [Thu, 26 Jun 2003 08:12:47 +0000 (08:12 +0000)]
Document name resolve order suggested settings for security=ads as mentioned by Jerry

20 years agocleaning up more build issues. Tested
Gerald Carter [Thu, 26 Jun 2003 05:26:20 +0000 (05:26 +0000)]
cleaning up more build issues.  Tested
"--with-ads=no --with-ldap=yes" and "--with-ads=yes && make everything"

20 years agoFix immediate bug where the idmap can't tell the difference between an entry
Jeremy Allison [Thu, 26 Jun 2003 00:19:57 +0000 (00:19 +0000)]
Fix immediate bug where the idmap can't tell the difference between an entry
not being present (and so allocate another) and an entry that is present but
of the wrong type. This code still has major problems...
Jeremy.

20 years agoAdd netlogon debug registry key info
Jelmer Vernooij [Wed, 25 Jun 2003 20:58:33 +0000 (20:58 +0000)]
Add netlogon debug registry key info

20 years agofix linking of some things that are not built by default
Gerald Carter [Wed, 25 Jun 2003 20:16:53 +0000 (20:16 +0000)]
fix linking of some things that are not built by default

20 years agoifdef out some functions that are not used when HAVE_ADS is not defined
Gerald Carter [Wed, 25 Jun 2003 19:49:27 +0000 (19:49 +0000)]
ifdef out some functions that are not used when HAVE_ADS is not defined

20 years agofix build on non-ldap platforms
Gerald Carter [Wed, 25 Jun 2003 19:39:16 +0000 (19:39 +0000)]
fix build on non-ldap platforms

20 years agoEnsure idmap backends are added in the correct order (DLIST_ADD puts
Jeremy Allison [Wed, 25 Jun 2003 19:01:17 +0000 (19:01 +0000)]
Ensure idmap backends are added in the correct order (DLIST_ADD puts
things at the *front* of the list). Add more debug. Still broken.. :-(.
Jeremy.

20 years ago* fix typos in a few debug statements
Gerald Carter [Wed, 25 Jun 2003 19:00:15 +0000 (19:00 +0000)]
* fix typos in a few debug statements
* check negative connection cache before ads_try_connect()
  in ads_find_dc()

20 years agoforgot one file
Gerald Carter [Wed, 25 Jun 2003 18:08:00 +0000 (18:08 +0000)]
forgot one file

20 years agolarge change:
Gerald Carter [Wed, 25 Jun 2003 17:41:05 +0000 (17:41 +0000)]
large change:

*)  consolidates the dc location routines again (dns
    and netbios)  get_dc_list() or get_sorted_dc_list()
    is the authoritative means of locating DC's again.

    (also inludes a flag to get_dc_list() to define
     if this should be a DNS only lookup or not)

    (however, if you set "name resolve order = hosts wins"
     you could still get DNS queries for domain name IFF
     ldap_domain2hostlist() fails.  The answer?  Fix your DNS
     setup)

*)  enabled DOMAIN<0x1c> lookups to be funneled through
    resolve_hosts resulting in a call to ldap_domain2hostlist()
    if lp_security() == SEC_ADS

*)  enables name cache for winbind ADS backend

*)  enable the negative connection cache for winbind
    ADS backend

*)  removes some old dead code

*)  consolidates some duplicate code

*)  moves the internal_name_resolve() to use an IP/port pair
    to deal with SRV RR dns replies.  The namecache code
    also supports the IP:port syntax now as well.

*)  removes 'ads server' and moves the functionality back
    into 'password server' (which can support "hostname:port"
    syntax now but works fine with defaults depending on
    the value of lp_security())

20 years agoPatch to move functions directly from pdb_ldap.c into lib/smbldap.c
Andrew Bartlett [Wed, 25 Jun 2003 12:51:58 +0000 (12:51 +0000)]
Patch to move functions directly from pdb_ldap.c into lib/smbldap.c

The functions are unchanged.  Next step is to make idmap_ldap use them.

Andrew Bartlett

20 years agoMetze assures me that this will fix Heimdal et al.
Tim Potter [Wed, 25 Jun 2003 12:20:29 +0000 (12:20 +0000)]
Metze assures me that this will fix Heimdal et al.

I think the lesson to take away here is that refactoring configure.in
is a hazardous task and should only be attempted if you have a lot
of time and patience!

20 years agoFix a warning in a DEBUG
Volker Lendecke [Wed, 25 Jun 2003 10:18:22 +0000 (10:18 +0000)]
Fix a warning in a DEBUG

Clean up the init a little bit, less nested if-statements.

Agreed upon with Simo.

Volker

20 years agoTought I already done.
Simo Sorce [Wed, 25 Jun 2003 08:15:51 +0000 (08:15 +0000)]
Tought I already done.
Set back 3.0 to use only winbindd_idmap.tdb as idmap database as told on
samba-technical.
Tested and working so far.

20 years agoOnly append to KRB5_LIBS when doing AC_CHECK_LIB for libkrb5.
Tim Potter [Wed, 25 Jun 2003 02:24:48 +0000 (02:24 +0000)]
Only append to KRB5_LIBS when doing AC_CHECK_LIB for libkrb5.

I think we are done with MIT Kerberos for the moment.  The Heimdal detection
looks like it has been broken for ages so it's next on the list.

20 years agoDon't trash the values of CFLAGS and LIBS while engaged in Kerberos
Tim Potter [Wed, 25 Jun 2003 01:33:27 +0000 (01:33 +0000)]
Don't trash the values of CFLAGS and LIBS while engaged in Kerberos
detection.  On Solaris 9 extra libraries -lber and -lresolv are
required for Kerberos tests.  We used to have an extra check for
-lresolv only but I think the correct solution is not to forget about it
in the first place.

This should fix bug #125 although I don't have access to a
system to test it out on.

20 years agoMore debugs for this... (these should have been here already !).
Jeremy Allison [Wed, 25 Jun 2003 00:28:46 +0000 (00:28 +0000)]
More debugs for this... (these should have been here already !).
Jeremy.

20 years agoMore instrumentation tracking down this bug...
Jeremy Allison [Wed, 25 Jun 2003 00:11:38 +0000 (00:11 +0000)]
More instrumentation tracking down this bug...
Jeremy.

20 years agoStart to instrument this code as I try and track down a nasty bug that
Jeremy Allison [Wed, 25 Jun 2003 00:02:17 +0000 (00:02 +0000)]
Start to instrument this code as I try and track down a nasty bug that
causes mapping to dissapear...
Jeremy.

20 years agoSequence number was not getting updated with ldap hack. Only a bug in this
Jeremy Allison [Tue, 24 Jun 2003 23:07:26 +0000 (23:07 +0000)]
Sequence number was not getting updated with ldap hack. Only a bug in this
branch.
Jeremy.

20 years agoExplain why winbindd is exiting.
Jeremy Allison [Tue, 24 Jun 2003 20:54:32 +0000 (20:54 +0000)]
Explain why winbindd is exiting.
Jeremy.

20 years agoFix pdb_ldap segfaults, and wrong default values for ldapsam_compat.
Andrew Bartlett [Tue, 24 Jun 2003 14:23:34 +0000 (14:23 +0000)]
Fix pdb_ldap segfaults, and wrong default values for ldapsam_compat.

Reviewed by vl, metze.

Andrew Bartlett

20 years agodo not forget the include file :-)
Simo Sorce [Tue, 24 Jun 2003 14:02:57 +0000 (14:02 +0000)]
do not forget the include file :-)

20 years agoadd tdb backup function separation and winbind idmap upgrade code form
Simo Sorce [Tue, 24 Jun 2003 14:02:21 +0000 (14:02 +0000)]
add tdb backup function separation and winbind idmap upgrade code form
pre-2.2.4 tdb database format.

tx volker for your work on this

20 years agoMore tuning of Kerberos detection - don't fall through to detect kerberos libs
Tim Potter [Tue, 24 Jun 2003 07:46:26 +0000 (07:46 +0000)]
More tuning of Kerberos detection - don't fall through to detect kerberos libs
when we have already decided that we can't do it.

20 years agoMore sensible behaviour for bug 152. If we don't have krb5.h and were explicitly
Tim Potter [Tue, 24 Jun 2003 05:31:08 +0000 (05:31 +0000)]
More sensible behaviour for bug 152.  If we don't have krb5.h and were explicitly
configured using --with-ads then give an error, otherwise fall back to compiling
without ADS.

Tested on redhat 8.0 with and without MIT kerberos packages installed.  Metze,
let me know if this is working OK for you now!

20 years agoFixes from Martin Dorey <mdorey@bluearc.com> to only ask for and change
Jeremy Allison [Tue, 24 Jun 2003 01:09:36 +0000 (01:09 +0000)]
Fixes from Martin Dorey <mdorey@bluearc.com> to only ask for and change
the requested parts of the ACL.
Jeremy.

20 years agoMove the map acl inherit parameter into the protocol section.
Jeremy Allison [Tue, 24 Jun 2003 00:58:54 +0000 (00:58 +0000)]
Move the map acl inherit parameter into the protocol section.
Jeremy.

20 years agoAdd documentation for "map acl inherit" parameter.
Jeremy Allison [Mon, 23 Jun 2003 23:02:49 +0000 (23:02 +0000)]
Add documentation for "map acl inherit" parameter.
Jeremy.

20 years agoFixed the merge_default_aces() code to work correctly with inheritance.
Jeremy Allison [Mon, 23 Jun 2003 20:24:08 +0000 (20:24 +0000)]
Fixed the merge_default_aces() code to work correctly with inheritance.
Hopefully will fix jcmd bugs :-).
Jeremy.

20 years ago* s/get_dc_name/rpc_dc_name/g (revert a previous change)
Gerald Carter [Mon, 23 Jun 2003 19:05:23 +0000 (19:05 +0000)]
* s/get_dc_name/rpc_dc_name/g  (revert a previous change)

* move back to qsort() for sorting IP address in get_dc_list()

* remove dc_name_cache in cm_get_dc_name() since it slowed
  things down more than it helped.  I've made a note of where
  to add in the negative connection cache in the ads code.
  Will come back to that.

* fix rpcclient to use PRINTER_ALL_ACCESS for set printer (instead
  of MAX_ALLOWED)

* only enumerate domain local groups in our domain

* simplify ldap search for seqnum in winbindd's rpc backend

20 years agowrap group enuemration in brcome/unbecome_root() (bug #110)
Gerald Carter [Mon, 23 Jun 2003 18:29:09 +0000 (18:29 +0000)]
wrap group enuemration in brcome/unbecome_root() (bug #110)

20 years agofix typo (bug #170)
Gerald Carter [Mon, 23 Jun 2003 18:27:59 +0000 (18:27 +0000)]
fix typo (bug #170)

20 years agofix bug #178; available space in devmode should be int
Gerald Carter [Mon, 23 Jun 2003 17:47:25 +0000 (17:47 +0000)]
fix bug #178; available space in devmode should be int

20 years agolp_security() is a function not an integer
Andrew Tridgell [Mon, 23 Jun 2003 06:38:19 +0000 (06:38 +0000)]
lp_security() is a function not an integer

20 years agoChange AC_MSG_ERROR() in krb5.h detection code to AC_MSG_WARN()
Tim Potter [Mon, 23 Jun 2003 05:32:16 +0000 (05:32 +0000)]
Change AC_MSG_ERROR() in krb5.h detection code to AC_MSG_WARN()
until I repair my destroyed development system and check in a proper
fix for this.

20 years ago* set domain->last_status = NT_STATUS_SERVER_DISABLED on an ads_connect() failure
Gerald Carter [Mon, 23 Jun 2003 05:10:07 +0000 (05:10 +0000)]
* set domain->last_status = NT_STATUS_SERVER_DISABLED on an ads_connect() failure
* Fix code to use winbind_rpc methods for trusted mixed mode or NT4 domains
  ( does no one ever test this? )
* add in LDAP code to get the sequence number for rpc based seqnum update.
  ( this is needed if the DC is upgraded and samba is not reconfigured
    to use security = ads; it's not pretty but it works (from app_head) )
* fix bug that caused us to enumerate domain local groups in domains
  other than our own

20 years agoProduce an error if Active Directory support is requested and we don't
Tim Potter [Mon, 23 Jun 2003 01:27:17 +0000 (01:27 +0000)]
Produce an error if Active Directory support is requested and we don't
have krb5.h

Should fix bug 152.

20 years agoRepair indentation in autoconf Kerberos detection code. This should
Tim Potter [Mon, 23 Jun 2003 01:05:31 +0000 (01:05 +0000)]
Repair indentation in autoconf Kerberos detection code.  This should
make it easier to understand/debug.