无法远程将域组添加到服务器管理员:"枚举组成员身份时发生错误(1332)。 "

时间:2016-11-24 12:55:54

标签: c# active-directory principalcontext

我正在尝试使用AccountManagement将帐户添加到安全组。 我能够找到帐户(组主体)sid,但在尝试将其添加到管理员时会抛出错误。

  

枚举组成员资格时发生错误(1332)。无法解析该成员的SID

// Child component
import { Component, OnInit, ElementRef, AfterViewInit } from 

'@angular/core';
import { TheMap } from '../../services/mapServices/TheMap';
import { Marker } from '../../services/mapServices/marker.service';
declare var google: any;

@Component({
  selector: 'app-context-menu',
  templateUrl: './context-menu.component.html',
  styleUrls: ['./context-menu.component.css']
})
export class ContextMenuComponent {
  overlay;
  el;

  constructor(
    private theMap: TheMap, 
    private marker: Marker,
    private elementRef: ElementRef
  ) {
    this.overlay = new google.maps.OverlayView();
  }

  ngAfterViewInit() {}

  open(e) {
    let map = this.theMap.getMap();
    this.overlay.set('position', e.latLng);
    this.overlay.setMap(map);
    this.draw(); // <---- Here, this.draw() is not a function
    // So I can access properties from constructor but not this.draw() and other methods of this class
  };

  draw() {
    // ....
  }

0 个答案:

没有答案