diff options
author | Simo Sorce <idra@samba.org> | 2009-01-08 10:43:26 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2009-01-08 10:43:26 -0500 |
commit | 7122f66c144b1837e22adef519103cfd9808db62 (patch) | |
tree | da639d1000b84e3fc0bfe700a1d9126df38e1126 /server/providers/ldap_provider.c | |
parent | 4aa8e6e7085f1498c80881db7f9a5cd2b70228f9 (diff) | |
download | sssd-7122f66c144b1837e22adef519103cfd9808db62.tar.gz sssd-7122f66c144b1837e22adef519103cfd9808db62.tar.bz2 sssd-7122f66c144b1837e22adef519103cfd9808db62.zip |
The code now successfully sends a getpwnam request to a remote LDAP server,
and caches the result in LDAP.
Still chasing a bug that does not let NSS known that the BE was successful.
This makes NSS timeout the client and not return any results yet.
Diffstat (limited to 'server/providers/ldap_provider.c')
-rw-r--r-- | server/providers/ldap_provider.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/server/providers/ldap_provider.c b/server/providers/ldap_provider.c index 884f843e..dd8ac18d 100644 --- a/server/providers/ldap_provider.c +++ b/server/providers/ldap_provider.c @@ -93,16 +93,6 @@ static int get_pw_name(struct be_ctx *be_ctx, struct ldap_ctx *ldap_ctx, char *n return ret; } -static int ldap_check_online(struct be_ctx *be_ctx, int *reply); -static int ldap_get_account_info(struct be_ctx *be_ctx, - int entry_type, int attr_type, - int filter_type, char *filter_value); - -struct be_mod_ops ldap_mod_ops = { - .check_online = ldap_check_online, - .get_account_info = ldap_get_account_info -}; - static int ldap_check_online(struct be_ctx *be_ctx, int *reply) { *reply = MOD_ONLINE; @@ -151,6 +141,11 @@ static int ldap_get_account_info(struct be_ctx *be_ctx, return EOK; } +struct be_mod_ops ldap_mod_ops = { + .check_online = ldap_check_online, + .get_account_info = ldap_get_account_info +}; + int sssm_ldap_init(struct be_ctx *bectx, struct be_mod_ops **ops, void **pvt_data) { struct ldap_ctx *ctx; |