Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

per ldap User im AD anlegen

Empfohlene Antworten

Veröffentlicht

Moin,

ich versuche ein script zu basteln mit dem man einen User im AD anlegen kann.

Ich kann zwar User Anlegen, aber nur die Attribute CN, SN, Objektclass und DisplayName angeben.

Sobald ich ein weiteres Attribut angeben will, egal welches (Mail, Pager, Mobile etc.) bekomme ich die Fehlermeldung

Warning: ldap_add() [function.ldap-add]: Add: Server is unwilling to perform

mein Script sieht folgendermaßen aus:

<?php

$ldaphost = "****";
$ldapport = 389;
$connect = ldap_connect ($ldaphost, $ldapport)
or die ("Fehler");
ldap_set_option($ldap_conn, LDAP_OPT_PROTOCOL_VERSION, 3);
ldap_set_option($ldap_conn, LDAP_OPT_REFERRALS, 0);

$bind = ldap_bind($connect, "*****", "*****");


$vorname=$_POST["vorname"];
$nachname=$_POST["nachname"];
$gebdatum=$_POST["gebdatum"];
$mobilnummer=$_POST["mobile"];
$mailadd=$_POST["mailadd"];
$persnr=$_POST["persnr"];
$passwort="#abcd1234";
$pfad=$_GET["pfad"];
$accountname=$_POST["accountname"];





$daten["cn"]=$vorname;
$daten["objectclass"]="person";
$daten["displayName"]=$vorname." ".$nachname;
$daten["sn"]=$nachname;
$daten["sAMAccountName"]=$accountname;




$eintrag=ldap_add($connect, utf8_encode("cn=".$daten["cn"].",OU=GS Münster,OU=Benutzer,DC=felixtest,DC=int"), $daten);



?> [/PHP]

Ich bin als Administrator gebindet. Rechte "sollten" also vorhanden sein.

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.