usertools.c revision c7d387aaaa3d3470dec55a5ca0612873e6354ba8
/*
SSSD
User tools
Copyright (C) Stephen Gallagher <sgallagh@redhat.com> 2009
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <pwd.h>
#include <pcre.h>
#include <errno.h>
#include <talloc.h>
#ifdef HAVE_LIBPCRE_LESSER_THAN_7
#define NAME_DOMAIN_PATTERN_OPTIONS (PCRE_EXTENDED)
#else
#endif
{
char *username;
return username;
}
{
}
return 0;
}
{
struct sss_names_ctx *ctx;
const char *errstr;
int errval;
int errpos;
int ret;
if (!ctx->re_pattern) {
"(?P<name>[^@]+)@?(?P<domain>[^@]*$)");
if (!ctx->re_pattern) {
goto done;
}
#ifdef HAVE_LIBPCRE_LESSER_THAN_7
} else {
"not support non-unique named subpatterns.\n"));
"subpatterns with a unique name and uses "
#endif
}
goto done;
}
}
goto done;
}
done:
}
return ret;
}
struct sss_names_ctx *snctx,
{
const char *result;
int ovec[30];
int origlen;
if (ret < 0) {
return EINVAL;
}
if (ret == 0) {
}
return EINVAL;
}
} else {
/* ignore "" string */
if (*result) {
} else {
}
}
return EOK;
}
char *
const char *orig_name,
bool case_sensitive)
{
}