mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
ipa-kdb: Allow to build with samba 4.5
daemons/ipa-kdb/ipa_kdb_mspac.c: In function 'filter_logon_info':
daemons/ipa-kdb/ipa_kdb_mspac.c:1536:19: error: 'struct PAC_LOGON_INFO'
has no member named 'res_group_dom_sid'
if (info->info->res_group_dom_sid != NULL &&
^~
daemons/ipa-kdb/ipa_kdb_mspac.c:1537:19: error: 'struct PAC_LOGON_INFO'
has no member named 'res_groups'; did you mean 'resource_groups'?
info->info->res_groups.count != 0) {
^~
mv -f .deps/ipa_kdb_delegation.Tpo .deps/ipa_kdb_delegation.Plo
Makefile:806: recipe for target 'ipa_kdb_mspac.lo' failed
make[3]: *** [ipa_kdb_mspac.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
Related change in samba
4406cf792a
Resolves:
https://fedorahosted.org/freeipa/ticket/6173
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
58da5fb4b9
commit
e7480bed27
@ -170,6 +170,18 @@ PKG_CHECK_MODULES([SAMBAUTIL], [samba-util])
|
||||
SAMBA40EXTRA_LIBPATH="-L`$PKG_CONFIG --variable=libdir samba-util`/samba -Wl,-rpath=`$PKG_CONFIG --variable=libdir samba-util`/samba"
|
||||
AC_SUBST(SAMBA40EXTRA_LIBPATH)
|
||||
|
||||
bck_cflags="$CFLAGS"
|
||||
CFLAGS="$NDRPAC_CFLAGS"
|
||||
AC_CHECK_MEMBER(
|
||||
[struct PAC_DOMAIN_GROUP_MEMBERSHIP.domain_sid],
|
||||
[AC_DEFINE([HAVE_STRUCT_PAC_DOMAIN_GROUP_MEMBERSHIP], [1],
|
||||
[struct PAC_DOMAIN_GROUP_MEMBERSHIP is available.])],
|
||||
[AC_MSG_NOTICE([struct PAC_DOMAIN_GROUP_MEMBERSHIP is not available])],
|
||||
[[#include <ndr.h>
|
||||
#include <gen_ndr/krb5pac.h>]])
|
||||
|
||||
CFLAGS="$bck_cflags"
|
||||
|
||||
LIBPDB_NAME=""
|
||||
AC_CHECK_LIB([samba-passdb],
|
||||
[make_pdb_method],
|
||||
|
@ -20,6 +20,8 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#include "ipa_kdb.h"
|
||||
#include "ipa_mspac.h"
|
||||
#include <talloc.h>
|
||||
@ -1533,10 +1535,17 @@ krb5_error_code filter_logon_info(krb5_context context,
|
||||
|
||||
/* According to MS-KILE, ResourceGroups must be zero, so check
|
||||
* that it is the case here */
|
||||
#ifdef HAVE_STRUCT_PAC_DOMAIN_GROUP_MEMBERSHIP
|
||||
if (info->info->resource_groups.domain_sid != NULL &&
|
||||
info->info->resource_groups.groups.count != 0) {
|
||||
return EINVAL;
|
||||
}
|
||||
#else
|
||||
if (info->info->res_group_dom_sid != NULL &&
|
||||
info->info->res_groups.count != 0) {
|
||||
return EINVAL;
|
||||
}
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user