1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-08 05:57:51 +03:00

21127 Commits

Author SHA1 Message Date
Herb Lewis
c60687db11 r20261: merge 20260 from samba_3_0_24
clean up a bunch of no previous prototype warnings
2007-10-10 12:16:37 -05:00
Volker Lendecke
4090bc4bca r20257: Hey, change_owner_to_parent is now static :-) 2007-10-10 12:16:37 -05:00
Volker Lendecke
7e0005c14b r20255: Activate BASE-SAMBA3ERROR in the build farm 2007-10-10 12:16:37 -05:00
Günther Deschner
2d2de1ac27 r20254: The pam_chauthtok needs to go through the async interface as well.
This fixes pam password changes in the online case.

Guenther
2007-10-10 12:16:37 -05:00
Volker Lendecke
ddae494fbe r20253: Reduce some code duplication, make reply_mkdir go through the same code paths
ncreate does. This is a bit slower (about 10-20%), because it goes touches the
share mode db, but I think not having to call change_owner_to_parent and
friends in fewer places outweighs this. And, mkdir is not the way current
Windows boxes create directories, they do it via the ncreate call.

Volker
2007-10-10 12:16:37 -05:00
Simo Sorce
2048d49150 r20252: Revert back to const, but I have a fleble feeling we should go the ther way. 2007-10-10 12:16:36 -05:00
Jeremy Allison
5d36c4e031 r20250: If we've come from being globally offline we
don't have a check online event handler set.
We need to add one once we're been asked to
go back online as this is the only way to actually
go into the online state. Doh ! :-).
Jeremy.
2007-10-10 12:16:36 -05:00
Günther Deschner
f6c9421abd r20249: Fail when parsing invalid options in _pam_parse.
Guenther
2007-10-10 12:16:36 -05:00
Herb Lewis
ebe16589cb r20248: merge 20247 from samba_3_0_24
get rid of warning: value computed is not used
2007-10-10 12:16:36 -05:00
Herb Lewis
e9df051f52 r20245: merge 20244 from samba_3_0_24
get rid of more nested extern declarations warnings
2007-10-10 12:16:36 -05:00
Simo Sorce
7167e7b26a r20243: Make lookup_name resolve both the mapped and the real unix group name 2007-10-10 12:16:35 -05:00
Simo Sorce
6a0260fb04 r20242: these are not really const as we set them in the function 2007-10-10 12:16:35 -05:00
Günther Deschner
222320373f r20241: Slightly improve readability of the pam_vsyslog replacement function.
Guenther
2007-10-10 12:16:35 -05:00
Günther Deschner
ecbab58826 r20240: Be a little more verbose about the credential flags when the debug flag
is set.

Guenther
2007-10-10 12:16:35 -05:00
Günther Deschner
2c549f71f1 r20239: Parse the configfile for pam_sm_setcred as well
(e.g. to get the debug flag)

Guenther
2007-10-10 12:16:35 -05:00
James Peach
d6382092e7 r20237: Replace exit_server with exit_server_cleanly where appropriate. All
send_smb failures should be clean exits. All times when we exit as
a matter of policy should also be clean exits.
2007-10-10 12:16:34 -05:00
James Peach
91e90f3bc4 r20235: Don't use realloc directly. 2007-10-10 12:16:34 -05:00
Volker Lendecke
9d8b48c0ef r20229: Avoid a silly function call in mkdir_internal. None of the callers look at
errno, all go straight to ERROR_NT(status).

Volker
2007-10-10 12:16:34 -05:00
Volker Lendecke
0874093e5f r20228: Bring the calling conventions of inherit_access_acl and change_owner_to_parent
a bit closer together: Move the lp_inherit_perms() check into the callers.

Volker
2007-10-10 12:16:34 -05:00
Volker Lendecke
b24cf79e9e r20227: Simplify logic in vfs_MkDir() a bit 2007-10-10 12:16:33 -05:00
Volker Lendecke
fdb310f579 r20218: Same fix as r20217 -- can we consolidate that duplicated code a bit? 2007-10-10 12:16:33 -05:00
Volker Lendecke
04845f600b r20217: uid_t and gid_t are not necessarily 32 bit. In assignments we get an automatic
conversion, but not when we pass pointers down to other functions.

Simo, please check.

Volker
2007-10-10 12:16:33 -05:00
Simo Sorce
07bdbb4c21 r20216: Fix fallback code.
A reversed check made it impossile to fallback to the Unix Domain mapping code.
Also fix a potential use of a freed array.

Jerry,
my tests shows that this code now correctly handle the fallback to Unix Domain
when our Domain member is asked for a mapped group that has a unix name different
from the Windows name against a Samba DC and we do not use winbindd but share
users/groups by other means (ldap / sync of passwd and group files)

Immediate Fix would be to discuss if we should answer back when DOMAIN\unixgroup -> SID
is asked for, in the case the unixgroup name is mapped to a different name.
IE: DOMAIN\Domain Admins -> ntadmins

Currently if we are asked for "DOMAIN\Domain Admins" we return the dom admins SID
If we are asked for "DOMAIN\ntadmins we return "not found", but we may consider to
return the Domain admins SID in this case too.

Comments are welcome on this point!

Long term fix I think is the unixinfo pipe and of course an idmap_unixinfo moudle.

Simo.
2007-10-10 12:16:33 -05:00
Volker Lendecke
a77d8fa08e r20215: Next step trying to fix the Solaris build.
I think "anonimous" is correctly spelled "anonymous". The Solaris compile is
referring to this as "anonymous" in line 814 of smbldap.c. Simo, please check.

Thanks,

Volker
2007-10-10 12:16:33 -05:00
Volker Lendecke
b459096a15 r20214: Fix a type-punned warning. Simo, Jerry, please check 2007-10-10 12:16:33 -05:00
Volker Lendecke
902d81becb r20212: Attempt to fix the Solaris build 2007-10-10 12:16:32 -05:00
Volker Lendecke
ab45c50da3 r20211: send_nt_replies does not need the inbuf arg 2007-10-10 12:16:32 -05:00
Volker Lendecke
77e556f4a3 r20210: registry_fetch_values is not needed anymore, fix typo 2007-10-10 12:16:32 -05:00
Volker Lendecke
92bc870768 r20209: Fix two memleaks 2007-10-10 12:16:32 -05:00
Jeremy Allison
437cb7c888 r20208: Change sprintf_append() never to use malloc,
but always use a talloc context.
Thanks to simo for pointing this out.
Jeremy.
2007-10-10 12:16:32 -05:00
Jeremy Allison
47bdeb4efe r20207: Fix a couple more places where extra_data was
being talloc'ed off the NULL context instead
of being malloced.
Jeremy.
2007-10-10 12:16:32 -05:00
Jeremy Allison
a7f294b592 r20206: Start cleaning up the talloc_ctx mess.
child->mem_ctx isn't actually used for
anything, so remove it.
Jeremy.
2007-10-10 12:16:31 -05:00
Herb Lewis
339c029521 r20202: fix make clean 2007-10-10 12:16:31 -05:00
Herb Lewis
3f8587fc6d r20201: merge makefile changes from 3_0_24 2007-10-10 12:16:31 -05:00
Stefan Metzmacher
c718eb7a7c r20197: merge talloc fixes from samba4:
- make most static functions inline
- handle NULL pointers in talloc_parent_chunk()
- use talloc_parent_chunk() in talloc_parent_name()
  to fix a bug found by the IBM checker

metze
2007-10-10 12:16:31 -05:00
Günther Deschner
9f34c9f369 r20186: Fix winbind crash bug in WINBIND_GETGROUPS.
response_extra_sent() expects to free a malloced
extra_data.data while the add_XX_to_array functions all return talloced
memory now. Jeremy, please check.

Guenther
2007-10-10 12:16:31 -05:00
Günther Deschner
fe3ed63d29 r20183: Fix the build.
Guenther
2007-10-10 12:16:31 -05:00
Jeremy Allison
794ebd8a84 r20181: Improve NT status to pam error mapping.
Jeremy.
2007-10-10 12:16:30 -05:00
Jeremy Allison
4a74c55384 r20180: Ensure that pam returns the correct error messages
when offline and or doing password changes.
Jeremy.
2007-10-10 12:16:30 -05:00
Jeremy Allison
ea8215935e r20179: Sync up with Samba4 - remove blank lines at the
end parsing a file.
Jeremy.
2007-10-10 12:16:30 -05:00
Jeremy Allison
b33bde7b39 r20178: Ensure we allocate the intermediate trans structs
off conn->mem_ctx, not the null context so we can
safefy free everything on conn close. Should fix
possible memleak.
Jeremy.
2007-10-10 12:16:29 -05:00
Jeremy Allison
da3d0b6234 r20174: If we're only going to call one handler per message
then terminate the traversal once we've done that.
Jeremy.
2007-10-10 12:16:29 -05:00
Gerald Carter
3486acd3c3 r20173: DNS update fixes:
* Fix DNS updates for multi-homed hosts
* Child domains often don't have an NS record in
  DNS so we have to fall back to looking up the the NS
  records for the forest root.
* Fix compile warning caused by mismatched 'struct in_addr'
  and 'in_addr_t' parameters called to DoDNSUpdate()
2007-10-10 12:16:29 -05:00
Günther Deschner
a1378979be r20171: Don't delete the krb5 credential if others still reference to it.
Guenther
2007-10-10 12:16:29 -05:00
Gerald Carter
a3b6734fda r20170: Fix secure DNS updates to work against
Wnidows 2000 DNS which expects the TKEY payload to
be in the answer section and not in the additional
set of records (like Windows 2003 and the RFC).
2007-10-10 12:16:29 -05:00
Simo Sorce
4a81ee9608 r20169: Support for fallback to legacy mapping code was not completely tested.
Add necessary fixes.
2007-10-10 12:16:28 -05:00
Jeremy Allison
2e9b6faeae r20165: Change messaging subsystem to only allow one message
per type - this is all we use right now and makes
re-entrancy problems with deleting handlers with
a message dispatch loop go away.
Jeremy.
2007-10-10 12:16:28 -05:00
Jeremy Allison
27a4c11214 r20160: Fix long-standing (ie. from initial code I think) bug
in tdb message processing. If we're inside a dispatch
function and we delete our own handler we'd walk onto
the next pointer from a deleted memory block. Fixes
crash bug in winbindd (and goodness knows where else).
Jeremy.
2007-10-10 12:16:28 -05:00
Simo Sorce
20aa6322ef r20155: revert, I misread 2007-10-10 12:16:28 -05:00
Simo Sorce
bf8dc44cc2 r20154: Fix nasty typo, hunting another bug 2007-10-10 12:16:28 -05:00