#include "citadel_dirs.h"
#include "genstamp.h"
#include "threads.h"
+#include "citadel_ldap.h"
/* These pipes are used to talk to the chkpwd daemon, which is forked during startup */
int chkpwd_write_pipe[2];
}
+#ifdef HAVE_LDAP
+ else if (config.c_auth_mode == AUTHMODE_LDAP) {
+
+ /* LDAP auth mode FIXME_LDAP */
+ }
+#endif
+
else {
/* native auth mode */
purge_user(CCC->user.fullname);
/* Free any output buffers */
- if (CCC->output_buffer != NULL) {
- unbuffer_output();
- }
+ unbuffer_output();
}
/*
}
}
+#ifdef HAVE_LDAP
+ else if (config.c_auth_mode == AUTHMODE_LDAP) {
+
+ /* LDAP auth mode FIXME_LDAP */
+ }
+#endif
+
else {
/* native auth mode */
uid = pd.pw_uid;
if (IsEmptyStr (username))
{
- CtdlLogPrintf (CTDL_EMERG,
- "Can't find Realname for user %s [%d] in the Host Auth Database; giving up.\n",
- newusername, pd.pw_uid);
- snprintf(buf, SIZ,
- "Can't find Realname for user %s [%d] in the Host Auth Database; giving up.\n",
- newusername, pd.pw_uid);
- aide_message(buf, "User Creation Failure Notice");
-
+ safestrncpy(username, pd.pw_name, sizeof username);
}
}
else {
return (ERROR + NO_SUCH_USER);
}
}
+
+ /* FIXME_LDAP put something here */
if ((retval = internal_create_user(username, &usbuf, uid)) != 0)
return retval;