mirror of
https://github.com/samba-team/samba.git
synced 2025-03-08 04:58:40 +03:00
Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-local
(This used to be commit edd9ecce9511871d9c9942d50eb91c68a8e04ec9)
This commit is contained in:
commit
1e36856ae5
@ -379,19 +379,34 @@ _PUBLIC_ int cli_credentials_get_client_gss_creds(struct cli_credentials *cred,
|
||||
maj_stat = gss_krb5_import_cred(&min_stat, ccache->ccache, NULL, NULL,
|
||||
&gcc->creds);
|
||||
if (maj_stat) {
|
||||
talloc_free(gcc);
|
||||
if (min_stat) {
|
||||
ret = min_stat;
|
||||
} else {
|
||||
ret = EINVAL;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
if (ret == 0) {
|
||||
cred->client_gss_creds_obtained = cred->ccache_obtained;
|
||||
talloc_set_destructor(gcc, free_gssapi_creds);
|
||||
cred->client_gss_creds = gcc;
|
||||
*_gcc = gcc;
|
||||
|
||||
/* don't force GSS_C_CONF_FLAG and GSS_C_INTEG_FLAG */
|
||||
maj_stat = gss_set_cred_option(&min_stat, gcc->creds,
|
||||
GSS_KRB5_CRED_NO_CI_FLAGS_X,
|
||||
GSS_C_NO_BUFFER);
|
||||
if (maj_stat) {
|
||||
talloc_free(gcc);
|
||||
if (min_stat) {
|
||||
ret = min_stat;
|
||||
} else {
|
||||
ret = EINVAL;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
return ret;
|
||||
|
||||
cred->client_gss_creds_obtained = cred->ccache_obtained;
|
||||
talloc_set_destructor(gcc, free_gssapi_creds);
|
||||
cred->client_gss_creds = gcc;
|
||||
*_gcc = gcc;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -6,6 +6,7 @@
|
||||
# GPL
|
||||
|
||||
use File::Basename;
|
||||
use Cwd 'getcwd';
|
||||
|
||||
my $file = shift;
|
||||
my $prefix = shift;
|
||||
@ -31,7 +32,7 @@ my $header = "$dirname/$prefix.h";
|
||||
|
||||
print "$header: \$(heimdalsrcdir)/$file \$(ASN1C)\n";
|
||||
print "\t\@echo \"Compiling ASN1 file \$(heimdalsrcdir)/$file\"\n";
|
||||
print "\t\@\$(heimdalbuildsrcdir)/asn1_compile_wrapper.sh \$(builddir) $dirname \$(ASN1C) \$(abspath \$(heimdalsrcdir)/$file) $prefix $options\n\n";
|
||||
print "\t\@\$(heimdalbuildsrcdir)/asn1_compile_wrapper.sh \$(builddir) $dirname \$(ASN1C) " . getcwd() . "/\$(heimdalsrcdir)/$file $prefix $options\n\n";
|
||||
|
||||
open(IN,"heimdal/$file") or die("Can't open heimdal/$file: $!");
|
||||
my @lines = <IN>;
|
||||
|
@ -1,6 +1,7 @@
|
||||
#!/usr/bin/perl
|
||||
|
||||
use File::Basename;
|
||||
use Cwd 'getcwd';
|
||||
|
||||
my $file = shift;
|
||||
my $dirname = shift;
|
||||
@ -10,7 +11,7 @@ my $header = "$dirname/$basename"; $header =~ s/\.et$/.h/;
|
||||
my $source = "$dirname/$basename"; $source =~ s/\.et$/.c/;
|
||||
print "$header $source: \$(heimdalsrcdir)/$file \$(ET_COMPILER)\n";
|
||||
print "\t\@echo \"Compiling error table $file\"\n";
|
||||
print "\t\@\$(heimdalbuildsrcdir)/et_compile_wrapper.sh \$(builddir) $dirname \$(ET_COMPILER) \$(abspath \$(heimdalsrcdir)/$file) $source\n\n";
|
||||
print "\t\@\$(heimdalbuildsrcdir)/et_compile_wrapper.sh \$(builddir) $dirname \$(ET_COMPILER) " . getcwd() . "/\$(heimdalsrcdir)/$file $source\n\n";
|
||||
|
||||
print "clean:: \n";
|
||||
print "\t\@rm -f $header $source\n\n";
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include "replace.h"
|
||||
#include "events.h"
|
||||
#include "events_internal.h"
|
||||
#include "events_util.h"
|
||||
#include <sys/epoll.h>
|
||||
#include <libaio.h>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user