gnumoksha / php-freeipa

FreeIPA SDK for PHP
GNU Lesser General Public License v3.0
19 stars 19 forks source link

Access custom schema attribute #5

Open pichotweb opened 7 years ago

pichotweb commented 7 years ago

Hi,

I've added a custom schema to my LDAP and I can't access these attibutes via php.

$user_data = array( 'givenname' => 'Richard', 'sn' => 'Stallman', 'uid' => "rms3", 'mail' => "rms@fsf.org", 'userpassword' => 'Secret123',

    //Custom attribute from Schema
    'brcpf' => '24587458968'
  );

When I added the attribute I got an error "Unknow option"

I'm doing something wrong?

If you need more details I can provide.

Ty in advance!

gnumoksha commented 7 years ago

Hi, thanks for the feedback.

I will look at this issue in a couple of days.

pichotweb commented 7 years ago

Thanks!

I'm adding a workarround to set the "--setattr" arguments.

Unfortunatly I haven't found nothing about the custom attributes with the user-find method.