s3: Remove some unused code
authorVolker Lendecke <vl@samba.org>
Sat, 26 Feb 2011 11:55:34 +0000 (12:55 +0100)
committerVolker Lendecke <vl@samba.org>
Sun, 6 Mar 2011 11:51:01 +0000 (12:51 +0100)
source3/winbindd/idmap_ad.c

index dc40d4cedf0918e354e70f7ce298415da57e576d..8e7f432f0bc11b1fa3fdaa3eb99b7c15cd86f4a3 100644 (file)
@@ -856,27 +856,6 @@ static NTSTATUS nss_ad_get_info( struct nss_domain_entry *e,
                return NT_STATUS_INVALID_PARAMETER;
        }
 
-       /* See if we can use the ADS connection struct swe were given */
-
-#if 0
-       if (ads) {
-               DEBUG(10, ("nss_ad_get_info: using given ads connection and "
-                          "LDAP message (%p)\n", msg));
-
-               *homedir = ads_pull_string( ads, mem_ctx, msg, ctx->ad_schema->posix_homedir_attr );
-               *shell   = ads_pull_string( ads, mem_ctx, msg, ctx->ad_schema->posix_shell_attr );
-               *gecos   = ads_pull_string( ads, mem_ctx, msg, ctx->ad_schema->posix_gecos_attr );
-
-               if (gid) {
-                       if ( !ads_pull_uint32(ads, msg, ctx->ad_schema->posix_gidnumber_attr, gid ) )
-                               *gid = (uint32)-1;
-               }
-
-               nt_status = NT_STATUS_OK;
-               goto done;
-       }
-#endif
-
        /* Have to do our own query */
 
        DEBUG(10, ("nss_ad_get_info: no ads connection given, doing our "