Make krb5 wrapper library common so they can be used all over
[mat/samba.git] / source3 / libsmb / cliconnect.c
index b9634eb402d038a35df8c788b2cd8e6ae02e8bb1..9c1e3e1275db3dd129acffd62677e2d2de9365ad 100644 (file)
@@ -1962,7 +1962,8 @@ static ADS_STATUS cli_session_setup_spnego(struct cli_state *cli,
                        } else {
                                principal = kerberos_get_principal_from_service_hostname(talloc_tos(),
                                                                                         "cifs",
-                                                                                        remote_name);
+                                                                                        remote_name,
+                                                                                        lp_realm());
                        }
 
                        if (!principal) {