Lines Matching refs:tmp

683     const char *tmp = NULL;
693 tmp = ldb_msg_find_attr_as_string(msg, entry, NULL);
694 if (tmp == NULL) {
699 if ((*tmp == '-') || (*tmp == '\0')) {
703 u32ret = strtouint32 (tmp, &endptr, 10);
722 const char *tmp = NULL;
730 tmp = ldb_msg_find_attr_as_string(msg, entry, NULL);
731 if (tmp == NULL || *tmp == '\0') {
736 if (strcasecmp(tmp, "FALSE") == 0) {
739 else if (strcasecmp(tmp, "TRUE") == 0) {
868 const char *tmp;
907 tmp = ldb_msg_find_attr_as_string(res->msgs[0], "cn", NULL);
908 if (!tmp) {
914 domain->name = talloc_strdup(domain, tmp);
921 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
924 if (tmp) {
925 domain->provider = talloc_strdup(domain, tmp);
952 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
955 if (tmp && strcasecmp(tmp, "local") != 0) {
957 "Local ID provider does not support [%s] as an AUTH provider.\n", tmp);
962 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
965 if (tmp && strcasecmp(tmp, "permit") != 0) {
967 "Local ID provider does not support [%s] as an ACCESS provider.\n", tmp);
972 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
975 if (tmp && strcasecmp(tmp, "local") != 0) {
977 "Local ID provider does not support [%s] as a CHPASS provider.\n", tmp);
1284 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1286 if (tmp != NULL) {
1287 domain->override_homedir = talloc_strdup(domain, tmp);
1294 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1296 if (tmp != NULL) {
1297 domain->fallback_homedir = talloc_strdup(domain, tmp);
1304 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1307 if (tmp != NULL) {
1308 domain->subdomain_homedir = talloc_strdup(domain, tmp);
1315 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1317 if (tmp != NULL) {
1318 domain->homedir_substr = talloc_strdup(domain, tmp);
1325 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1327 if (tmp != NULL) {
1328 domain->override_shell = talloc_strdup(domain, tmp);
1335 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1337 if (tmp != NULL) {
1338 domain->default_shell = talloc_strdup(domain, tmp);
1345 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1347 if (tmp != NULL) {
1348 if (strcasecmp(tmp, "true") == 0) {
1351 } else if (strcasecmp(tmp, "false") == 0) {
1354 } else if (strcasecmp(tmp, "preserving") == 0) {
1382 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1384 if (tmp != NULL) {
1385 domain->pwfield = talloc_strdup(domain, tmp);
1392 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1395 if (tmp != NULL) {
1396 ret = split_on_separator(domain, tmp, ',', true, true,
1405 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1408 if (tmp != NULL) {
1409 ret = split_on_separator(domain, tmp, ',', true, true,
1419 tmp = ldb_msg_find_attr_as_string(res->msgs[0],
1422 if (tmp != NULL) {
1423 if (strcasecmp(tmp, CONFDB_DOMAIN_TYPE_POSIX) == 0) {
1425 } else if (strcasecmp(tmp, CONFDB_DOMAIN_TYPE_APP) == 0) {
1429 "Invalid value %s for [%s]\n", tmp, CONFDB_DOMAIN_TYPE);