s3-net: display full value of "msDS-SupportedEncryptionTypes".
authorGünther Deschner <gd@samba.org>
Mon, 29 Sep 2014 14:01:25 +0000 (16:01 +0200)
committerGünther Deschner <gd@samba.org>
Wed, 8 Oct 2014 16:18:49 +0000 (18:18 +0200)
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Wed Oct  8 18:18:50 CEST 2014 on sn-devel-104

source3/utils/net_ads.c

index 5f18bf4401a50fb90a3f1d98f772fb9e93f89d28..e96377f8fa6545609e0ed1ce5e0152e8585a87b9 100644 (file)
@@ -2916,11 +2916,10 @@ static int net_ads_enctype_lookup_account(struct net_context *c,
 static void net_ads_enctype_dump_enctypes(const char *username,
                                          const char *enctype_str)
 {
-       int enctypes;
+       int enctypes = atoi(enctype_str);
 
-       d_printf(_("'%s' uses \"msDS-SupportedEncryptionTypes\":\n"), username);
-
-       enctypes = atoi(enctype_str);
+       d_printf(_("'%s' uses \"msDS-SupportedEncryptionTypes\": %d (0x%08x)\n"),
+               username, enctypes, enctypes);
 
        printf("[%s] 0x%08x DES-CBC-CRC\n",
                enctypes & ENC_CRC32 ? "X" : " ",