--- servers/slapd/user.c 2008/02/11 23:24:18 1.22.2.5 +++ servers/slapd/user.c 2005/01/01 19:49:51 1.23 @@ -1,8 +1,8 @@ /* user.c - set user id, group id and group access list */ -/* $OpenLDAP: pkg/ldap/servers/slapd/user.c,v 1.22.2.4 2007/01/02 21:43:59 kurt Exp $ */ +/* $OpenLDAP: pkg/ldap/servers/slapd/user.c,v 1.22 2004/09/04 02:54:31 kurt Exp $ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2008 The OpenLDAP Foundation. + * Copyright 1998-2005 The OpenLDAP Foundation. * Portions Copyright 1999 PM Lashley. * All rights reserved. * @@ -34,7 +34,6 @@ #include #include "slap.h" -#include "lutil.h" /* * Set real and effective user id and group id, and group access list @@ -50,17 +49,9 @@ slap_init_user( char *user, char *group if ( user ) { struct passwd *pwd; - if ( isdigit( (unsigned char) *user ) ) { - unsigned u; - + if ( isdigit( (unsigned char) *user )) { got_uid = 1; - if ( lutil_atou( &u, user ) != 0 ) { - Debug( LDAP_DEBUG_ANY, "Unble to parse user %s\n", - user, 0, 0 ); - - exit( EXIT_FAILURE ); - } - uid = (uid_t)u; + uid = atoi( user ); #ifdef HAVE_GETPWUID pwd = getpwuid( uid ); goto did_getpw; @@ -95,15 +86,7 @@ slap_init_user( char *user, char *group if ( group ) { struct group *grp; if ( isdigit( (unsigned char) *group )) { - unsigned g; - - if ( lutil_atou( &g, group ) != 0 ) { - Debug( LDAP_DEBUG_ANY, "Unble to parse group %s\n", - group, 0, 0 ); - - exit( EXIT_FAILURE ); - } - gid = (uid_t)g; + gid = atoi( group ); #ifdef HAVE_GETGRGID grp = getgrgid( gid ); goto did_group;