File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -412,14 +412,14 @@ public IAsyncEnumerable<LdapResult<IDirectoryObject>> PagedQuery(LdapQueryParame
412412
413413 result = await Query ( new LdapQueryParameters {
414414 DomainName = domain . Name ,
415- Attributes = new [ ] { LDAPProperties . DistinguishedName } ,
415+ Attributes = new [ ] { LDAPProperties . DistinguishedName , LDAPProperties . Name } ,
416416 GlobalCatalog = true ,
417417 LDAPFilter = new LdapFilter ( ) . AddFilter ( "(objectclass=trusteddomain)" , true )
418418 . AddFilter ( $ "(securityidentifier={ Helpers . ConvertSidToHexSid ( domainSid ) } )", true ) . GetFilter ( )
419419 } ) . DefaultIfEmpty ( LdapResult < IDirectoryObject > . Fail ( ) ) . FirstOrDefaultAsync ( ) ;
420420
421- if ( result . IsSuccess && result . Value . TryGetDistinguishedName ( out distinguishedName ) ) {
422- return ( true , Helpers . DistinguishedNameToDomain ( distinguishedName ) ) ;
421+ if ( result . IsSuccess && result . Value . TryGetProperty ( LDAPProperties . Name , out var domainName ) ) {
422+ return ( true , domainName . ToUpper ( ) ) ;
423423 }
424424
425425 result = await Query ( new LdapQueryParameters {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ public WebClientServiceProcessorTest(ITestOutputHelper testOutputHelper) {
2626 public void Dispose ( ) {
2727 }
2828
29- [ Fact ]
29+ [ WindowsOnlyFact ]
3030 public async Task WebClientServiceProcessorTest_TestPathExists ( )
3131 {
3232 var processor = new WebClientServiceProcessor ( ) ;
You can’t perform that action at this time.
0 commit comments