Changeset 745 for trunk/server/source3/libads/ads_struct.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/libads/ads_struct.c
r414 r745 4 4 Copyright (C) Andrew Tridgell 2001 5 5 Copyright (C) Andrew Bartlett 2001 6 6 7 7 This program is free software; you can redistribute it and/or modify 8 8 it under the terms of the GNU General Public License as published by 9 9 the Free Software Foundation; either version 3 of the License, or 10 10 (at your option) any later version. 11 11 12 12 This program is distributed in the hope that it will be useful, 13 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 15 GNU General Public License for more details. 16 16 17 17 You should have received a copy of the GNU General Public License 18 18 along with this program. If not, see <http://www.gnu.org/licenses/>. … … 20 20 21 21 #include "includes.h" 22 #include "ads.h" 22 23 23 24 /* return a ldap dn path from a string, given separators and field name … … 56 57 if (p) { 57 58 strlcat(ret, p, len); 58 59 59 60 while ((p=strtok_r(NULL, sep, &saveptr)) != NULL) { 60 61 int retval; … … 93 94 { 94 95 char *dnsdomain = NULL; 95 96 96 97 /* result should always be shorter than the DN */ 97 98 … … 123 124 ADS_STRUCT *ads; 124 125 int wrap_flags; 125 126 126 127 ads = SMB_XMALLOC_P(ADS_STRUCT); 127 128 ZERO_STRUCTP(ads); 128 129 129 130 ads->server.realm = realm? SMB_STRDUP(realm) : NULL; 130 131 ads->server.workgroup = workgroup ? SMB_STRDUP(workgroup) : NULL; … … 150 151 151 152 return ads; 153 } 154 155 /**************************************************************** 156 ****************************************************************/ 157 158 bool 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; 152 167 } 153 168 … … 180 195 SAFE_FREE((*ads)->config.schema_path); 181 196 SAFE_FREE((*ads)->config.config_path); 182 197 183 198 ZERO_STRUCTP(*ads); 184 199
Note:
See TracChangeset
for help on using the changeset viewer.