clear_pwd.c 476 B

123456789101112131415161718192021222324252627
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  3. * Copyright (C) 2005 Red Hat, Inc.
  4. * All rights reserved.
  5. * END COPYRIGHT BLOCK **/
  6. /*
  7. * slapd hashed password routines
  8. *
  9. */
  10. #include <stdio.h>
  11. #include <string.h>
  12. #include <sys/types.h>
  13. #include "pwdstorage.h"
  14. int
  15. clear_pw_cmp( char *userpwd, char *dbpwd )
  16. {
  17. return( strcmp( userpwd, dbpwd ));
  18. }
  19. char *
  20. clear_pw_enc( char *pwd )
  21. {
  22. return( slapi_ch_strdup( pwd ));
  23. }