~lefteris-nikoltsios/+junk/samba-lp1016895

« back to all changes in this revision

Viewing changes to librpc/idl/samr.idl

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-21 13:18:04 UTC
  • mfrom: (0.39.21 sid)
  • Revision ID: package-import@ubuntu.com-20111221131804-xtlr39wx6njehxxr
Tags: 2:3.6.1-3ubuntu1
* Merge from Debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/patches/error-trans.fix-276472:
    - Add the translation of Unix Error code -ENOTSUP to NT Error Code
    - NT_STATUS_NOT_SUPPORTED to prevent the Permission denied error.
  + debian/smb.conf:
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] share, and add a comment about
      "valid users = %S" to show users how to restrict access to
      \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are 
      allowed to create public shares in addition to authenticated
      ones.
    - add map to guest = Bad user, maps bad username to guest access.
  + debian/samba-common.config:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/control:
    - Don't build against or suggest ctdb.
    - Add dependency on samba-common-bin to samba.
  + Add ufw integration:
    - Created debian/samba.ufw.profile
    - debian/rules, debian/samba.dirs, debian/samba.files: install
      profile
    - debian/control: have samba suggest ufw
  + Add apport hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + Switch to upstart:
    - Add debian/samba.{nmbd,smbd}.upstart.
  + debian/samba.logrotate, debian/samba-common.dhcp, debian/samba.if-up:
    - Make them upstart compatible
  + debian/samba.postinst: 
    - Avoid scary pdbedit warnings on first import.
  + debian/samba-common.postinst: Add more informative error message for
    the case where smb.conf was manually deleted
  + debian/patches/fix-debuglevel-name-conflict.patch: don't use 'debug_level'
    as a global variable name in an NSS module 
  + Dropped:
    - debian/patches/error-trans.fix-276472
    - debian/patches/fix-debuglevel-name-conflict.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
                SAM_DATABASE_PRIVS   = 2 /* Privileges */
25
25
        } netr_SamDatabaseID;
26
26
 
27
 
        typedef [public,v1_enum] enum {
28
 
                SAMR_REJECT_OTHER      = 0,
29
 
                SAMR_REJECT_TOO_SHORT  = 1,
30
 
                SAMR_REJECT_IN_HISTORY = 2,
31
 
                SAMR_REJECT_COMPLEXITY = 5
32
 
        } samr_RejectReason;
33
 
 
34
 
 
35
 
 
36
27
        /* account control (acct_flags) bits */
37
28
        typedef [public,bitmap32bit] bitmap {
38
29
                ACB_DISABLED                    = 0x00000001,  /* 1 = User account disabled */
53
44
                ACB_USE_DES_KEY_ONLY            = 0x00008000,  /* 1 = Use DES key only */
54
45
                ACB_DONT_REQUIRE_PREAUTH        = 0x00010000,  /* 1 = Preauth not required */
55
46
                ACB_PW_EXPIRED                  = 0x00020000,  /* 1 = Password Expired */
56
 
                ACB_NO_AUTH_DATA_REQD           = 0x00080000   /* 1 = No authorization data required */
 
47
                ACB_TRUSTED_TO_AUTHENTICATE_FOR_DELEGATION = 0x00040000,
 
48
                ACB_NO_AUTH_DATA_REQD           = 0x00080000,  /* 1 = No authorization data required */
 
49
                ACB_PARTIAL_SECRETS_ACCOUNT     = 0x00100000,
 
50
                ACB_USE_AES_KEYS                = 0x00200000
57
51
        } samr_AcctFlags;
58
52
 
59
53
        /* SAM server specific access rights */
664
658
        typedef struct {
665
659
                uint32 count;
666
660
                [size_is(count)] uint32 *rids;
667
 
                [size_is(count)] uint32 *types;
668
 
        } samr_RidTypeArray;
 
661
                [size_is(count)] samr_GroupAttrs *attributes;
 
662
        } samr_RidAttrArray;
669
663
 
670
664
        NTSTATUS samr_QueryGroupMember(
671
665
                [in,ref]  policy_handle *group_handle,
672
 
                [out,ref] samr_RidTypeArray **rids
 
666
                [out,ref] samr_RidAttrArray **rids
673
667
                );
674
668
 
675
669
 
815
809
 
816
810
        typedef struct {
817
811
                lsa_String comment;
818
 
                lsa_String unknown; /* settable, but doesn't stick. probably obsolete */
 
812
                lsa_String reserved; /* settable, but doesn't stick. probably obsolete */
819
813
                uint16 country_code;
820
814
                uint16 code_page;
821
815
        } samr_UserInfo2;
991
985
                lsa_BinaryString parameters;
992
986
                lsa_BinaryString lm_owf_password;
993
987
                lsa_BinaryString nt_owf_password;
994
 
                lsa_String unknown3;
 
988
                lsa_String private_data;
995
989
                uint32 buf_count;
996
990
                [size_is(buf_count)] uint8 *buffer;
997
991
                uint32 rid;
1006
1000
                uint8  lm_password_set;
1007
1001
                uint8  nt_password_set;
1008
1002
                uint8  password_expired;
1009
 
                uint8  unknown4;
 
1003
                uint8  private_data_sensitive;
1010
1004
        } samr_UserInfo21;
1011
1005
 
1012
1006
        typedef [public, flag(NDR_PAHEX)] struct {
1447
1441
        /************************/
1448
1442
        /* Function    0x3f     */
1449
1443
 
1450
 
        typedef enum samr_RejectReason samr_RejectReason;
 
1444
        typedef [public,v1_enum] enum {
 
1445
                SAM_PWD_CHANGE_NO_ERROR             = 0,
 
1446
                SAM_PWD_CHANGE_PASSWORD_TOO_SHORT   = 1,
 
1447
                SAM_PWD_CHANGE_PWD_IN_HISTORY       = 2,
 
1448
                SAM_PWD_CHANGE_USERNAME_IN_PASSWORD = 3,
 
1449
                SAM_PWD_CHANGE_FULLNAME_IN_PASSWORD = 4,
 
1450
                SAM_PWD_CHANGE_NOT_COMPLEX          = 5,
 
1451
                SAM_PWD_CHANGE_MACHINE_NOT_DEFAULT  = 6,
 
1452
                SAM_PWD_CHANGE_FAILED_BY_FILTER     = 7,
 
1453
                SAM_PWD_CHANGE_PASSWORD_TOO_LONG    = 8
 
1454
        } samPwdChangeReason;
1451
1455
 
1452
1456
        typedef struct {
1453
 
                samr_RejectReason reason;
1454
 
                uint32 unknown1;
1455
 
                uint32 unknown2;
1456
 
        } samr_ChangeReject;
 
1457
                samPwdChangeReason extendedFailureReason;
 
1458
                [string,charset(UTF16)] uint16 *filterModuleName;
 
1459
        } userPwdChangeFailureInformation;
1457
1460
 
1458
 
        NTSTATUS samr_ChangePasswordUser3(
 
1461
        [public] NTSTATUS samr_ChangePasswordUser3(
1459
1462
                [in,unique]       lsa_String *server,
1460
1463
                [in,ref]          lsa_String *account,
1461
1464
                [in,unique]       samr_CryptPassword *nt_password,
1465
1468
                [in,unique]       samr_Password *lm_verifier,
1466
1469
                [in,unique]       samr_CryptPassword *password3,
1467
1470
                [out,ref]         samr_DomInfo1 **dominfo,
1468
 
                [out,ref]         samr_ChangeReject **reject
 
1471
                [out,ref]         userPwdChangeFailureInformation **reject
1469
1472
                );
1470
1473
 
1471
1474
        /************************/