s3: libsmb - 10150 - Not all OEM servers support the ALTNAME info level.
authorJeremy Allison <jra@samba.org>
Wed, 18 Sep 2013 01:10:16 +0000 (18:10 -0700)
committerKarolin Seeger <kseeger@samba.org>
Thu, 19 Sep 2013 10:06:57 +0000 (12:06 +0200)
Sigh. Some OEM servers return NT_STATUS_NOT_IMPLEMENTED not
NT_STATUS_NOT_SUPPORTED.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
(cherry picked from commit 75f353b857d50291672adefc6eefd210c9e8a0f7)

Autobuild-User(v4-1-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-1-test): Thu Sep 19 12:06:58 CEST 2013 on sn-devel-104

source3/client/client.c

index 0e05c8908b723533453ffb4e73e7a19643f8824d..afa58475f2fb03e040e88bd9eb2e944d736d0931 100644 (file)
@@ -1710,10 +1710,11 @@ static int do_allinfo(const char *name)
                d_printf("%s getting alt name for %s\n", nt_errstr(status),
                         name);
                /*
-                * Ignore not supported, it does not hurt if we can't list
-                * alternate names.
+                * Ignore not supported or not implemented, it does not
+                * hurt if we can't list alternate names.
                 */
-               if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_SUPPORTED)) {
+               if (NT_STATUS_EQUAL(status, NT_STATUS_NOT_SUPPORTED) ||
+                   NT_STATUS_EQUAL(status, NT_STATUS_NOT_IMPLEMENTED)) {
                        altname[0] = '\0';
                } else {
                        return false;