Very back ldapvc (verify credentials) client

This commit is contained in:
Kurt Zeilenga 2010-12-14 21:39:08 +00:00
parent 4ce4e4768a
commit 5875113f4d
2 changed files with 13 additions and 3 deletions

View File

@ -14,10 +14,10 @@
## <http://www.OpenLDAP.org/license.html>.
SRCS = ldapsearch.c ldapmodify.c ldapdelete.c ldapmodrdn.c \
ldappasswd.c ldapwhoami.c ldapcompare.c \
ldappasswd.c ldapwhoami.c ldapvc.c ldapcompare.c \
ldapexop.c ldapurl.c common.c
OBJS = ldapsearch.o ldapmodify.o ldapdelete.o ldapmodrdn.o \
ldappasswd.o ldapwhoami.o ldapcompare.o \
ldappasswd.o ldapwhoami.o ldapvc.o ldapcompare.o \
ldapexop.o ldapurl.o common.o
LDAP_INCDIR= ../../include
@ -32,7 +32,7 @@ XSRCS = ldsversion.c ldmversion.c lddversion.c ldrversion.c \
ldpversion.c ldwversion.c ldcversion.c ldeversion.c lduversion.c
PROGRAMS = ldapsearch ldapmodify ldapdelete ldapmodrdn \
ldappasswd ldapwhoami ldapcompare ldapexop ldapurl
ldappasswd ldapwhoami ldapvc ldapcompare ldapexop ldapurl
ldapsearch: ldsversion.o
@ -53,6 +53,9 @@ ldappasswd: ldpversion.o
ldapwhoami: ldwversion.o
$(LTLINK) -o $@ ldapwhoami.o common.o ldwversion.o $(LIBS)
ldapvc: ldvversion.o
$(LTLINK) -o $@ ldapvc.o common.o ldvversion.o $(LIBS)
ldapcompare: ldcversion.o
$(LTLINK) -o $@ ldapcompare.o common.o ldcversion.o $(LIBS)
@ -98,6 +101,12 @@ ldwversion.c: Makefile
ldwversion.o: ldapwhoami.o common.o $(XLIBS)
ldvversion.c: Makefile
@-$(RM) $@
$(MKVERSION) $(MKVOPTS) ldapvc > $@
ldvversion.o: ldapvc.o common.o $(XLIBS)
ldcversion.c: Makefile
@-$(RM) $@
$(MKVERSION) $(MKVOPTS) ldapcompare > $@

View File

@ -36,6 +36,7 @@ typedef enum tool_type_t {
TOOL_WHOAMI = TOOL_EXOP | 0x100U,
TOOL_PASSWD = TOOL_EXOP | 0x200U,
TOOL_VC = TOOL_EXOP | 0x400U,
TOOL_WRITE = (TOOL_ADD|TOOL_DELETE|TOOL_MODIFY|TOOL_MODRDN),
TOOL_READ = (TOOL_SEARCH|TOOL_COMPARE),