paddle v0.1.1 Paddle.Attributes
Module used internally by Paddle to manipulate / convert LDAP attributes.
Summary
Functions
Get the given and the generated attributes of a given class object
Functions
get(class_object)
get(Paddle.Class.t) :: {:ok, map} | {:error, :missing_required_attributes, [atom]}
Get the given and the generated attributes of a given class object.
Examples:
iex> Paddle.Attributes.get(%Paddle.PosixGroup{})
{:error, :missing_required_attributes, [:cn]}
iex> Paddle.Attributes.get(%Paddle.PosixGroup{cn: "myGroup"})
{:ok,
%{cn: "myGroup", description: nil, gidNumber: 4, memberUid: nil,
objectClass: ["posixGroup"], userPassword: nil}}