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/libads/ads_struct.c

    r414 r745  
    44   Copyright (C) Andrew Tridgell 2001
    55   Copyright (C) Andrew Bartlett 2001
    6    
     6
    77   This program is free software; you can redistribute it and/or modify
    88   it under the terms of the GNU General Public License as published by
    99   the Free Software Foundation; either version 3 of the License, or
    1010   (at your option) any later version.
    11    
     11
    1212   This program is distributed in the hope that it will be useful,
    1313   but WITHOUT ANY WARRANTY; without even the implied warranty of
    1414   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1515   GNU General Public License for more details.
    16    
     16
    1717   You should have received a copy of the GNU General Public License
    1818   along with this program.  If not, see <http://www.gnu.org/licenses/>.
     
    2020
    2121#include "includes.h"
     22#include "ads.h"
    2223
    2324/* return a ldap dn path from a string, given separators and field name
     
    5657        if (p) {
    5758                strlcat(ret, p, len);
    58        
     59
    5960                while ((p=strtok_r(NULL, sep, &saveptr)) != NULL) {
    6061                        int retval;
     
    9394{
    9495        char *dnsdomain = NULL;
    95        
     96
    9697        /* result should always be shorter than the DN */
    9798
     
    123124        ADS_STRUCT *ads;
    124125        int wrap_flags;
    125        
     126
    126127        ads = SMB_XMALLOC_P(ADS_STRUCT);
    127128        ZERO_STRUCTP(ads);
    128        
     129
    129130        ads->server.realm = realm? SMB_STRDUP(realm) : NULL;
    130131        ads->server.workgroup = workgroup ? SMB_STRDUP(workgroup) : NULL;
     
    150151
    151152        return ads;
     153}
     154
     155/****************************************************************
     156****************************************************************/
     157
     158bool ads_set_sasl_wrap_flags(ADS_STRUCT *ads, int flags)
     159{
     160        if (!ads) {
     161                return false;
     162        }
     163
     164        ads->auth.flags = flags;
     165
     166        return true;
    152167}
    153168
     
    180195                SAFE_FREE((*ads)->config.schema_path);
    181196                SAFE_FREE((*ads)->config.config_path);
    182                
     197
    183198                ZERO_STRUCTP(*ads);
    184199
Note: See TracChangeset for help on using the changeset viewer.