From bd7f3e4b17076985479c77a5c68c39bf36c47926 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Tue, 28 Aug 2012 13:03:13 +0200 Subject: ipasam: replace trim_char() with trim_string() --- daemons/ipa-sam/ipa_sam.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'daemons/ipa-sam') diff --git a/daemons/ipa-sam/ipa_sam.c b/daemons/ipa-sam/ipa_sam.c index 95add09d1..b3c336443 100644 --- a/daemons/ipa-sam/ipa_sam.c +++ b/daemons/ipa-sam/ipa_sam.c @@ -87,7 +87,6 @@ bool sid_check_is_builtin(const struct dom_sid *sid); /* available in libpdb.so bool sid_linearize(char *outbuf, size_t len, const struct dom_sid *sid); /* available in libsmbconf.so */ char *sid_string_talloc(TALLOC_CTX *mem_ctx, const struct dom_sid *sid); /* available in libsmbconf.so */ char *sid_string_dbg(const struct dom_sid *sid); /* available in libsmbconf.so */ -bool trim_char(char *s,char cfront,char cback); /* available in libutil_str.so */ char *escape_ldap_string(TALLOC_CTX *mem_ctx, const char *s); /* available in libsmbconf.so */ bool secrets_store(const char *key, const void *data, size_t size); /* available in libpdb.so */ @@ -3715,7 +3714,7 @@ static NTSTATUS pdb_init_ipasam(struct pdb_methods **pdb_method, if (uri == NULL) { return NT_STATUS_NO_MEMORY; } - trim_char( uri, '\"', '\"' ); + trim_string( uri, "\"", "\"" ); status = ipasam_generate_principals(ldap_state->ipasam_privates); -- cgit