diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2010-09-09 16:25:31 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2010-09-15 11:46:33 -0400 |
commit | b0f08fe9d94f5bc6ec0c749f2b78d3f0d95cf5af (patch) | |
tree | 36d8c939f6034ac67b101654ea3e23a984153c79 /src/db/sysdb_ops.c | |
parent | 6480abbd1bba71efa8a834fada6505d1767fabfc (diff) | |
download | sssd-b0f08fe9d94f5bc6ec0c749f2b78d3f0d95cf5af.tar.gz sssd-b0f08fe9d94f5bc6ec0c749f2b78d3f0d95cf5af.tar.xz sssd-b0f08fe9d94f5bc6ec0c749f2b78d3f0d95cf5af.zip |
Define objectclass with a constant
Use a #define instead of hardcoded string
Diffstat (limited to 'src/db/sysdb_ops.c')
-rw-r--r-- | src/db/sysdb_ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/sysdb_ops.c b/src/db/sysdb_ops.c index 017f8ebc..f0900286 100644 --- a/src/db/sysdb_ops.c +++ b/src/db/sysdb_ops.c @@ -655,7 +655,7 @@ int sysdb_add_basic_user(TALLOC_CTX *mem_ctx, ERROR_OUT(ret, ENOMEM, done); } - ret = add_string(msg, LDB_FLAG_MOD_ADD, "objectClass", SYSDB_USER_CLASS); + ret = add_string(msg, LDB_FLAG_MOD_ADD, SYSDB_OBJECTCLASS, SYSDB_USER_CLASS); if (ret) goto done; ret = add_string(msg, LDB_FLAG_MOD_ADD, SYSDB_NAME, name); @@ -866,7 +866,7 @@ int sysdb_add_basic_group(TALLOC_CTX *mem_ctx, ERROR_OUT(ret, ENOMEM, done); } - ret = add_string(msg, LDB_FLAG_MOD_ADD, "objectClass", SYSDB_GROUP_CLASS); + ret = add_string(msg, LDB_FLAG_MOD_ADD, SYSDB_OBJECTCLASS, SYSDB_GROUP_CLASS); if (ret) goto done; ret = add_string(msg, LDB_FLAG_MOD_ADD, SYSDB_NAME, name); |