bbaumbach/samba-autobuild/.git
17 years agor21154: Add PAM_WINBIND_LOGONSERVER, also merge the various pam_set_data calls.
Günther Deschner [Mon, 5 Feb 2007 17:12:13 +0000 (17:12 +0000)]
r21154: Add PAM_WINBIND_LOGONSERVER, also merge the various pam_set_data calls.

Guenther
(This used to be commit 97a0b1b79499af10930500ce857c93ffbacfdb6e)

17 years agor21152: Correctly omit pam conversations when PAM_SILENT has been set by the
Günther Deschner [Mon, 5 Feb 2007 15:25:31 +0000 (15:25 +0000)]
r21152: Correctly omit pam conversations when PAM_SILENT has been set by the
calling application.

Guenther
(This used to be commit ebfae9a671d2c960178228ba7fdcd07cb2f49a05)

17 years agor21151: applying patches for CVE-2007-045[34]
Gerald Carter [Mon, 5 Feb 2007 15:16:30 +0000 (15:16 +0000)]
r21151: applying patches for CVE-2007-045[34]
(This used to be commit 1d46b2ae3447b3521987b2ab1064a6ea314cfa07)

17 years agor21150: Activate RAW-NOTIFY
Volker Lendecke [Mon, 5 Feb 2007 15:07:44 +0000 (15:07 +0000)]
r21150: Activate RAW-NOTIFY
(This used to be commit 39809d7391723d3c310fc11705b1de20074c4bbf)

17 years agor21149: Only say we are a groupmember for the optimized (rid 513) membership
Günther Deschner [Mon, 5 Feb 2007 15:04:09 +0000 (15:04 +0000)]
r21149: Only say we are a groupmember for the optimized (rid 513) membership
lookup when we actually are. Although the Linux nss winbind backend
protects against num_mem != 0 && buf == NULL.

Guenther
(This used to be commit a9ac4630b46242f88bd7a4e92511b55cc82e9940)

17 years agor21146: Fix debug typos.
Günther Deschner [Mon, 5 Feb 2007 14:57:31 +0000 (14:57 +0000)]
r21146: Fix debug typos.

Guenther
(This used to be commit cdef1d00b89abd632281d428f1e1a6b322559af4)

17 years agor21145: Convert some int to BOOL in pam_winbind (only in 3_0).
Günther Deschner [Mon, 5 Feb 2007 14:46:36 +0000 (14:46 +0000)]
r21145: Convert some int to BOOL in pam_winbind (only in 3_0).

Guenther
(This used to be commit 1b82c5fa0e363942947453a8e1b74aa2b95d8733)

17 years agor21144: Create more accurate warning message when the pam_winbind chauthtok has
Günther Deschner [Mon, 5 Feb 2007 14:43:06 +0000 (14:43 +0000)]
r21144: Create more accurate warning message when the pam_winbind chauthtok has
received NT_STATUS_PASSWORD_RESTRICTION.

Guenther
(This used to be commit 2ac9cb3bbd1980df54f1b6cc2cfb823be43f3230)

17 years agor21143: Fix wrong check for pam error codes for getpwnam and lookup winbind
Günther Deschner [Mon, 5 Feb 2007 14:34:12 +0000 (14:34 +0000)]
r21143: Fix wrong check for pam error codes for getpwnam and lookup winbind
requests in pam_winbind (Bug #4094).

Inspired by fix from Lars Heete.

Guenther
(This used to be commit 88e2185d2913e835e074dc3cc4ab1c631c3296a5)

17 years agor21133: - Apply patch from ages ago, which should allow following \\server\share...
Derrell Lipman [Sat, 3 Feb 2007 17:20:53 +0000 (17:20 +0000)]
r21133: - Apply patch from ages ago, which should allow following \\server\share\path
  DFS referrals.  This doesn't appear to break anything in the non-DFS case,
  but I don't have an environment to test DFS referrals.  Need confirmation
  from OP that this solves the problem.
(This used to be commit e479a9c094fa42354aad7aa76a712bf67d3d4d45)

17 years agor21132: - Fixes bug 4366. Documentation for smbc_utimes() was incorrect.
Derrell Lipman [Sat, 3 Feb 2007 17:13:58 +0000 (17:13 +0000)]
r21132: - Fixes bug 4366.  Documentation for smbc_utimes() was incorrect.

- Should fix bug 4115 (but needs confirmation from OP).  If the kerberos use
  flag is set in the context, then also pass it to smbc_attr_server for use by
  cli_full_connection()

- Should fix bug 4309 (but needs confirmation from OP).  We no longer send a
  keepalive packet unconditionally.  Instead, we assume (yes, possibly
  incorrectly, but it's the best guess we can make) that if the connection is
  on port 139, it's netbios and otherwise, it isn't.  If netbios is in use, we
  send a keepalive packet.  Otherwise, we check that the connection is alive
  using getpeername().
(This used to be commit 2f9be59c10ef991a51cc858ab594187b5ca61382)

17 years agor21131: Some notify fixes
Volker Lendecke [Sat, 3 Feb 2007 16:53:52 +0000 (16:53 +0000)]
r21131: Some notify fixes
(This used to be commit b9300e1d5acba4e2537fcc6631d1ee4d53685f64)

17 years agor21130: Don't mix SAFE_FREE() and TALLOC_FREE().
Gerald Carter [Sat, 3 Feb 2007 13:31:47 +0000 (13:31 +0000)]
r21130: Don't mix SAFE_FREE() and TALLOC_FREE().
(This used to be commit 5c36d67d272a52f58532daa3c3c09b8f8b6a34e0)

17 years agor21129: Fix from Martin Zielinski <mz@seh.de> - ensure
Jeremy Allison [Sat, 3 Feb 2007 00:50:47 +0000 (00:50 +0000)]
r21129: Fix from Martin Zielinski <mz@seh.de> - ensure
the hand marshalled container size is a multiple
of 4 bytes for RPC alignment.
Jeremy.
(This used to be commit 0e9ad2b29f1c05dc3f5d5e9659fe0557fa077d2e)

17 years agor21128: Fix Vista connecting to Samba in share level security.
Jeremy Allison [Fri, 2 Feb 2007 22:02:42 +0000 (22:02 +0000)]
r21128: Fix Vista connecting to Samba in share level security.
Vista sends the NTLMv2 blob by default in the tconX
packet. Make sure we save off the workgroup the user
was logged into on the client in the sessionsetupX
and re-use it for the NTLMv2 calc.
Jeremy.
(This used to be commit 45dcf62960c2815c4d8e0c5f4a2d0af24df83290)

17 years agor21127: Add a mitigating comment ;-))
Volker Lendecke [Fri, 2 Feb 2007 17:48:21 +0000 (17:48 +0000)]
r21127: Add a mitigating comment ;-))
(This used to be commit 918a6910d0d315b2786c5f8645babf6a13b8a949)

17 years agor21123: Make notify_fsp() static to notify.c.
Volker Lendecke [Fri, 2 Feb 2007 14:55:21 +0000 (14:55 +0000)]
r21123: Make notify_fsp() static to notify.c.

Volker
(This used to be commit d663b729c0b3f4265fa90a5df8534ad52b8f04eb)

17 years agor21122: Simplify code in pam_winbind a bit.
Günther Deschner [Fri, 2 Feb 2007 13:03:06 +0000 (13:03 +0000)]
r21122: Simplify code in pam_winbind a bit.

Guenther
(This used to be commit 08ca5ea6f1b09506055b2508aa79704f39b3bbd7)

17 years agor21121: Fix error message, based on RAW-NOTIFY
Volker Lendecke [Fri, 2 Feb 2007 12:38:18 +0000 (12:38 +0000)]
r21121: Fix error message, based on RAW-NOTIFY
(This used to be commit 2d0a0a0b34fe4b8778d453ccfb5df6bc4534ef62)

17 years agor21120: Make notify a bit more robust: Delete the notify records if we figured out
Volker Lendecke [Fri, 2 Feb 2007 11:34:16 +0000 (11:34 +0000)]
r21120: Make notify a bit more robust: Delete the notify records if we figured out
that the process holding it is not around anymore.

Tridge, please review this and possibly also include it in 4. We can discuss
the error message for "unknown target" from messaging_send, INVALID_HANDLE
seemed to be most appropriate to me.

Volker
(This used to be commit 3b3ed7429e54b571375914e473eafc9888b5b204)

17 years agor21117: Add rpccli_samr_chgpasswd_user to rpcclient for testing.
Günther Deschner [Thu, 1 Feb 2007 22:12:37 +0000 (22:12 +0000)]
r21117: Add rpccli_samr_chgpasswd_user to rpcclient for testing.

Guenther
(This used to be commit 4036cb51692d3f12a8f56a412fa5b2ca830d005b)

17 years agor21116: Fix the build -- sorry!
Volker Lendecke [Thu, 1 Feb 2007 22:06:59 +0000 (22:06 +0000)]
r21116: Fix the build -- sorry!
(This used to be commit f4b073d8c85070290f475e7e2575c1233b9a9c4e)

17 years agor21115: notify_internal.c needs to remove the table entry if a process has crashed. So
Volker Lendecke [Thu, 1 Feb 2007 19:29:07 +0000 (19:29 +0000)]
r21115: notify_internal.c needs to remove the table entry if a process has crashed. So
it needs the specific error message.

Make messages.c return NTSTATUS and specificially NT_STATUS_INVALID_HANDLE if
sending to a non-existent process.

Volker
(This used to be commit 3f620d181da0c356c8ffbdb5b380ccab3645a972)

17 years agor21114: Fix 'net usershare': Adding "guest_ok=y" required a correct acl. Set the
Volker Lendecke [Thu, 1 Feb 2007 16:22:07 +0000 (16:22 +0000)]
r21114: Fix 'net usershare': Adding "guest_ok=y" required a correct acl. Set the
default if "" is set. And fix the calculation for too man shares.

Thanks to Karolin Seeger <ks@sernet.de>

Volker
(This used to be commit 5b12eb873f8f603a6143342c282014af76ec7752)

17 years agor21113: Increment vfs version, thanks to metze for pointing it out
Volker Lendecke [Thu, 1 Feb 2007 15:29:24 +0000 (15:29 +0000)]
r21113: Increment vfs version, thanks to metze for pointing it out
(This used to be commit 3da52b500d63856c10d9d71ee2d0fb5fe1b28bdd)

17 years agor21112: fix const compile warning
Gerald Carter [Thu, 1 Feb 2007 15:22:08 +0000 (15:22 +0000)]
r21112: fix const compile warning
(This used to be commit 6b754f7c96400d5d1f14e807aac0aa925c45eefb)

17 years agor21111: Reorganize the change notify params a bit. We now have the per-share
Volker Lendecke [Thu, 1 Feb 2007 15:11:06 +0000 (15:11 +0000)]
r21111: Reorganize the change notify params a bit. We now have the per-share
parameters

change notify = [yes]/no           # do we do it at all
kernel change notify = [yes]/no    # enable/disable inotify

Those who want FAM need to say

change notify = yes
vfs objects = notify_fam

Volker
(This used to be commit c3a44d8b9606fc516faceb69b8e87bfc8be312f3)

17 years agor21110: Fix kinit with Heimdal (Bug #4226).
Günther Deschner [Thu, 1 Feb 2007 15:10:13 +0000 (15:10 +0000)]
r21110: Fix kinit with Heimdal (Bug #4226).

Guenther
(This used to be commit ea38e1f8362d75e7ac058a7c4aa06f1ca92ec108)

17 years agor21109: Send notify_fam.c through the VFS. Lets see how the build farm likes this.
Volker Lendecke [Thu, 1 Feb 2007 14:31:10 +0000 (14:31 +0000)]
r21109: Send notify_fam.c through the VFS. Lets see how the build farm likes this.

Volker
(This used to be commit e57a6d4d6341a52de55860e7f97031a63810dbfa)

17 years agor21108: Send sys_notify_watch through the VFS, FAM is next
Volker Lendecke [Thu, 1 Feb 2007 13:36:02 +0000 (13:36 +0000)]
r21108: Send sys_notify_watch through the VFS, FAM is next
(This used to be commit 603a96761391f36ae9a1c8777d3333ab5c02eb34)

17 years agor21107: Adapt notify_fam.c to the new infrastructure. This works in my test, but...
Volker Lendecke [Thu, 1 Feb 2007 12:36:21 +0000 (12:36 +0000)]
r21107: Adapt notify_fam.c to the new infrastructure. This works in my test, but does
not survive the raw-notify test just because famd is too slow. Events are
coming in too late and are thus unsyncronized.

Now to get that through the VFS.

Volker
(This used to be commit c84bf6c4f92ffe3728acef7de7cefbc08307ea39)

17 years agor21106: We neither need a account lockout policy handler nor a check domain
Günther Deschner [Thu, 1 Feb 2007 12:24:08 +0000 (12:24 +0000)]
r21106: We neither need a account lockout policy handler nor a check domain
online handler for internal (local SAM, BUILTIN) childs. Jeremy, please
check.

Guenther
(This used to be commit 7d0e2e70684a7e3d377f56ed0244ed136b0b1a99)

17 years agor21105: Quick fix for CLDAP reply without NetLogon attribute.
Günther Deschner [Thu, 1 Feb 2007 12:20:33 +0000 (12:20 +0000)]
r21105: Quick fix for CLDAP reply without NetLogon attribute.

Guenther
(This used to be commit aa135c960e5d713daa4ee13a955dc502d12f4f87)

17 years agor21104: Rename struct watch_context to struct inotify_watch_context
Volker Lendecke [Thu, 1 Feb 2007 10:59:35 +0000 (10:59 +0000)]
r21104: Rename struct watch_context to struct inotify_watch_context
(This used to be commit 7ac79203f247ed4e41d1612ea82211db8c0cd644)

17 years agor21101: Remove "unused" warning from Jerry's code. We still
Jeremy Allison [Wed, 31 Jan 2007 22:27:47 +0000 (22:27 +0000)]
r21101: Remove "unused" warning from Jerry's code. We still
have a build failure in 3.0.24 in event_add_timed ?
Jeremy
(This used to be commit ede30a8b4b705808d9c46ae848f5cbd89a808cdc)

17 years agor21100: Add the RPC hack fix to adddriver as well as adddriverex.
Jeremy Allison [Wed, 31 Jan 2007 21:33:45 +0000 (21:33 +0000)]
r21100: Add the RPC hack fix to adddriver as well as adddriverex.
Thanks to Martin Zielinski <mz@seh.de>.
Jeremy.
(This used to be commit d18a3f8b72f0f4cf0aa5b599f36ce3f4125adac3)

17 years agor21099: Protect ourselves from null pointer deref. This isn't
Jeremy Allison [Wed, 31 Jan 2007 20:28:32 +0000 (20:28 +0000)]
r21099: Protect ourselves from null pointer deref. This isn't
the correct fix for the Vista bug, but it needed as
protection against invalid RPC. Thanks to Martin Zielinski <mz@seh.de>
for pointing this out.
Jeremy.
(This used to be commit fbab8e4ba93325f68353ee345a257a5445d78e67)

17 years agor21098: When get_dc_name_via_netlogon() in get_dcs() fails to find a trusted DC
Günther Deschner [Wed, 31 Jan 2007 20:05:48 +0000 (20:05 +0000)]
r21098: When get_dc_name_via_netlogon() in get_dcs() fails to find a trusted DC
we may not just assume that we look for our own realm's dcs next.

Guenther
(This used to be commit bf0c4ce7b1194e18cc16a044b042d0066463cf87)

17 years agor21097: Ensure that when manipulating UNIX permissions via
Jeremy Allison [Wed, 31 Jan 2007 19:26:46 +0000 (19:26 +0000)]
r21097: Ensure that when manipulating UNIX permissions via
the UNIX extensions we use the correct mask/force mask
settings for new and existing files/directories. Bug
reported by Juran David <ext-david.juran@nokia.com>.
Jeremy.
(This used to be commit d84af53666369c314f02faa09b708ec6f971fa28)

17 years agor21096: Fix formatting.
Jeremy Allison [Wed, 31 Jan 2007 19:25:08 +0000 (19:25 +0000)]
r21096: Fix formatting.
Jeremy
(This used to be commit b35fa5168eafd536976fae29d61ac97a3752ab54)

17 years agor21093: Remove the hash and dnotify backends. Disabling FAM for this checkin, I'm
Volker Lendecke [Wed, 31 Jan 2007 16:56:27 +0000 (16:56 +0000)]
r21093: Remove the hash and dnotify backends. Disabling FAM for this checkin, I'm
working on that right now.

Volker
(This used to be commit 01c9fb17281e99300b339d2cfc0acac7ca94843c)

17 years agor21092: Ok, that's the one that activates the Samba4 notify backend.
Volker Lendecke [Wed, 31 Jan 2007 14:42:56 +0000 (14:42 +0000)]
r21092: Ok, that's the one that activates the Samba4 notify backend.

Now to clean up / fix lots of stuff.

Volker
(This used to be commit 9e7443fa1417c01be903b15073825dc4def78d99)

17 years agor21091: Fix the build without inotify
Volker Lendecke [Wed, 31 Jan 2007 14:36:50 +0000 (14:36 +0000)]
r21091: Fix the build without inotify
(This used to be commit 686345b7ed727db7b1d9bc164208ecfb612837b6)

17 years agor21090: Add some helper routines
Volker Lendecke [Wed, 31 Jan 2007 14:28:08 +0000 (14:28 +0000)]
r21090: Add some helper routines
(This used to be commit 985dde8ed0a7e6da5adf9c55654a4fd362b22acb)

17 years agor21089: Do notifies on rename
Volker Lendecke [Wed, 31 Jan 2007 14:24:29 +0000 (14:24 +0000)]
r21089: Do notifies on rename
(This used to be commit 2aadb95a7e58777ee7ff024cc9e14f4334970d50)

17 years agor21088: Apply some const
Volker Lendecke [Wed, 31 Jan 2007 14:19:09 +0000 (14:19 +0000)]
r21088: Apply some const
(This used to be commit 1f463f7cb59da2c819b45f33d797101943d5e205)

17 years agor21087: Make the param list of notify_fname match notify_trigger
Volker Lendecke [Wed, 31 Jan 2007 14:14:57 +0000 (14:14 +0000)]
r21087: Make the param list of notify_fname match notify_trigger
(This used to be commit defa28f9c3eda85a072b972fffd2d5de8bcf01f7)

17 years agor21084: Make the Samba4 files compile in Samba3, not activated yet.
Volker Lendecke [Wed, 31 Jan 2007 13:47:37 +0000 (13:47 +0000)]
r21084: Make the Samba4 files compile in Samba3, not activated yet.

Volker
(This used to be commit c24854433a28cc066072a7107e29aa7fe2bec3c8)

17 years agor21083: Actually make it static... :-)
Volker Lendecke [Wed, 31 Jan 2007 13:12:38 +0000 (13:12 +0000)]
r21083: Actually make it static... :-)
(This used to be commit 65f473d22bd8f3b04becfc0be369758898fdadb6)

17 years agor21082: Make canonicalize_path static to service.c -- we do have conn->connectpath
Volker Lendecke [Wed, 31 Jan 2007 13:09:07 +0000 (13:09 +0000)]
r21082: Make canonicalize_path static to service.c -- we do have conn->connectpath
(This used to be commit 06f58096e3785d0e2e0b9f2053d4975e44568e15)

17 years agor21081: Add forgotten function
Volker Lendecke [Wed, 31 Jan 2007 13:05:36 +0000 (13:05 +0000)]
r21081: Add forgotten function
(This used to be commit 4a99fa266672e2989f9e62baf9090eb45df750ea)

17 years agor21080: Reformatting
Volker Lendecke [Wed, 31 Jan 2007 12:55:39 +0000 (12:55 +0000)]
r21080: Reformatting
(This used to be commit 705f866a78ec3f1169543bf82fb48ea6580160a9)

17 years agor21079: Minimizing diff: Adopt the Samba4 style ChangeNotify flags.
Volker Lendecke [Wed, 31 Jan 2007 12:42:24 +0000 (12:42 +0000)]
r21079: Minimizing diff: Adopt the Samba4 style ChangeNotify flags.

Volker
(This used to be commit a3c1069b0c3da914e2ac7337fd9e924b1c811d39)

17 years agor21077: A step to minimize the diff later: This pulls in unmodified files from Samba4,
Volker Lendecke [Wed, 31 Jan 2007 12:24:59 +0000 (12:24 +0000)]
r21077: A step to minimize the diff later: This pulls in unmodified files from Samba4,
not compiled yet. This way the modifications become visible later.

ntvfs/common/notify.c -> smbd/notify_internal.c
ntvfs/sysdep/inotify.c -> smbd/notify_inotify.c

Naturally I had to disable notify again :-)

Volker
(This used to be commit cdb7d582b7397faa5926bff5783da7fef4209948)

17 years agor21076: Two pieces of infrastructure from Samba4: An API-compatible messaging wrapper
Volker Lendecke [Wed, 31 Jan 2007 12:01:52 +0000 (12:01 +0000)]
r21076: Two pieces of infrastructure from Samba4: An API-compatible messaging wrapper
and tdb_wrap_open.

Volker
(This used to be commit c01f164dcaf88fb7f3bed8f69b210ba8fab326d1)

17 years agor21074: Preparation for the import of samba4 notify: Add the file notify.idl and the
Volker Lendecke [Wed, 31 Jan 2007 11:48:14 +0000 (11:48 +0000)]
r21074: Preparation for the import of samba4 notify: Add the file notify.idl and the
resulting marshalling/unmarshalling routines in gen_ndr/

Volker
(This used to be commit a2ea54c23456925a8ed317edb1adf82d074041fc)

17 years agor21073: Fix compiler warning
Volker Lendecke [Wed, 31 Jan 2007 11:13:40 +0000 (11:13 +0000)]
r21073: Fix compiler warning
(This used to be commit 3977ee027f500c76bcfd3de34301d3959e9b6d2b)

17 years agor21070: * Add the new boolean 'winbind normalize names' option as discussed
Gerald Carter [Wed, 31 Jan 2007 05:38:36 +0000 (05:38 +0000)]
r21070: * Add the new boolean 'winbind normalize names' option as discussed
  on the samba-technical ml.  The replacement character is hardcoded
  as a '_' for now.
(This used to be commit bd8238417b8d692ed381a870901ff1ee4cfa80f6)

17 years agor21067: Finished refactoring setqpathinfo to be readable
Jeremy Allison [Wed, 31 Jan 2007 00:49:49 +0000 (00:49 +0000)]
r21067: Finished refactoring setqpathinfo to be readable
and modifiable by other people. Now to look over
the build farm and fix any breakage.
Jeremy.
(This used to be commit 997259f2479842ee888621ae2d5446797b3a7cb6)

17 years agor21064: The core of this patch is
Volker Lendecke [Tue, 30 Jan 2007 22:22:06 +0000 (22:22 +0000)]
r21064: The core of this patch is

 void message_register(int msg_type,
                      void (*fn)(int msg_type, struct process_id pid,
-                                void *buf, size_t len))
+                                void *buf, size_t len,
+                                void *private_data),
+                     void *private_data)
 {
        struct dispatch_fns *dfn;

So this adds a (so far unused) private pointer that is passed from
message_register to the message handler. A prerequisite to implement a tiny
samba4-API compatible wrapper around our messaging system. That itself is
necessary for the Samba4 notify system.

Yes, I know, I could import the whole Samba4 messaging system, but I want to
do it step by step and I think getting notify in is more important in this
step.

Volker
(This used to be commit c8ae60ed65dcce9660ee39c75488f2838cf9a28b)

17 years agor21063: All case statements are now NTSTATUS returning
Jeremy Allison [Tue, 30 Jan 2007 22:20:55 +0000 (22:20 +0000)]
r21063: All case statements are now NTSTATUS returning
functions. Now to factor out the post processing
and make all cases behave the same (no mixture
of "early returns" and "break"s.
Jeremy
(This used to be commit 7e17e54cb729e34c935927fe69a43690c7f446ae)

17 years agor21062: Should fix the build plus make all refactored
Jeremy Allison [Tue, 30 Jan 2007 20:49:37 +0000 (20:49 +0000)]
r21062: Should fix the build plus make all refactored
functions return NTSTATUS.
Jeremy.
(This used to be commit 1f3c2b2abca6f1b3b59b73df038832e14106ff76)

17 years agor21061: Refactoring all the cases into NTSTATUS returns.
Jeremy Allison [Tue, 30 Jan 2007 19:54:28 +0000 (19:54 +0000)]
r21061: Refactoring all the cases into NTSTATUS returns.
Jeremy.
(This used to be commit da4ce69d4057c241cf7b4b6b0dd2bf711dd28a43)

17 years agor21060: Start refactoring out the non-return case statements
Jeremy Allison [Tue, 30 Jan 2007 19:26:01 +0000 (19:26 +0000)]
r21060: Start refactoring out the non-return case statements
into functions.
Jeremy.
(This used to be commit 461db3c8ed045cac70eccf3200bf9163dbce5826)

17 years agor21058: Finish the easy refactoring - split out all the case
Jeremy Allison [Tue, 30 Jan 2007 18:45:19 +0000 (18:45 +0000)]
r21058: Finish the easy refactoring - split out all the case
statements that do early return. Next will be case
statements that need post processing, finally on to
qfilepathinfo and do the same.
Jeremy.
(This used to be commit c961d5ce94a8bf2e2ffba645e522f0e2e372e351)

17 years agor21057: More refactoring into functions.
Jeremy Allison [Tue, 30 Jan 2007 18:16:51 +0000 (18:16 +0000)]
r21057: More refactoring into functions.
Jeremy.
(This used to be commit fe2d7cb2dcd7c4d25d71f196aa557ce3e287bb4c)

17 years agor21056: Moving the set_domain_online_request to fork_domain_child() (formerly
Günther Deschner [Tue, 30 Jan 2007 16:51:42 +0000 (16:51 +0000)]
r21056: Moving the set_domain_online_request to fork_domain_child() (formerly
lived in trustdom_recv().

Jeremy, this is the better place I think but please check.

Guenther
(This used to be commit beed8b8b320ae9bd8aef669564a5403e4bb35bfd)

17 years agor21054: More function refactoring.
Jeremy Allison [Tue, 30 Jan 2007 02:27:29 +0000 (02:27 +0000)]
r21054: More function refactoring.
Jeremy.
(This used to be commit b6f43e9509cfedbf77c883cff793c469d6f86370)

17 years agor21053: More refactoring and fix the tests (set position info
Jeremy Allison [Tue, 30 Jan 2007 02:13:58 +0000 (02:13 +0000)]
r21053: More refactoring and fix the tests (set position info
on a pathname is ignored).
Jeremy.
(This used to be commit 3c7a876c909d3ba1fdf8f0e38735279a874ab245)

17 years agor21052: Refactoring.
Jeremy Allison [Tue, 30 Jan 2007 01:54:07 +0000 (01:54 +0000)]
r21052: Refactoring.
Jeremy.
(This used to be commit 9e31d7dba383c5c14f746537a631a4119dac0cd0)

17 years agor21051: More function refactoring... Added #if 0 for
Jeremy Allison [Tue, 30 Jan 2007 01:46:14 +0000 (01:46 +0000)]
r21051: More function refactoring... Added #if 0 for
questionable practice (ignoring bad fsp on
handle based call).
Jeremy.
(This used to be commit 5a8c9286c30319f2d2685d4ae29db37679b87e02)

17 years agor21050: Factor out SMB_SET_FILE_DISPOSITION_INFO. My
Jeremy Allison [Tue, 30 Jan 2007 01:36:45 +0000 (01:36 +0000)]
r21050: Factor out SMB_SET_FILE_DISPOSITION_INFO. My
intent is to factor out all cases where we
always return from the case.
Jeremy.
(This used to be commit 3eca52ba435954f338281f0a9d00b942bab28bab)

17 years agor21049: Start to refactor some of the setpath set code
Jeremy Allison [Tue, 30 Jan 2007 01:14:48 +0000 (01:14 +0000)]
r21049: Start to refactor some of the setpath set code
into separate functions (tridge mailed me a fresh
batch) to make it easier to add the POSIX open we'll
need soon.
Jeremy.
(This used to be commit 63bd8759fefe6af80186ab15b470658614690b48)

17 years agor21047: Hand marshalling hack from Martin Zielinski <mz@seh.de>
Jeremy Allison [Mon, 29 Jan 2007 22:51:44 +0000 (22:51 +0000)]
r21047: Hand marshalling hack from Martin Zielinski <mz@seh.de>
to allow Vista to upload printer drivers (it wants level 8
which we don't support yet). Downgrade in the same way
that Windows servers do.
Jeremy.
(This used to be commit 01c659692c3e054904f1af815cf243b8a1dde109)

17 years agor21046: Backing out svn r20403 (Andrew's krb5 ticket cleanup
Gerald Carter [Mon, 29 Jan 2007 21:15:25 +0000 (21:15 +0000)]
r21046: Backing out svn r20403 (Andrew's krb5 ticket cleanup
as this is causing the WRONG_PASSWORD error in the SetUserInfo()
call during net ads join).

We are now back to always list RC4-HMAC first if supported by
the krb5 libraries.
(This used to be commit 4fb57bce87588ac4898588ea4988eadff3a7f435)

17 years agor21036: Fix the ad nss info backend to not abort the search when called outside the...
Gerald Carter [Sat, 27 Jan 2007 03:27:34 +0000 (03:27 +0000)]
r21036: Fix the ad nss info backend to not abort the search when called outside the idmap daemon
(This used to be commit 57160e3dd96a7a776389da604393c20a738202ea)

17 years agor21035: Remove unneeded checks on incoming uid/gid for
Jeremy Allison [Sat, 27 Jan 2007 02:33:21 +0000 (02:33 +0000)]
r21035: Remove unneeded checks on incoming uid/gid for
mknod (fifo) unix extensions code. Problem
discovered by Anders Karlsson <anders.karlsson@redhat.com>.
Jeremy.
(This used to be commit ec6033ad7c8d343969e3dcf59232cb16d075364f)

17 years agor21034: Don't force user to have pidl in their PATH.
James Peach [Fri, 26 Jan 2007 22:52:55 +0000 (22:52 +0000)]
r21034: Don't force user to have pidl in their PATH.
(This used to be commit 9e2118969d444d2ffd1e9818cbbb155238fab719)

17 years agor21033: To make the logs a bit more readable let the winbind dc connect child
Günther Deschner [Fri, 26 Jan 2007 15:58:10 +0000 (15:58 +0000)]
r21033: To make the logs a bit more readable let the winbind dc connect child
write to a separate logfile.

Guenther
(This used to be commit 0313edc0d66c26b5acb6250e0f146218a02b42cd)

17 years agor21021: Fix memleak.
Günther Deschner [Thu, 25 Jan 2007 16:54:53 +0000 (16:54 +0000)]
r21021: Fix memleak.

Guenther
(This used to be commit 4e622572eb7939c6aa8e99fd9595bf28836bd5a3)

17 years agor21020: Some pam_winbind fixes:
Günther Deschner [Thu, 25 Jan 2007 15:05:23 +0000 (15:05 +0000)]
r21020: Some pam_winbind fixes:
* make debug_state also configurable from the config file
* minor code cleanup

Guenther
(This used to be commit c562095953df55c91e3dad8f5c29c0b66664b62b)

17 years agor21019: Fix typo.
Günther Deschner [Thu, 25 Jan 2007 15:00:41 +0000 (15:00 +0000)]
r21019: Fix typo.

Guenther
(This used to be commit adb40884e04069e7de7580b6531675ebaed5c117)

17 years agor21018: Removing the set_domain_online_request again in trustdom_recv().
Günther Deschner [Thu, 25 Jan 2007 14:08:45 +0000 (14:08 +0000)]
r21018: Removing the set_domain_online_request again in trustdom_recv().

Jeremy, we really can't do that. There are setups with hundred and more
trusted domains out there, I have one customer who tells me it takes
more then half an hour for him after winbind is up and running. That
request registers the check_domain_online_handler which in turn forks
off the child immediately. Also discussed with Volker.

Guenther
(This used to be commit ccd4812c0b436a12b809668d09c5681111125f3d)

17 years agor21016: Fix pam_sm_setcred again.
Günther Deschner [Thu, 25 Jan 2007 10:29:04 +0000 (10:29 +0000)]
r21016: Fix pam_sm_setcred again.

Jerry, the switch statement must ignore the PAM_SILENT flag.

Guenther
(This used to be commit 46d23c72bf4f3bd04021a9caf8d6b1380352b811)

17 years agor21015: fix typo that breaks the build
Gerald Carter [Thu, 25 Jan 2007 02:36:20 +0000 (02:36 +0000)]
r21015: fix typo that breaks the build
(This used to be commit f82a5175304a12b18abb2bc3d9fd9f7023998357)

17 years agor21014: move some functionss to winbindd_group.c and make static
Gerald Carter [Thu, 25 Jan 2007 02:28:00 +0000 (02:28 +0000)]
r21014: move some functionss to winbindd_group.c and make static
(This used to be commit af5a2fa9eccf753106cd944be31f38845363ace6)

17 years agor21013: * Remove "inline" keyword
Gerald Carter [Thu, 25 Jan 2007 02:24:56 +0000 (02:24 +0000)]
r21013: * Remove "inline" keyword
* Remove anpther check for PAM_SILENT that prevents logging to syslog
* Add missing check for TRY_FIRST_PASS when using authtok (missed
  from previous merge)
(This used to be commit ed794f0872b749955f56112507fd3ae7a6c6e6f5)

17 years agor21012: Patch from Danilo Almeida @ Centeris (via me):
Gerald Carter [Thu, 25 Jan 2007 01:56:34 +0000 (01:56 +0000)]
r21012: Patch from Danilo Almeida @ Centeris (via me):

Details: Improve PAM logging
- The improved logging is far tracking down PAM-related bugs
- PAM_SILENT was being mis-used to suppress syslog output instead of
  suppressing user output.  This lets PAM_SILENT still log to syslog.
- Allow logging of item & data state via debug_state config file option.
- Logging tracks the pam handle used.
(This used to be commit cc1a13a9f06e5c15c8df19d0fbb31dbdeb81a9cc)

17 years agor21011: Another patch from Danilo Almeida @ Centeris (via me):
Gerald Carter [Thu, 25 Jan 2007 01:18:31 +0000 (01:18 +0000)]
r21011: Another patch from Danilo Almeida @ Centeris (via me):

Details: Reset the "new password prompt required" state whenever
we do a new auth.  In more detail, in pam_sm_authenticate, if not
settting PAM_WINBIND_NEW_AUTHTOK_REQD, then clean any potentially
present PAM_WINBIND_NEW_AUTHTOK_REQD.
(This used to be commit 402e8594759b42c1986f4f8d69273f68ec5160af)

17 years agor21010: fix the pstring change in ntlm_auth for require-membership-of in ntlm_auth
Gerald Carter [Thu, 25 Jan 2007 00:50:36 +0000 (00:50 +0000)]
r21010: fix the pstring change in ntlm_auth for require-membership-of in ntlm_auth
(This used to be commit 2d877e41d1fdf71b45074f257930062539e379d8)

17 years agor21009: Patch from Danilo Almeida @ Centeris (via me).
Gerald Carter [Thu, 25 Jan 2007 00:47:27 +0000 (00:47 +0000)]
r21009: Patch from Danilo Almeida @ Centeris (via me).

Patch details:

Support most options in pam_winbind.conf; support comma-separated names in
require-membership-of.  Details below:

1) Provides support for almost all config options in pam_winbind.conf
   (all except for use_first_pass, use_authtok, and unknown_ok).

 - That allows us to work well when invoked via call_modules from
   pam_unix2.conf as well as allowing use of spaces in names used
   w/require_membership_of.

2) Support for comma-separated list of names or SID strings in
   require_membership_of/require-membership-of.

 - Increased require_membership_of field in winbind request from fstring
   (256) to pstring (1024).

 - In PAM side, parse out multiple names or SID strings and convert
   all of them to SID strings.

 - In Winbind side, support membership check against multiple SID strings.
(This used to be commit 4aca9864896b3e0890ffc9a6980d7ef1311138f7)

17 years agor21007: move $(SOCKET_WRAPPER_OBJ) to OBJ definition instead of link line like
Herb Lewis [Wed, 24 Jan 2007 19:53:58 +0000 (19:53 +0000)]
r21007: move $(SOCKET_WRAPPER_OBJ) to OBJ definition instead of link line like
all other uses - merge from 3_0_24
(This used to be commit 99172f56c0041d43890167150cfc575d7c1b59f1)

17 years agor21005: Add a debug message for EAGAIN error of setresuid.
Volker Lendecke [Wed, 24 Jan 2007 16:15:29 +0000 (16:15 +0000)]
r21005: Add a debug message for EAGAIN error of setresuid.

Volker
(This used to be commit 70c589a8323637ff8e1f96a56f8acaf550a58dc4)

17 years agor21004: Patch from Mathias Dietz <MDIETZ@de.ibm.com> to fix multi-node
Jim McDonough [Wed, 24 Jan 2007 15:29:58 +0000 (15:29 +0000)]
r21004: Patch from Mathias Dietz <MDIETZ@de.ibm.com> to fix multi-node
sharemodes in gpfs.
(This used to be commit 61841b225c2a09dcdb4b1242cb0ad0429ec1948e)

17 years agor21003: Display LDAP base in debug statement.
Günther Deschner [Wed, 24 Jan 2007 14:59:01 +0000 (14:59 +0000)]
r21003: Display LDAP base in debug statement.

Guenther
(This used to be commit fb5830f87a16dbec16893348080bcdfc61e27ab0)

17 years agor21002: Get rid of unused macros - merge change from 3_0_24
Herb Lewis [Wed, 24 Jan 2007 14:53:03 +0000 (14:53 +0000)]
r21002: Get rid of unused macros - merge change from 3_0_24
(This used to be commit 9d23cf0cc4a8974bf0cf74b219a1138383083360)

17 years agor21001: * Use a simple '#define LDAPMessage void' to fix the build
Gerald Carter [Wed, 24 Jan 2007 14:39:46 +0000 (14:39 +0000)]
r21001: * Use a simple '#define LDAPMessage void' to fix the build
  problems in the nss_info interface when HAVE_LDAP is undefined.
* Revert previous ifdef HAVE_ADS brakets
* Remove an unused init function wrapper.
(This used to be commit 2ba353848b6d8d36520e7fd82576653a39c602cd)

17 years agor20998: Fix debug message
Volker Lendecke [Wed, 24 Jan 2007 11:26:22 +0000 (11:26 +0000)]
r20998: Fix debug message
(This used to be commit a5a1c8c785939e7cf6108adb573ac277726f584b)

17 years agor20996: Build fix from Kai Blin
Andrew Bartlett [Wed, 24 Jan 2007 08:55:00 +0000 (08:55 +0000)]
r20996: Build fix from Kai Blin
(This used to be commit 91fdbd4cf5f8fe44adcbe8dc8ef38579a8306c39)

17 years agor20994: Remove unused code.
James Peach [Wed, 24 Jan 2007 05:03:15 +0000 (05:03 +0000)]
r20994: Remove unused code.
(This used to be commit 8052a18f29d32f37c52868b17143af8d76bf5e6e)