This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: /dev/ptmx fails with Azure accounts
On Monday, August 15, 2016 12:29, "rmora@aboutgolf.com" <rmora@aboutgolf.com> said:
>
>
> Hi
>
> Sorry for the delay in getting back to this. Here is the output I get:
>
> Unknown+User@Lenovo-PC /cygdrive/c/cygwin64
> $ gcc -W azure-check3.c -l Netapi32 -o azure-check3
> azure-check3.c: In function ‘main’:
> azure-check3.c:50:1: warning: ‘status’ may be used uninitialized in
> this function [-Wmaybe-uninitialized]
> printf ("DsGetDcNameW: %u\n", status);
> ^
>
> Unknown+User@Lenovo-PC /cygdrive/c/cygwin64
> $ ./azure-check3
> Sid: S-1-12-1-2043906341-1249388050-2635137163-399631282
> Dom\Name: AzureAD\RussellMora
> DsGetDcNameW: 0
> NetUserGetInfo(NULL, 3): 2221
> NetUserGetInfo(NULL, 24): 2221
>
> Unknown+User@Lenovo-PC /cygdrive/c/cygwin64
> $
>
Oops - I fixed the warning. Now I get this:
Unknown+User@Lenovo-PC /cygdrive/c/cygwin64
$ diff -u azure-check3.c__ORIG azure-check3.c
--- azure-check3.c__ORIG 2016-08-15 12:48:06.682783600 -0400
+++ azure-check3.c 2016-08-15 12:45:57.266928000 -0400
@@ -42,8 +42,8 @@
else
printf ("LookupAccountSidW: %u\n", GetLastError ());
- ret = DsGetDcNameW (NULL, dom, NULL, NULL, DS_IS_FLAT_NAME | DS_RETURN_DNS_NAME, &pci);
- if (ret != ERROR_SUCCESS)
+ status = DsGetDcNameW (NULL, dom, NULL, NULL, DS_IS_FLAT_NAME | DS_RETURN_DNS_NAME, &pci);
+ if (status != ERROR_SUCCESS)
{
printf ("DsGetDcNameW: %u\n", status);
pci = NULL;
Unknown+User@Lenovo-PC /cygdrive/c/cygwin64
$ ./azure-check3
Sid: S-1-12-1-2043906341-1249388050-2635137163-399631282
Dom\Name: AzureAD\RussellMora
DsGetDcNameW: 1355
NetUserGetInfo(NULL, 3): 2221
NetUserGetInfo(NULL, 24): 2221
Unknown+User@Lenovo-PC /cygdrive/c/cygwin64
$
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple