[Pkg-samba-maint] DO NOT REPLY [Bug 3727] smbpasswd fails with assertion failure when -L is used by a non root user
samba-bugs at samba.org
samba-bugs at samba.org
Wed Nov 14 00:40:13 UTC 2007
https://bugzilla.samba.org/show_bug.cgi?id=3727
------- Comment #1 from vorlon at debian.org 2007-11-13 18:40 CST -------
Created an attachment (id=2967)
--> (https://bugzilla.samba.org/attachment.cgi?id=2967&action=view)
avoid get_global_sam_sid panic in client tools
Here is a patch which updates the client software (pam_smbpass and smbclient)
to detect non-root invocations that require get_global_sam_sid() and bypass
them with an error message as appropriate, to avoid triggering an smb_panic
where this is foreseeable and avoidable. This is particularly important in the
case of pam_smbpass, where a smb_panic() will terminate the calling application
(e.g., a screensaver).
A client-specific check is preferable over changing the error handling in
get_global_sam_sid() because the server can always rely on this operation being
run as root and there is a lack of error handling in various callers of the
function, so smb_panic() is still appropriate for the general case.
--
Configure bugmail: https://bugzilla.samba.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the Pkg-samba-maint
mailing list