⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.c

📁 开放源码的ldap系统
💻 C
字号:
/* config.c - passwd backend configuration file routine *//* $OpenLDAP: pkg/ldap/servers/slapd/back-passwd/config.c,v 1.5.8.2 2000/06/13 17:57:35 kurt Exp $ */#include "portable.h"#include <stdio.h>#include <ac/socket.h>#include <ac/string.h>#include <ac/time.h>#include "slap.h"#include "external.h"intpasswd_back_db_config(    BackendDB	*be,    const char	*fname,    int		lineno,    int		argc,    char	**argv){	/* alternate passwd file */	if ( strcasecmp( argv[0], "file" ) == 0 ) {#ifdef HAVE_SETPWFILE		if ( argc < 2 ) {			fprintf( stderr,		"%s: line %d: missing filename in \"file <filename>\" line\n",			    fname, lineno );			return( 1 );		}		be->be_private = ch_strdup( argv[1] );#else /* HAVE_SETPWFILE */		fprintf( stderr,    "%s: line %d: ignoring \"file\" option (not supported on this platform)\n",			    fname, lineno );#endif /* HAVE_SETPWFILE */	/* anything else */	} else {		fprintf( stderr,"%s: line %d: unknown directive \"%s\" in passwd database definition (ignored)\n",		    fname, lineno, argv[0] );	}	return( 0 );}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -