]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:rpc_server: Remove obosolete copy_id26_to_sam_passwd()
authorAndreas Schneider <asn@samba.org>
Mon, 23 Aug 2021 09:31:32 +0000 (11:31 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 28 Jul 2022 11:51:29 +0000 (11:51 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_server/samr/srv_samr_util.c
source3/rpc_server/samr/srv_samr_util.h

index c7aead08161a74b2181e695827c4e7b3c082cf0a..d3bd3c71ccd3710a6154f5a951cdf5741b6d713d 100644 (file)
@@ -731,27 +731,6 @@ void copy_id25_to_sam_passwd(struct samu *to,
        copy_id21_to_sam_passwd("INFO_25", to, &from->info);
 }
 
-/*************************************************************
- Copies a struct samr_UserInfo26 to a struct samu
-**************************************************************/
-
-void copy_id26_to_sam_passwd(struct samu *to,
-                            struct samr_UserInfo26 *from)
-{
-       struct samr_UserInfo21 i;
-
-       if (from == NULL || to == NULL) {
-               return;
-       }
-
-       ZERO_STRUCT(i);
-
-       i.fields_present        = SAMR_FIELD_EXPIRED_FLAG;
-       i.password_expired      = from->password_expired;
-
-       copy_id21_to_sam_passwd("INFO_26", to, &i);
-}
-
 void copy_pwd_expired_to_sam_passwd(struct samu *to,
                                    uint8_t password_expired)
 {
index 6263c8690dcdb892e143fb315391d7125046aa81..bf38217052a2470ce81eb6bfb004bdf9dc4c24d6 100644 (file)
@@ -61,8 +61,6 @@ void copy_id24_to_sam_passwd(struct samu *to,
                             struct samr_UserInfo24 *from);
 void copy_id25_to_sam_passwd(struct samu *to,
                             struct samr_UserInfo25 *from);
-void copy_id26_to_sam_passwd(struct samu *to,
-                            struct samr_UserInfo26 *from);
 void copy_pwd_expired_to_sam_passwd(struct samu *to,
                                    uint8_t password_expired);