LCOV - code coverage report
Current view: top level - sss_client/libwbclient - wbc_ctx_sssd.c (source / functions) Hit Total Coverage
Test: coverage.info Lines: 0 108 0.0 %
Date: 2016-06-29 Functions: 0 54 0.0 %

          Line data    Source code
       1             : /*
       2             :    Unix SMB/CIFS implementation.
       3             : 
       4             :    Winbind client API - SSSD version
       5             : 
       6             :    Copyright (C) Sumit Bose <sbose@redhat.com> 2015
       7             : 
       8             :    This library is free software; you can redistribute it and/or
       9             :    modify it under the terms of the GNU Lesser General Public
      10             :    License as published by the Free Software Foundation; either
      11             :    version 3 of the License, or (at your option) any later version.
      12             : 
      13             :    This library is distributed in the hope that it will be useful,
      14             :    but WITHOUT ANY WARRANTY; without even the implied warranty of
      15             :    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      16             :    Library General Public License for more details.
      17             : 
      18             :    You should have received a copy of the GNU Lesser General Public License
      19             :    along with this program.  If not, see <http://www.gnu.org/licenses/>.
      20             : */
      21             : 
      22             : #include "config.h"
      23             : 
      24             : #include "libwbclient.h"
      25             : #include "wbc_sssd_internal.h"
      26             : 
      27           0 : struct wbcContext *wbcCtxCreate(void)
      28             : {
      29             :     WBC_SSSD_DEV_LOG;
      30           0 :     return NULL;
      31             : }
      32             : 
      33           0 : void wbcCtxFree(struct wbcContext *ctx)
      34             : {
      35             :     WBC_SSSD_DEV_LOG;
      36           0 :     return;
      37             : }
      38             : 
      39           0 : wbcErr wbcCtxPing(struct wbcContext *ctx)
      40             : {
      41           0 :     WBC_SSSD_NOT_IMPLEMENTED;
      42             : }
      43             : 
      44           0 : struct wbcContext *wbcGetGlobalCtx(void)
      45             : {
      46             :     WBC_SSSD_DEV_LOG;
      47           0 :     return NULL;
      48             : }
      49             : 
      50           0 : wbcErr wbcCtxInterfaceDetails(struct wbcContext *ctx,
      51             :                               struct wbcInterfaceDetails **details)
      52             : {
      53           0 :     WBC_SSSD_NOT_IMPLEMENTED;
      54             : }
      55             : 
      56           0 : wbcErr wbcCtxLookupName(struct wbcContext *ctx,
      57             :                         const char *dom_name,
      58             :                         const char *name,
      59             :                         struct wbcDomainSid *sid,
      60             :                         enum wbcSidType *name_type)
      61             : {
      62           0 :     WBC_SSSD_NOT_IMPLEMENTED;
      63             : }
      64             : 
      65           0 : wbcErr wbcCtxLookupSid(struct wbcContext *ctx,
      66             :                const struct wbcDomainSid *sid,
      67             :                char **domain,
      68             :                char **name,
      69             :                enum wbcSidType *name_type)
      70             : {
      71           0 :     WBC_SSSD_NOT_IMPLEMENTED;
      72             : }
      73             : 
      74           0 : wbcErr wbcCtxLookupSids(struct wbcContext *ctx,
      75             :             const struct wbcDomainSid *sids, int num_sids,
      76             :             struct wbcDomainInfo **domains, int *num_domains,
      77             :             struct wbcTranslatedName **names)
      78             : {
      79           0 :     WBC_SSSD_NOT_IMPLEMENTED;
      80             : }
      81             : 
      82           0 : wbcErr wbcCtxLookupRids(struct wbcContext *ctx,
      83             :             struct wbcDomainSid *dom_sid,
      84             :             int num_rids,
      85             :             uint32_t *rids,
      86             :             const char **domain_name,
      87             :             const char ***names,
      88             :             enum wbcSidType **types)
      89             : {
      90           0 :     WBC_SSSD_NOT_IMPLEMENTED;
      91             : }
      92             : 
      93           0 : wbcErr wbcCtxLookupUserSids(struct wbcContext *ctx,
      94             :                 const struct wbcDomainSid *user_sid,
      95             :                 bool domain_groups_only,
      96             :                 uint32_t *num_sids,
      97             :                 struct wbcDomainSid **sids)
      98             : {
      99           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     100             : }
     101             : 
     102           0 : wbcErr wbcCtxGetSidAliases(struct wbcContext *ctx,
     103             :                const struct wbcDomainSid *dom_sid,
     104             :                struct wbcDomainSid *sids,
     105             :                uint32_t num_sids,
     106             :                uint32_t **alias_rids,
     107             :                uint32_t *num_alias_rids)
     108             : {
     109           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     110             : }
     111             : 
     112           0 : wbcErr wbcCtxListUsers(struct wbcContext *ctx,
     113             :                const char *domain_name,
     114             :                uint32_t *num_users,
     115             :                const char ***users)
     116             : {
     117           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     118             : }
     119             : 
     120           0 : wbcErr wbcCtxListGroups(struct wbcContext *ctx,
     121             :             const char *domain_name,
     122             :             uint32_t *num_groups,
     123             :             const char ***groups)
     124             : {
     125           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     126             : }
     127             : 
     128           0 : wbcErr wbcCtxGetDisplayName(struct wbcContext *ctx,
     129             :                 const struct wbcDomainSid *sid,
     130             :                 char **pdomain,
     131             :                 char **pfullname,
     132             :                 enum wbcSidType *pname_type)
     133             : {
     134           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     135             : }
     136             : 
     137           0 : wbcErr wbcCtxSidToUid(struct wbcContext *ctx,
     138             :               const struct wbcDomainSid *sid,
     139             :               uid_t *puid)
     140             : {
     141           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     142             : }
     143             : 
     144           0 : wbcErr wbcCtxUidToSid(struct wbcContext *ctx, uid_t uid,
     145             :               struct wbcDomainSid *sid)
     146             : {
     147           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     148             : }
     149             : 
     150           0 : wbcErr wbcCtxSidToGid(struct wbcContext *ctx,
     151             :               const struct wbcDomainSid *sid,
     152             :               gid_t *pgid)
     153             : {
     154           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     155             : }
     156             : 
     157           0 : wbcErr wbcCtxGidToSid(struct wbcContext *ctx, gid_t gid,
     158             :            struct wbcDomainSid *sid)
     159             : {
     160           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     161             : }
     162             : 
     163           0 : wbcErr wbcCtxSidsToUnixIds(struct wbcContext *ctx,
     164             :                const struct wbcDomainSid *sids, uint32_t num_sids,
     165             :                struct wbcUnixId *ids)
     166             : {
     167           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     168             : }
     169             : 
     170           0 : wbcErr wbcCtxAllocateUid(struct wbcContext *ctx, uid_t *puid)
     171             : {
     172           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     173             : }
     174             : 
     175           0 : wbcErr wbcCtxAllocateGid(struct wbcContext *ctx, gid_t *pgid)
     176             : {
     177           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     178             : }
     179             : 
     180           0 : wbcErr wbcCtxGetpwnam(struct wbcContext *ctx,
     181             :               const char *name, struct passwd **pwd)
     182             : {
     183           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     184             : }
     185             : 
     186           0 : wbcErr wbcCtxGetpwuid(struct wbcContext *ctx,
     187             :               uid_t uid, struct passwd **pwd)
     188             : {
     189           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     190             : }
     191             : 
     192           0 : wbcErr wbcCtxGetpwsid(struct wbcContext *ctx,
     193             :                       struct wbcDomainSid * sid, struct passwd **pwd)
     194             : {
     195           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     196             : }
     197             : 
     198           0 : wbcErr wbcCtxGetgrnam(struct wbcContext *ctx,
     199             :               const char *name, struct group **grp)
     200             : {
     201           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     202             : }
     203             : 
     204           0 : wbcErr wbcCtxGetgrgid(struct wbcContext *ctx,
     205             :               gid_t gid, struct group **grp)
     206             : {
     207           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     208             : }
     209             : 
     210           0 : wbcErr wbcCtxSetpwent(struct wbcContext *ctx)
     211             : {
     212           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     213             : }
     214             : 
     215           0 : wbcErr wbcCtxEndpwent(struct wbcContext *ctx)
     216             : {
     217           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     218             : }
     219             : 
     220           0 : wbcErr wbcCtxGetpwent(struct wbcContext *ctx, struct passwd **pwd)
     221             : {
     222           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     223             : }
     224             : 
     225           0 : wbcErr wbcCtxSetgrent(struct wbcContext *ctx)
     226             : {
     227           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     228             : }
     229             : 
     230           0 : wbcErr wbcCtxEndgrent(struct wbcContext *ctx)
     231             : {
     232           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     233             : }
     234             : 
     235           0 : wbcErr wbcCtxGetgrent(struct wbcContext *ctx, struct group **grp)
     236             : {
     237           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     238             : }
     239             : 
     240           0 : wbcErr wbcCtxGetgrlist(struct wbcContext *ctx, struct group **grp)
     241             : {
     242           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     243             : }
     244             : 
     245           0 : wbcErr wbcCtxGetGroups(struct wbcContext *ctx,
     246             :                const char *account,
     247             :                uint32_t *num_groups,
     248             :                gid_t **_groups)
     249             : {
     250           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     251             : }
     252             : 
     253           0 : wbcErr wbcCtxDomainInfo(struct wbcContext *ctx,
     254             :             const char *domain,
     255             :             struct wbcDomainInfo **dinfo)
     256             : {
     257           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     258             : }
     259             : 
     260           0 : wbcErr wbcCtxDcInfo(struct wbcContext *ctx,
     261             :             const char *domain, size_t *num_dcs,
     262             :             const char ***dc_names, const char ***dc_ips)
     263             : {
     264           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     265             : }
     266             : 
     267           0 : wbcErr wbcCtxListTrusts(struct wbcContext *ctx,
     268             :             struct wbcDomainInfo **domains,
     269             :             size_t *num_domains)
     270             : {
     271           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     272             : }
     273             : 
     274           0 : wbcErr wbcCtxLookupDomainController(struct wbcContext *ctx,
     275             :                     const char *domain,
     276             :                     uint32_t flags,
     277             :                     struct wbcDomainControllerInfo **dc_info)
     278             : {
     279           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     280             : }
     281             : 
     282           0 : wbcErr wbcCtxLookupDomainControllerEx(struct wbcContext *ctx,
     283             :                       const char *domain,
     284             :                       struct wbcGuid *guid,
     285             :                       const char *site,
     286             :                       uint32_t flags,
     287             :                       struct wbcDomainControllerInfoEx **dc_info)
     288             : {
     289           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     290             : }
     291             : 
     292           0 : wbcErr wbcCtxAuthenticateUser(struct wbcContext *ctx,
     293             :                   const char *username,
     294             :                   const char *password)
     295             : {
     296           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     297             : }
     298             : 
     299           0 : wbcErr wbcCtxAuthenticateUserEx(struct wbcContext *ctx,
     300             :                 const struct wbcAuthUserParams *params,
     301             :                 struct wbcAuthUserInfo **info,
     302             :                 struct wbcAuthErrorInfo **error)
     303             : {
     304           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     305             : }
     306             : 
     307           0 : wbcErr wbcCtxLogonUser(struct wbcContext *ctx,
     308             :                const struct wbcLogonUserParams *params,
     309             :                struct wbcLogonUserInfo **info,
     310             :                struct wbcAuthErrorInfo **error,
     311             :                struct wbcUserPasswordPolicyInfo **policy)
     312             : {
     313           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     314             : }
     315             : 
     316           0 : wbcErr wbcCtxLogoffUser(struct wbcContext *ctx,
     317             :             const char *username, uid_t uid,
     318             :             const char *ccfilename)
     319             : {
     320           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     321             : }
     322             : 
     323           0 : wbcErr wbcCtxLogoffUserEx(struct wbcContext *ctx,
     324             :               const struct wbcLogoffUserParams *params,
     325             :                   struct wbcAuthErrorInfo **error)
     326             : {
     327           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     328             : }
     329             : 
     330           0 : wbcErr wbcCtxChangeUserPassword(struct wbcContext *ctx,
     331             :                 const char *username,
     332             :                 const char *old_password,
     333             :                 const char *new_password)
     334             : {
     335           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     336             : }
     337             : 
     338           0 : wbcErr wbcCtxChangeUserPasswordEx(struct wbcContext *ctx,
     339             :                   const struct wbcChangePasswordParams *params,
     340             :                   struct wbcAuthErrorInfo **error,
     341             :                   enum wbcPasswordChangeRejectReason *reject_reason,
     342             :                   struct wbcUserPasswordPolicyInfo **policy)
     343             : {
     344           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     345             : }
     346             : 
     347           0 : wbcErr wbcCtxCredentialCache(struct wbcContext *ctx,
     348             :                  struct wbcCredentialCacheParams *params,
     349             :                              struct wbcCredentialCacheInfo **info,
     350             :                              struct wbcAuthErrorInfo **error)
     351             : {
     352           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     353             : }
     354             : 
     355           0 : wbcErr wbcCtxCredentialSave(struct wbcContext *ctx,
     356             :                 const char *user, const char *password)
     357             : {
     358           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     359             : }
     360             : 
     361           0 : wbcErr wbcCtxResolveWinsByName(struct wbcContext *ctx,
     362             :                    const char *name, char **ip)
     363             : {
     364           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     365             : }
     366             : 
     367           0 : wbcErr wbcCtxResolveWinsByIP(struct wbcContext *ctx,
     368             :                  const char *ip, char **name)
     369             : {
     370           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     371             : }
     372             : 
     373           0 : wbcErr wbcCtxCheckTrustCredentials(struct wbcContext *ctx, const char *domain,
     374             :                    struct wbcAuthErrorInfo **error)
     375             : {
     376           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     377             : }
     378             : 
     379           0 : wbcErr wbcCtxChangeTrustCredentials(struct wbcContext *ctx, const char *domain,
     380             :                     struct wbcAuthErrorInfo **error)
     381             : {
     382           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     383             : }
     384             : 
     385           0 : wbcErr wbcCtxPingDc(struct wbcContext *ctx, const char *domain,
     386             :             struct wbcAuthErrorInfo **error)
     387             : {
     388           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     389             : }
     390             : 
     391           0 : wbcErr wbcCtxPingDc2(struct wbcContext *ctx, const char *domain,
     392             :              struct wbcAuthErrorInfo **error,
     393             :              char **dcname)
     394             : {
     395           0 :     WBC_SSSD_NOT_IMPLEMENTED;
     396             : }

Generated by: LCOV version 1.10