Quantcast
Channel: Directory Services forum
Viewing all articles
Browse latest Browse all 31638

NetJoinDomain API is throwing error 1323

$
0
0

if I execute the program given at weblink  http://msdn.microsoft.com/en-us/library/windows/desktop/aa370433(v=vs.85).aspx

on the windows 7 machine, It execute successfully windows 7 machine got added to the domain.

But When integrate the same code into the code, I have written for new window service  and run the service on the same window 7 machine, I am getting the following error 

NetpDoDomainJoin: status: 0x52b

Logs from netSetup log file present at c:\windows\debug

07/17/2014 00:55:15:685 -----------------------------------------------------------------
07/17/2014 00:55:15:685 NetpDoDomainJoin
07/17/2014 00:55:15:685 NetpMachineValidToJoin: 'TESTPU2'
07/17/2014 00:55:15:685 OS Version: 6.1
07/17/2014 00:55:15:685 Build number: 7600 (7600.win7_gdr.130318-1532)
07/17/2014 00:55:15:685 SKU: Windows 7 Ultimate
07/17/2014 00:55:15:685 NetpDomainJoinLicensingCheck: ulLicenseValue=1, Status: 0x0
07/17/2014 00:55:15:685 NetpGetLsaPrimaryDomain: status: 0x0
07/17/2014 00:55:15:685 NetpMachineValidToJoin: status: 0x0
07/17/2014 00:55:15:685 NetpJoinDomain
07/17/2014 00:55:15:685 Machine: TESTPU2
07/17/2014 00:55:15:685 Domain: credext.net
07/17/2014 00:55:15:685 MachineAccountOU: (NULL)
07/17/2014 00:55:15:685 Account: administrator
07/17/2014 00:55:15:685 Options: 0x3
07/17/2014 00:55:15:685 NetpLoadParameters: loading registry parameters...
07/17/2014 00:55:15:685 NetpLoadParameters: DNSNameResolutionRequired not found, defaulting to '1' 0x2
07/17/2014 00:55:15:685 NetpLoadParameters: DomainCompatibilityMode not found, defaulting to '0' 0x2
07/17/2014 00:55:15:685 NetpLoadParameters: status: 0x2
07/17/2014 00:55:15:685 NetpValidateName: checking to see if 'credext.net' is valid as type 3 name
07/17/2014 00:55:15:857 NetpCheckDomainNameIsValid [ Exists ] for 'credext.net' returned 0x0
07/17/2014 00:55:15:857 NetpValidateName: name 'credext.net' is valid for type 3
07/17/2014 00:55:15:857 NetpDsGetDcName: trying to find DC in domain 'credext.net', flags: 0x40001010
07/17/2014 00:55:18:696 NetpDsGetDcName: failed to find a DC having account 'TESTPU2$': 0x525, last error is 0x0
07/17/2014 00:55:18:696 NetpLoadParameters: loading registry parameters...
07/17/2014 00:55:18:696 NetpLoadParameters: DNSNameResolutionRequired not found, defaulting to '1' 0x2
07/17/2014 00:55:18:696 NetpLoadParameters: DomainCompatibilityMode not found, defaulting to '0' 0x2
07/17/2014 00:55:18:696 NetpLoadParameters: status: 0x2
07/17/2014 00:55:18:696 NetpDsGetDcName: status of verifying DNS A record name resolution for 'WIN-8NQCUDH9DU0.credext.net': 0x0
07/17/2014 00:55:18:696 NetpDsGetDcName: found DC '\\WIN-8NQCUDH9DU0.credext.net' in the specified domain
07/17/2014 00:55:18:696 NetpJoinDomainOnDs: NetpDsGetDcName returned: 0x0
07/17/2014 00:55:18:712 NetpJoinDomain: status of connecting to dc '\\WIN-8NQCUDH9DU0.credext.net': 0x0
07/17/2014 00:55:18:712 NetpProvisionComputerAccount:
07/17/2014 00:55:18:712 lpDomain: credext.net
07/17/2014 00:55:18:712 lpMachineName: TESTPU2
07/17/2014 00:55:18:712 lpMachineAccountOU: (NULL)
07/17/2014 00:55:18:712 lpDcName: WIN-8NQCUDH9DU0.credext.net
07/17/2014 00:55:18:712 lpDnsHostName: (NULL)
07/17/2014 00:55:18:712 lpMachinePassword: (null)
07/17/2014 00:55:18:712 lpAccount: administrator
07/17/2014 00:55:18:712 lpPassword: (non-null)
07/17/2014 00:55:18:712 dwJoinOptions: 0x3
07/17/2014 00:55:18:712 dwOptions: 0x40000003
07/17/2014 00:55:21:020 NetpLdapBind: ldap_bind failed on WIN-8NQCUDH9DU0.credext.net: 86: Auth Unknown
07/17/2014 00:55:21:020 NetpJoinDomainOnDs: Function exits with status of: 0x52b
07/17/2014 00:55:21:020 NetpJoinDomainOnDs: status of disconnecting from '\\WIN-8NQCUDH9DU0.credext.net': 0x0
07/17/2014 00:55:21:020 NetpDoDomainJoin: status: 0x52b

Kindly help to resolve the problem


Viewing all articles
Browse latest Browse all 31638

Latest Images

Trending Articles





Latest Images