Commit 02001dfb authored by Gerald Carter's avatar Gerald Carter Committed by Gerald (Jerry) Carter
Browse files

r1381: fixing behavior found by gd@sernet.de; we must use the...

r1381: fixing behavior found by gd@sernet.de; we must use the userPrincipalName value (host/hostname@REALM) and not the servicePrincipalName (host/fqdn@REALM) in the SASL binds
(This used to be commit 959da6e176da9f6a687265e50489b7db3d6712c0)
parent dda9d762
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -255,10 +255,10 @@ got_connection:
	ldap_set_option(ads->ld, LDAP_OPT_PROTOCOL_VERSION, &version);

	if (!ads->auth.user_name) {
		fstring my_fqdn;
		name_to_fqdn(my_fqdn, global_myname());
		strlower_m(my_fqdn);
		asprintf(&ads->auth.user_name, "host/%s", my_fqdn);
		/* have to use the userPrincipalName value here and 
		   not servicePrincipalName; found by Guenther Deschner @ Sernet */

		asprintf(&ads->auth.user_name, "host/%s", global_myname() );
	}

	if (!ads->auth.realm) {