dup_pw
res = dup_pw(&ldapbuf->pwd, getpwnam_from(name, rep, REP_LDAP));
int dup_pw(struct passwd **, struct passwd *);