Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/include/idmap.h

    r414 r745  
    88   Copyright (C) Jim McDonough <jmcd@us.ibm.com> 2003
    99   Copyright (C) Simo Sorce 2003
    10    
     10
    1111   This library is free software; you can redistribute it and/or
    1212   modify it under the terms of the GNU Lesser General Public
    1313   License as published by the Free Software Foundation; either
    1414   version 3 of the License, or (at your option) any later version.
    15    
     15
    1616   This library is distributed in the hope that it will be useful,
    1717   but WITHOUT ANY WARRANTY; without even the implied warranty of
    1818   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    1919   Library General Public License for more details.
    20    
     20
    2121   You should have received a copy of the GNU Lesser General Public License
    2222   along with this program.  If not, see <http://www.gnu.org/licenses/>.
     
    3131#define SMB_IDMAP_INTERFACE_VERSION 5
    3232
     33#include "librpc/gen_ndr/idmap.h"
     34
    3335struct idmap_domain {
    3436        const char *name;
    3537        struct idmap_methods *methods;
     38        uint32_t low_id;
     39        uint32_t high_id;
     40        bool read_only;
    3641        void *private_data;
    3742};
     
    4146
    4247        /* Called when backend is first loaded */
    43         NTSTATUS (*init)(struct idmap_domain *dom, const char *params);
     48        NTSTATUS (*init)(struct idmap_domain *dom);
    4449
    4550        /* Map an array of uids/gids to SIDs.  The caller specifies
     
    5156        NTSTATUS (*sids_to_unixids)(struct idmap_domain *dom, struct id_map **ids);
    5257
    53         NTSTATUS (*set_mapping)(struct idmap_domain *dom, const struct id_map *map);
    54         NTSTATUS (*remove_mapping)(struct idmap_domain *dom, const struct id_map *map);
    55 
    56         /* Called to dump backends data */
    57         /* NOTE: caller must use talloc_free to free maps when done */
    58         NTSTATUS (*dump_data)(struct idmap_domain *dom, struct id_map **maps, int *num_maps);
    59 
    60         /* Called when backend is unloaded */
    61         NTSTATUS (*close_fn)(struct idmap_domain *dom);
     58        /* Allocate a Unix-ID. */
     59        NTSTATUS (*allocate_id)(struct idmap_domain *dom, struct unixid *id);
    6260};
    6361
    64 struct idmap_alloc_methods {
    65 
    66         /* Called when backend is first loaded */
    67         NTSTATUS (*init)(const char *compat_params);
    68 
    69         NTSTATUS (*allocate_id)(struct unixid *id);
    70         NTSTATUS (*get_id_hwm)(struct unixid *id);
    71         NTSTATUS (*set_id_hwm)(struct unixid *id);
    72 
    73         /* Called when backend is unloaded */
    74         NTSTATUS (*close_fn)(void);
    75 };
     62#include "winbindd/idmap_proto.h"
    7663
    7764#endif /* _IDMAP_H_ */
Note: See TracChangeset for help on using the changeset viewer.