summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-09-17 18:10:16 -0700
committerJeremy Allison <jra@samba.org>2013-09-18 08:58:30 -0700
commit75f353b857d50291672adefc6eefd210c9e8a0f7 (patch)
treeb1a777515fbcd75c750712d1b32291a5df6bf3ee /source3/client
parentff886940272354743cd6eb50717891454d8e5500 (diff)
downloadsamba-75f353b857d50291672adefc6eefd210c9e8a0f7.tar.gz
samba-75f353b857d50291672adefc6eefd210c9e8a0f7.tar.bz2
samba-75f353b857d50291672adefc6eefd210c9e8a0f7.zip
s3: libsmb - 10150 - Not all OEM servers support the ALTNAME info level.
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>
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/client.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index a348644d17..c3a557ede6 100644
--- a/source3/client/client.c
+++ b/source3/client/client.c
@@ -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;