[Date Prev][Date Next] [Chronological] [Thread] [Top]

RE : LDAP/PHP: Trying to add account -> text=attribute loginShell not allowed



Maybe it's because you have -1 for ShadowMin and ShadowInactive. Try
putting a positive value or not putting it at all just to see what it'll
do.

Jean-Rene Cormier



-----Message d'origine-----
De : owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org] De la part de Holger Banko
Envoyé : 9 avril, 2002 04:50
À : LDAP Mailingliste
Objet : LDAP/PHP: Trying to add account -> text=attribute loginShell not
allowed

Hi,

I am trying to add a User-Account to my LDAP-Tree with PHP. Everytime I
get an 
error in /var/log/message. Some attributes are not allowed (e.g.
loginShell, 
gidNumber, uidNumber).

Why ? Whats wrong ?

// Daten vorbereiten
  $info["cn"]="$vorname $name";
  $info["sn"]="$name";
  $info["uid"]="$personr";
  $info["mail"]="$vorname.$name@pgam.com";
  $info["objectClass"]="top";
  $info["objectClass"]="posixAccount";
  $info["objectClass"]="account";
  $info["objectClass"]="shadowAccount";
  $info["objectClass"]="inetOrgPerson";
  $info["loginShell"]="/bin/bash";
  $info["userPassword"]="$name";
  $info["gecos"]="LDAP User";
  $info["homePhone"]="12345";
  $info["shadowMin"]="-1";
  $info["shadowInactive"]="-1";
  $info["gidNumber"]="100";
  $info["uidNumber"]="$uidnum";
  $info["homeDirectory"]="/home/$personr";
  $info["description"]="Via Intranet generiertes Benutzerkonto";
  $info["roomNumber"]="Empty";
  $info["givenName"]="Empty";
  $info["proxyauth"]="Empty";

  // hinzufügen der Daten zum Verzeichnis
  $r=ldap_add($ds, "uid=$personr,ou=$standort,ou=People,dc=pgam,dc=com",

$info);

--Holger